Class DoubleSummaryPointData

java.lang.Object
io.opentelemetry.sdk.metrics.data.DoubleSummaryPointData
All Implemented Interfaces:
PointData

@Immutable public abstract class DoubleSummaryPointData extends Object implements PointData
SummaryPoint is a single data point that summarizes the values in a time series of numeric values.
  • Method Details

    • create

      public static DoubleSummaryPointData create(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Attributes attributes, long count, double sum, List<ValueAtPercentile> percentileValues)
      Parameters:
      startEpochNanos - (optional) The starting time for the period where this point was sampled.
      epochNanos - The ending time for the period when this value was sampled.
      attributes - The set of attributes associated with this point.
      count - The number of measurements being sumarized.
      sum - The sum of measuremnts being sumarized.
      percentileValues - Calculations of percentile values from measurements.
    • getCount

      public abstract long getCount()
      The number of values that are being summarized.
      Returns:
      the number of values that are being summarized.
    • getSum

      public abstract double getSum()
      The sum of all the values that are being summarized.
      Returns:
      the sum of the values that are being summarized.
    • getPercentileValues

      public abstract List<ValueAtPercentile> getPercentileValues()
      Percentile values in the summarization. Note: a percentile 0.0 represents the minimum value in the distribution.
      Returns:
      the percentiles values.