Package org.kairosdb.metrics4j.reporting
Interface MetricReporter
-
- All Known Implementing Classes:
ChainedCollector.PrefixMetricReporter
public interface MetricReporter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReportedMetric.Sampleput(String field, MetricValue value)voidsetContext(Map<String,String> context)Sets the context for the data collected from the collector.
-
-
-
Method Detail
-
put
ReportedMetric.Sample put(String field, MetricValue value)
-
setContext
void setContext(Map<String,String> context)
Sets the context for the data collected from the collector. This can be if the data is a counter or gauge or histogram, event type of unit can be added to the context. The context must be treated as an immutable map.- Parameters:
context- Immutable map of context from the collector.
-
-