Class MetricData.Point
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.data.MetricData.Point
-
- Direct Known Subclasses:
MetricData.DoublePoint,MetricData.LongPoint,MetricData.SummaryPoint
- Enclosing class:
- MetricData
@Immutable public abstract static class MetricData.Point extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract longgetEpochNanos()Returns the epoch timestamp in nanos when data were collected, usually it represents the moment whenInstrument.getData()was called.abstract io.opentelemetry.api.common.LabelsgetLabels()Returns the labels associated with thisPoint.abstract longgetStartEpochNanos()Returns the start epoch timestamp in nanos of thisInstrument, usually the time when the metric was created or an aggregation was enabled.
-
-
-
Method Detail
-
getStartEpochNanos
public abstract long getStartEpochNanos()
Returns the start epoch timestamp in nanos of thisInstrument, usually the time when the metric was created or an aggregation was enabled.- Returns:
- the start epoch timestamp in nanos.
-
getEpochNanos
public abstract long getEpochNanos()
Returns the epoch timestamp in nanos when data were collected, usually it represents the moment whenInstrument.getData()was called.- Returns:
- the epoch timestamp in nanos.
-
getLabels
public abstract io.opentelemetry.api.common.Labels getLabels()
Returns the labels associated with thisPoint.- Returns:
- the labels associated with this
Point.
-
-