Package org.kairosdb.metrics4j.reporting
Interface ReportedMetric.Sample
-
- All Known Implementing Classes:
ReportedMetricImpl.SampleImpl
- Enclosing interface:
- ReportedMetric
public static interface ReportedMetric.Sample
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetFieldName()ObjectgetSampleContext()InstantgetTime()MetricValuegetValue()ReportedMetric.SamplesetSampleContext(Object obj)Sets context for this sample.ReportedMetric.SamplesetTime(Instant time)
-
-
-
Method Detail
-
getFieldName
String getFieldName()
-
getValue
MetricValue getValue()
-
getTime
Instant getTime()
-
setTime
ReportedMetric.Sample setTime(Instant time)
-
setSampleContext
ReportedMetric.Sample setSampleContext(Object obj)
Sets context for this sample. The object set is determined by the type of metric that is being reported. See ReportingContext- Parameters:
obj- Context to set- Returns:
- This reference
-
getSampleContext
Object getSampleContext()
-
-