Module io.prometheus.metrics.model
Class ClassicHistogramBucket
java.lang.Object
io.prometheus.metrics.model.snapshots.ClassicHistogramBucket
- All Implemented Interfaces:
Comparable<ClassicHistogramBucket>
Helper class for iterating over
ClassicHistogramBuckets. Note that the count is
not cumulative.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ClassicHistogramBucket other) For sorting a list of buckets by upper bound.longgetCount()double
-
Constructor Details
-
ClassicHistogramBucket
public ClassicHistogramBucket(double upperBound, long count)
-
-
Method Details
-
getCount
public long getCount() -
getUpperBound
public double getUpperBound() -
compareTo
For sorting a list of buckets by upper bound.- Specified by:
compareToin interfaceComparable<ClassicHistogramBucket>
-