Interface HistogramPointData
- All Superinterfaces:
PointData
- All Known Implementing Classes:
AutoValue_ImmutableHistogramPointData
,ImmutableHistogramPointData
,MutableHistogramPointData
Point data for
HistogramData
.- Since:
- 1.14.0
-
Method Summary
Modifier and TypeMethodDescriptionThe bucket boundaries.long
getCount()
The number of measurements taken.The counts in each bucket.List of exemplars collected from measurements that were used to form the data point.double
getMax()
The max of all measurements recorded, ifhasMax()
istrue
.double
getMin()
The min of all measurements recorded, ifhasMin()
istrue
.double
getSum()
The sum of all measurements recorded.boolean
hasMax()
Returntrue
ifgetMax()
is set.boolean
hasMin()
Returntrue
ifgetMin()
is set.Methods inherited from interface io.opentelemetry.sdk.metrics.data.PointData
getAttributes, getEpochNanos, getStartEpochNanos
-
Method Details
-
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()Returntrue
ifgetMin()
is set. -
getMin
double getMin() -
hasMax
boolean hasMax()Returntrue
ifgetMax()
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:
getExemplars
in interfacePointData
-