Interface PointData
-
- All Known Implementing Classes:
DoubleHistogramPointData,DoublePointData,DoubleSummaryPointData,LongPointData
@Immutable public interface PointDataA point in the "Metric stream" data model.This is distinguished from
Measurementin that it may have aggregated data, and has its type defined by the metric data model (no longer an instrument).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.opentelemetry.api.common.AttributesgetAttributes()Returns the attributes associated with thisPoint.longgetEpochNanos()Returns the epoch timestamp in nanos when data were collected, usually it represents the moment whenInstrument.getData()was called.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
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
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.
-
getAttributes
io.opentelemetry.api.common.Attributes getAttributes()
Returns the attributes associated with thisPoint.- Returns:
- the attributes associated with this
Point.
-
-