Class DoubleHistogramPointData

  • All Implemented Interfaces:
    PointData

    @Immutable
    public abstract class DoubleHistogramPointData
    extends Object
    implements PointData
    DoubleHistogramPointData represents an approximate representation of the distribution of measurements.
    • Method Detail

      • create

        public static DoubleHistogramPointData create​(long startEpochNanos,
                                                      long epochNanos,
                                                      io.opentelemetry.api.metrics.common.Labels labels,
                                                      double sum,
                                                      List<Double> boundaries,
                                                      List<Long> counts)
        Creates a DoubleHistogramPointData. For a Histogram with N defined boundaries, there should be N+1 counts.
        Returns:
        a DoubleHistogramPointData.
        Throws:
        IllegalArgumentException - if the given boundaries/counts were invalid
      • getSum

        public abstract double getSum()
        The sum of all measurements recorded.
        Returns:
        the sum of recorded measurements.
      • getCount

        public abstract long getCount()
        The number of measurements taken.
        Returns:
        the count of recorded measurements.
      • getBoundaries

        public abstract List<Double> getBoundaries()
        The bucket boundaries. For a Histogram with N defined boundaries, e.g, [x, y, z]. There are N+1 counts: (-inf, x], (x, y], (y, z], (z, +inf).
        Returns:
        the read-only bucket boundaries in increasing order. do not mutate the returned object.
      • getCounts

        public abstract List<Long> getCounts()
        The counts in each bucket.
        Returns:
        the read-only counts in each bucket. do not mutate the returned object.