Interface PointData

All Known Subinterfaces:
HistogramPointData, SummaryPointData
All Known Implementing Classes:
DoublePointData, LongPointData

@Immutable public interface PointData
A point in the "Metric stream" data model.

This is distinguished from Measurement in that it may have aggregated data, and has its type defined by the metric data model (no longer an instrument).

  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.api.common.Attributes
    Returns the attributes associated with this Point.
    long
    Returns the epoch timestamp in nanos when data were collected, usually it represents the moment when Instrument.getData() was called.
    List of exemplars collected from measurements that were used to form the data point.
    long
    Returns the start epoch timestamp in nanos of this Instrument, usually the time when the metric was created or an aggregation was enabled.
  • Method Details

    • getStartEpochNanos

      long getStartEpochNanos()
      Returns the start epoch timestamp in nanos of this Instrument, 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 when Instrument.getData() was called.
      Returns:
      the epoch timestamp in nanos.
    • getAttributes

      io.opentelemetry.api.common.Attributes getAttributes()
      Returns the attributes associated with this Point.
      Returns:
      the attributes associated with this Point.
    • getExemplars

      List<ExemplarData> getExemplars()
      List of exemplars collected from measurements that were used to form the data point.