Interface SumData<T extends PointData>

  • All Known Implementing Classes:
    DoubleSumData, LongSumData

    @Immutable
    public interface SumData<T extends PointData>
    A sum metric point.

    See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/datamodel.md#sums

    • Method Detail

      • isMonotonic

        boolean isMonotonic()
        Returns "true" if the sum is monotonic.
        Returns:
        "true" if the sum is monotonic
      • getAggregationTemporality

        AggregationTemporality getAggregationTemporality()
        Returns the AggregationTemporality of this metric,

        AggregationTemporality describes if the aggregator reports delta changes since last report time, or cumulative changes since a fixed start time.

        Returns:
        the AggregationTemporality of this metric
      • getPoints

        Collection<T> getPoints()
        Returns the data PointDatas for this metric.
        Returns:
        the data PointDatas for this metric, or empty Collection if no points.