Class DoubleHistogramPointData
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.data.DoubleHistogramPointData
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DoubleHistogramPointDatacreate(long startEpochNanos, long epochNanos, io.opentelemetry.api.metrics.common.Labels labels, double sum, List<Double> boundaries, List<Long> counts)Creates a DoubleHistogramPointData.abstract List<Double>getBoundaries()The bucket boundaries.abstract longgetCount()The number of measurements taken.abstract List<Long>getCounts()The counts in each bucket.abstract doublegetSum()The sum of all measurements recorded.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.sdk.metrics.data.PointData
getEpochNanos, getLabels, getStartEpochNanos
-
-
-
-
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.
-
-