test_class.declarator: DURATION_UNIT = TimeUnit.MICROSECONDS
test_class.modifier: private static final
test_class.original_string: private static final TimeUnit DURATION_UNIT = TimeUnit.MICROSECONDS;
test_class.type: TimeUnit
test_class.var_name: DURATION_UNIT
test_class.declarator: influxDbReporter
test_class.modifier: private
test_class.original_string: private InfluxDbReporter influxDbReporter;
test_class.type: InfluxDbReporter
test_class.var_name: influxDbReporter
test_class.declarator: httpClient
test_class.modifier: private
test_class.original_string: private HttpClient httpClient;
test_class.type: HttpClient
test_class.var_name: httpClient
test_class.declarator: timestamp
test_class.modifier: private
test_class.original_string: private long timestamp;
test_class.type: long
test_class.var_name: timestamp
test_class.file: stagemonitor-core/src/test/java/org/stagemonitor/core/metrics/metrics2/InfluxDbReporterTest.java
test_class.identifier: InfluxDbReporterTest
test_case.body: @Test
  	public void testReportTimers() throws Exception {
  		influxDbReporter.reportMetrics(
  				metricNameMap(Gauge.class),
  				metricNameMap(Counter.class),
  				metricNameMap(Histogram.class),
  				metricNameMap(Meter.class),
  				metricNameMap(name("response_time").build(), timer(400)));
  
  		verify(httpClient).send(eq("POST"), eq("http://localhost:8086/write?precision=ms&db=stm"),
  				eq(singletonList(format("response_time,app=test count=1i,m1_rate=3.0,m5_rate=4.0,m15_rate=5.0,mean_rate=2.0,min=0.4,max=0.2,mean=0.4,p50=0.6,std=0.5,p25=0.0,p75=0.7,p95=0.8,p98=0.9,p99=1.0,p999=1.1 %d", timestamp))));
  	}
test_case.class_method_signature: InfluxDbReporterTest.testReportTimers()
test_case.full_signature: @Test public void testReportTimers()
test_case.identifier: testReportTimers
test_case.invocations: reportMetrics metricNameMap metricNameMap metricNameMap metricNameMap metricNameMap build name timer send verify eq eq eq singletonList format
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReportTimers()
focal_class.declarator: MAX_BATCH_SIZE = 5000
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_BATCH_SIZE = 5000;
focal_class.type: int
focal_class.var_name: MAX_BATCH_SIZE
focal_class.declarator: metricNameToInfluxDBFormatCache = new ConcurrentHashMap<MetricName, String>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<MetricName, String> metricNameToInfluxDBFormatCache = new ConcurrentHashMap<MetricName, String>();
focal_class.type: Map<MetricName, String>
focal_class.var_name: metricNameToInfluxDBFormatCache
focal_class.declarator: reportingTimeMetricName = name("reporting_time").tag("reporter", "influxdb").build()
focal_class.modifier: private static final
focal_class.original_string: private static final MetricName reportingTimeMetricName = name("reporting_time").tag("reporter", "influxdb").build();
focal_class.type: MetricName
focal_class.var_name: reportingTimeMetricName
focal_class.declarator: batchLines = new ArrayList<String>(MAX_BATCH_SIZE)
focal_class.modifier: private
focal_class.original_string: private List<String> batchLines = new ArrayList<String>(MAX_BATCH_SIZE);
focal_class.type: List<String>
focal_class.var_name: batchLines
focal_class.declarator: globalTags
focal_class.modifier: private final
focal_class.original_string: private final String globalTags;
focal_class.type: String
focal_class.var_name: globalTags
focal_class.declarator: httpClient
focal_class.modifier: private
focal_class.original_string: private HttpClient httpClient;
focal_class.type: HttpClient
focal_class.var_name: httpClient
focal_class.declarator: corePlugin
focal_class.modifier: private final
focal_class.original_string: private final CorePlugin corePlugin;
focal_class.type: CorePlugin
focal_class.var_name: corePlugin
focal_class.file: stagemonitor-core/src/main/java/org/stagemonitor/core/metrics/metrics2/InfluxDbReporter.java
focal_class.identifier: InfluxDbReporter
focal_class.class_method_signature: InfluxDbReporter.forRegistry(Metric2Registry registry, CorePlugin corePlugin)
focal_class.full_signature: public static Builder forRegistry(Metric2Registry registry, CorePlugin corePlugin)
focal_class.identifier: forRegistry
focal_class.modifiers: public static
focal_class.parameters: (Metric2Registry registry, CorePlugin corePlugin)
focal_class.return: Builder
focal_class.signature: Builder forRegistry(Metric2Registry registry, CorePlugin corePlugin)
focal_class.class_method_signature: InfluxDbReporter.InfluxDbReporter(Builder builder)
focal_class.full_signature: private  InfluxDbReporter(Builder builder)
focal_class.identifier: InfluxDbReporter
focal_class.modifiers: private
focal_class.parameters: (Builder builder)
focal_class.signature:  InfluxDbReporter(Builder builder)
focal_class.class_method_signature: InfluxDbReporter.reportMetrics(Map<MetricName, Gauge> gauges,
  							  Map<MetricName, Counter> counters,
  							  Map<MetricName, Histogram> histograms,
  							  Map<MetricName, Meter> meters,
  							  Map<MetricName, Timer> timers)
focal_class.full_signature: @Override public void reportMetrics(Map<MetricName, Gauge> gauges,
  							  Map<MetricName, Counter> counters,
  							  Map<MetricName, Histogram> histograms,
  							  Map<MetricName, Meter> meters,
  							  Map<MetricName, Timer> timers)
focal_class.identifier: reportMetrics
focal_class.modifiers: @Override public
focal_class.parameters: (Map<MetricName, Gauge> gauges,
  							  Map<MetricName, Counter> counters,
  							  Map<MetricName, Histogram> histograms,
  							  Map<MetricName, Meter> meters,
  							  Map<MetricName, Timer> timers)
focal_class.return: void
focal_class.signature: void reportMetrics(Map<MetricName, Gauge> gauges,
  							  Map<MetricName, Counter> counters,
  							  Map<MetricName, Histogram> histograms,
  							  Map<MetricName, Meter> meters,
  							  Map<MetricName, Timer> timers)
focal_class.class_method_signature: InfluxDbReporter.reportGauges(Map<MetricName, Gauge> gauges, long timestamp)
focal_class.full_signature: private void reportGauges(Map<MetricName, Gauge> gauges, long timestamp)
focal_class.identifier: reportGauges
focal_class.modifiers: private
focal_class.parameters: (Map<MetricName, Gauge> gauges, long timestamp)
focal_class.return: void
focal_class.signature: void reportGauges(Map<MetricName, Gauge> gauges, long timestamp)
focal_class.class_method_signature: InfluxDbReporter.reportCounter(Map<MetricName, Counter> counters, long timestamp)
focal_class.full_signature: private void reportCounter(Map<MetricName, Counter> counters, long timestamp)
focal_class.identifier: reportCounter
focal_class.modifiers: private
focal_class.parameters: (Map<MetricName, Counter> counters, long timestamp)
focal_class.return: void
focal_class.signature: void reportCounter(Map<MetricName, Counter> counters, long timestamp)
focal_class.class_method_signature: InfluxDbReporter.reportHistograms(Map<MetricName, Histogram> histograms, long timestamp)
focal_class.full_signature: private void reportHistograms(Map<MetricName, Histogram> histograms, long timestamp)
focal_class.identifier: reportHistograms
focal_class.modifiers: private
focal_class.parameters: (Map<MetricName, Histogram> histograms, long timestamp)
focal_class.return: void
focal_class.signature: void reportHistograms(Map<MetricName, Histogram> histograms, long timestamp)
focal_class.class_method_signature: InfluxDbReporter.reportMeters(Map<MetricName, Meter> meters, long timestamp)
focal_class.full_signature: private void reportMeters(Map<MetricName, Meter> meters, long timestamp)
focal_class.identifier: reportMeters
focal_class.modifiers: private
focal_class.parameters: (Map<MetricName, Meter> meters, long timestamp)
focal_class.return: void
focal_class.signature: void reportMeters(Map<MetricName, Meter> meters, long timestamp)
focal_class.class_method_signature: InfluxDbReporter.reportTimers(Map<MetricName, Timer> timers, long timestamp)
focal_class.full_signature: private void reportTimers(Map<MetricName, Timer> timers, long timestamp)
focal_class.identifier: reportTimers
focal_class.modifiers: private
focal_class.parameters: (Map<MetricName, Timer> timers, long timestamp)
focal_class.return: void
focal_class.signature: void reportTimers(Map<MetricName, Timer> timers, long timestamp)
focal_class.class_method_signature: InfluxDbReporter.reportTimerSnapshot(Snapshot snapshot)
focal_class.full_signature: private String reportTimerSnapshot(Snapshot snapshot)
focal_class.identifier: reportTimerSnapshot
focal_class.modifiers: private
focal_class.parameters: (Snapshot snapshot)
focal_class.return: String
focal_class.signature: String reportTimerSnapshot(Snapshot snapshot)
focal_class.class_method_signature: InfluxDbReporter.reportHistogramSnapshot(Snapshot snapshot)
focal_class.full_signature: private String reportHistogramSnapshot(Snapshot snapshot)
focal_class.identifier: reportHistogramSnapshot
focal_class.modifiers: private
focal_class.parameters: (Snapshot snapshot)
focal_class.return: String
focal_class.signature: String reportHistogramSnapshot(Snapshot snapshot)
focal_class.class_method_signature: InfluxDbReporter.reportMetered(Metered metered)
focal_class.full_signature: private String reportMetered(Metered metered)
focal_class.identifier: reportMetered
focal_class.modifiers: private
focal_class.parameters: (Metered metered)
focal_class.return: String
focal_class.signature: String reportMetered(Metered metered)
focal_class.class_method_signature: InfluxDbReporter.reportLine(String nameAndTags, String fields, long timestamp)
focal_class.full_signature: private void reportLine(String nameAndTags, String fields, long timestamp)
focal_class.identifier: reportLine
focal_class.modifiers: private
focal_class.parameters: (String nameAndTags, String fields, long timestamp)
focal_class.return: void
focal_class.signature: void reportLine(String nameAndTags, String fields, long timestamp)
focal_class.class_method_signature: InfluxDbReporter.flush()
focal_class.full_signature: private void flush()
focal_class.identifier: flush
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_class.class_method_signature: InfluxDbReporter.getGaugeValueForInfluxDb(Object value)
focal_class.full_signature: private String getGaugeValueForInfluxDb(Object value)
focal_class.identifier: getGaugeValueForInfluxDb
focal_class.modifiers: private
focal_class.parameters: (Object value)
focal_class.return: String
focal_class.signature: String getGaugeValueForInfluxDb(Object value)
focal_class.class_method_signature: InfluxDbReporter.getIntegerValue(Object integer)
focal_class.full_signature: private String getIntegerValue(Object integer)
focal_class.identifier: getIntegerValue
focal_class.modifiers: private
focal_class.parameters: (Object integer)
focal_class.return: String
focal_class.signature: String getIntegerValue(Object integer)
focal_class.class_method_signature: InfluxDbReporter.getDuration(double duration)
focal_class.full_signature: private String getDuration(double duration)
focal_class.identifier: getDuration
focal_class.modifiers: private
focal_class.parameters: (double duration)
focal_class.return: String
focal_class.signature: String getDuration(double duration)
focal_class.class_method_signature: InfluxDbReporter.getRate(double rate)
focal_class.full_signature: private String getRate(double rate)
focal_class.identifier: getRate
focal_class.modifiers: private
focal_class.parameters: (double rate)
focal_class.return: String
focal_class.signature: String getRate(double rate)
focal_class.class_method_signature: InfluxDbReporter.getFloatValue(Object number)
focal_class.full_signature: private String getFloatValue(Object number)
focal_class.identifier: getFloatValue
focal_class.modifiers: private
focal_class.parameters: (Object number)
focal_class.return: String
focal_class.signature: String getFloatValue(Object number)
focal_class.class_method_signature: InfluxDbReporter.getStringValue(String value)
focal_class.full_signature: private String getStringValue(String value)
focal_class.identifier: getStringValue
focal_class.modifiers: private
focal_class.parameters: (String value)
focal_class.return: String
focal_class.signature: String getStringValue(String value)
focal_class.class_method_signature: InfluxDbReporter.getInfluxDbLineProtocolString(MetricName metricName)
focal_class.full_signature: public static String getInfluxDbLineProtocolString(MetricName metricName)
focal_class.identifier: getInfluxDbLineProtocolString
focal_class.modifiers: public static
focal_class.parameters: (MetricName metricName)
focal_class.return: String
focal_class.signature: String getInfluxDbLineProtocolString(MetricName metricName)
focal_class.class_method_signature: InfluxDbReporter.getInfluxDbTags(Map<String, String> tags)
focal_class.full_signature: private static String getInfluxDbTags(Map<String, String> tags)
focal_class.identifier: getInfluxDbTags
focal_class.modifiers: private static
focal_class.parameters: (Map<String, String> tags)
focal_class.return: String
focal_class.signature: String getInfluxDbTags(Map<String, String> tags)
focal_class.class_method_signature: InfluxDbReporter.appendTags(StringBuilder sb, Map<String, String> tags)
focal_class.full_signature: private static void appendTags(StringBuilder sb, Map<String, String> tags)
focal_class.identifier: appendTags
focal_class.modifiers: private static
focal_class.parameters: (StringBuilder sb, Map<String, String> tags)
focal_class.return: void
focal_class.signature: void appendTags(StringBuilder sb, Map<String, String> tags)
focal_class.class_method_signature: InfluxDbReporter.escapeForInfluxDB(String s)
focal_class.full_signature: private static String escapeForInfluxDB(String s)
focal_class.identifier: escapeForInfluxDB
focal_class.modifiers: private static
focal_class.parameters: (String s)
focal_class.return: String
focal_class.signature: String escapeForInfluxDB(String s)
focal_class.superclass: extends ScheduledMetrics2Reporter
focal_method.body: private void reportTimers(Map<MetricName, Timer> timers, long timestamp) {
  		for (Map.Entry<MetricName, Timer> entry : timers.entrySet()) {
  			final Timer timer = entry.getValue();
  			final Snapshot snapshot = timer.getSnapshot();
  			reportLine(getInfluxDbLineProtocolString(entry.getKey()),
  					reportMetered(timer) + ","
  							+ reportTimerSnapshot(snapshot), timestamp);
  		}
  	}
focal_method.class_method_signature: InfluxDbReporter.reportTimers(Map<MetricName, Timer> timers, long timestamp)
focal_method.full_signature: private void reportTimers(Map<MetricName, Timer> timers, long timestamp)
focal_method.identifier: reportTimers
focal_method.invocations: entrySet getValue getSnapshot reportLine getInfluxDbLineProtocolString getKey reportMetered reportTimerSnapshot
focal_method.modifiers: private
focal_method.parameters: (Map<MetricName, Timer> timers, long timestamp)
focal_method.return: void
focal_method.signature: void reportTimers(Map<MetricName, Timer> timers, long timestamp)