Interface HistogramPointData
- All Superinterfaces:
PointData
Point data for
HistogramData.- Since:
- 1.14.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic HistogramPointDatacreate(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Double> boundaries, List<Long> counts) Create a record.The bucket boundaries.longgetCount()The number of measurements taken.The counts in each bucket.List of exemplars collected from measurements that were used to form the data point.doublegetMax()The max of all measurements recorded, ifhasMax()istrue.doublegetMin()The min of all measurements recorded, ifhasMin()istrue.doublegetSum()The sum of all measurements recorded.booleanhasMax()ReturntrueifgetMax()is set.booleanhasMin()ReturntrueifgetMin()is set.Methods inherited from interface io.opentelemetry.sdk.metrics.data.PointData
getAttributes, getEpochNanos, getStartEpochNanos
-
Method Details
-
create
static HistogramPointData create(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Double> boundaries, List<Long> counts) Create a record.- Since:
- 1.50.0
-
getSum
double getSum()The sum of all measurements recorded.- Returns:
- the sum of recorded measurements.
-
getCount
long getCount()The number of measurements taken.- Returns:
- the count of recorded measurements.
-
hasMin
boolean hasMin()ReturntrueifgetMin()is set. -
getMin
double getMin() -
hasMax
boolean hasMax()ReturntrueifgetMax()is set. -
getMax
double getMax() -
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
The counts in each bucket.- Returns:
- the read-only counts in each bucket. do not mutate the returned object.
-
getExemplars
List<DoubleExemplarData> getExemplars()List of exemplars collected from measurements that were used to form the data point.- Specified by:
getExemplarsin interfacePointData
-