public static String getStreamDefinition() { return "{" + " 'name':'" + DataPublisherUtil.getApiManagerAnalyticsConfiguration().getThrottleStreamName() + "'," + " 'version':'" + DataPublisherUtil.getApiManagerAnalyticsConfiguration().getThrottleStreamVersion() + "'," + " 'nickName': 'API Manager Throttle Data'," + " 'description': 'Throttle Data'," + " 'metaData':[" + " {'name':'clientType','type':'STRING'}" + " ]," + " 'payloadData':[" + " {'name':'accessToken','type':'STRING'}," + " {'name':'userId','type':'STRING'}," + " {'name':'tenantDomain','type':'STRING'}," + " {'name':'api','type':'STRING'}," + " {'name':'api_version','type':'STRING'}," + " {'name':'context','type':'STRING'}," + " {'name':'apiPublisher','type':'STRING'}," + " {'name':'throttledTime','type':'LONG'}," + " {'name':'applicationName','type':'STRING'}," + " {'name':'applicationId','type':'STRING'}," + " {'name':'subscriber','type':'STRING'}," + " {'name':'throttledOutReason','type':'STRING'}" + " ]" + "}"; }
public static String getStreamDefinition() { return "{" + " 'name':'" + DataPublisherUtil.getApiManagerAnalyticsConfiguration().getResponseStreamName() + "'," + " 'version':'" + DataPublisherUtil.getApiManagerAnalyticsConfiguration().getResponseStreamVersion() + "'," + " 'nickName': 'API Manager Response Data'," + " 'description': 'Response Data'," + " 'metaData':[" + " {'name':'clientType','type':'STRING'}" + " ]," + " 'payloadData':[" + " {'name':'consumerKey','type':'STRING'}," + " {'name':'context','type':'STRING'}," + " {'name':'api_version','type':'STRING'}," + " {'name':'api','type':'STRING'}," + " {'name':'resourcePath','type':'STRING'}," + " {'name':'method','type':'STRING'}," + " {'name':'version','type':'STRING'}," + " {'name':'response','type':'INT'}," + " {'name':'responseTime','type':'LONG'}," + " {'name':'serviceTime','type':'LONG'}," + " {'name':'backendTime','type':'LONG'}," + " {'name':'username','type':'STRING'}," + " {'name':'eventTime','type':'LONG'}," + " {'name':'tenantDomain','type':'STRING'}," + " {'name':'hostName','type':'STRING'}," + " {'name':'apiPublisher','type':'STRING'}," + " {'name':'applicationName','type':'STRING'}," + " {'name':'applicationId','type':'STRING'}," + " {'name':'cacheHit','type':'BOOL'}," + " {'name':'responseSize','type':'LONG'}," + " {'name':'protocol','type':'STRING'}," + " {'name':'customValue','type':'STRING'}" + " ]" + "}"; }
public DataBridgeFaultPublisherDTO(FaultPublisherDTO faultPublisherDTO) { setConsumerKey(faultPublisherDTO.getConsumerKey()); setContext(faultPublisherDTO.getContext()); setApi_version(faultPublisherDTO.getApi_version()); setApi(faultPublisherDTO.getApi()); setResource(faultPublisherDTO.getResource()); setMethod(faultPublisherDTO.getMethod()); setVersion(faultPublisherDTO.getVersion()); setErrorCode(faultPublisherDTO.getErrorCode()); setErrorMessage(faultPublisherDTO.getErrorMessage()); setRequestTime((faultPublisherDTO.getRequestTime())); setUsername(faultPublisherDTO.getUsername()); setTenantDomain(faultPublisherDTO.getTenantDomain()); setHostName(DataPublisherUtil.getHostAddress()); setApiPublisher(faultPublisherDTO.getApiPublisher()); setApplicationName(faultPublisherDTO.getApplicationName()); setApplicationId(faultPublisherDTO.getApplicationId()); }
public CustomDataBridgeResponsePublisherDTO(ResponsePublisherDTO responsePublisherDTO) { setConsumerKey(responsePublisherDTO.getConsumerKey()); setContext(responsePublisherDTO.getContext()); setApi_version(responsePublisherDTO.getApi_version()); setApi(responsePublisherDTO.getApi()); setResourcePath(responsePublisherDTO.getResourcePath()); setMethod(responsePublisherDTO.getMethod()); setVersion(responsePublisherDTO.getVersion()); setResponseTime(responsePublisherDTO.getResponseTime()); setServiceTime(responsePublisherDTO.getServiceTime()); setBackendTime(responsePublisherDTO.getBackendTime()); setUsername(responsePublisherDTO.getUsername()); setEventTime(responsePublisherDTO.getEventTime()); setTenantDomain(responsePublisherDTO.getTenantDomain()); setHostName(DataPublisherUtil.getHostAddress()); setApiPublisher(responsePublisherDTO.getApiPublisher()); setApplicationName(responsePublisherDTO.getApplicationName()); setApplicationId(responsePublisherDTO.getApplicationId()); setCacheHit(responsePublisherDTO.getCacheHit()); setResponseSize(responsePublisherDTO.getResponseSize()); setProtocol(responsePublisherDTO.getProtocol()); }