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'}"
        + "  ]"
        + "}";
  }