Package org.kairosdb.metrics4j.internal
Class ReportedMetricImpl.SampleImpl
- java.lang.Object
-
- org.kairosdb.metrics4j.internal.ReportedMetricImpl.SampleImpl
-
- All Implemented Interfaces:
ReportedMetric.Sample
- Enclosing class:
- ReportedMetricImpl
public class ReportedMetricImpl.SampleImpl extends Object implements ReportedMetric.Sample
-
-
Constructor Summary
Constructors Constructor Description SampleImpl(String fieldName, MetricValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFieldName()ObjectgetSampleContext()InstantgetTime()MetricValuegetValue()ReportedMetricImplreportedMetric()ReportedMetricImpl.SampleImplsetSampleContext(Object obj)Sets context for this sample.ReportedMetricImpl.SampleImplsetTime(Instant time)
-
-
-
Constructor Detail
-
SampleImpl
public SampleImpl(String fieldName, MetricValue value)
-
-
Method Detail
-
getFieldName
public String getFieldName()
- Specified by:
getFieldNamein interfaceReportedMetric.Sample
-
getValue
public MetricValue getValue()
- Specified by:
getValuein interfaceReportedMetric.Sample
-
getTime
public Instant getTime()
- Specified by:
getTimein interfaceReportedMetric.Sample
-
setTime
public ReportedMetricImpl.SampleImpl setTime(Instant time)
- Specified by:
setTimein interfaceReportedMetric.Sample
-
setSampleContext
public ReportedMetricImpl.SampleImpl setSampleContext(Object obj)
Description copied from interface:ReportedMetric.SampleSets context for this sample. The object set is determined by the type of metric that is being reported. See ReportingContext- Specified by:
setSampleContextin interfaceReportedMetric.Sample- Parameters:
obj- Context to set- Returns:
- This reference
-
getSampleContext
public Object getSampleContext()
- Specified by:
getSampleContextin interfaceReportedMetric.Sample
-
reportedMetric
public ReportedMetricImpl reportedMetric()
-
-