Uses of Class
io.prometheus.metrics.model.snapshots.ClassicHistogramBuckets
-
Uses of ClassicHistogramBuckets in io.prometheus.metrics.model.snapshots
Modifier and TypeFieldDescriptionstatic final ClassicHistogramBuckets
ClassicHistogramBuckets.EMPTY
Used in native histograms to indicate that no classic histogram buckets are present.Modifier and TypeMethodDescriptionClassicHistogramBuckets.Builder.build()
Will throw anIllegalArgumentException
if theDouble.POSITIVE_INFINITY
bucket is missing.HistogramSnapshot.HistogramDataPointSnapshot.getClassicBuckets()
Will return garbage ifHistogramSnapshot.HistogramDataPointSnapshot.hasClassicHistogramData()
isfalse
.static ClassicHistogramBuckets
ClassicHistogramBuckets.of
(double[] upperBounds, long[] counts) To create newClassicHistogramBuckets
, you can either use one of the staticof(...)
methods, or usebuilder()
.static ClassicHistogramBuckets
To create newClassicHistogramBuckets
, you can either use one of the staticof(...)
methods, or usebuilder()
.static ClassicHistogramBuckets
To create newClassicHistogramBuckets
, you can either use one of the staticof(...)
methods, or usebuilder()
.Modifier and TypeMethodDescriptionHistogramSnapshot.HistogramDataPointSnapshot.Builder.classicHistogramBuckets
(ClassicHistogramBuckets classicBuckets) ModifierConstructorDescriptionHistogramDataPointSnapshot
(ClassicHistogramBuckets classicBuckets, double sum, Labels labels, Exemplars exemplars, long createdTimestampMillis) Constructor for classic histograms (as opposed to native histograms).HistogramDataPointSnapshot
(ClassicHistogramBuckets classicBuckets, int nativeSchema, long nativeZeroCount, double nativeZeroThreshold, NativeHistogramBuckets nativeBucketsForPositiveValues, NativeHistogramBuckets nativeBucketsForNegativeValues, double sum, Labels labels, Exemplars exemplars, long createdTimestampMillis) Constructor for a histogram with both, classic and native data.HistogramDataPointSnapshot
(ClassicHistogramBuckets classicBuckets, int nativeSchema, long nativeZeroCount, double nativeZeroThreshold, NativeHistogramBuckets nativeBucketsForPositiveValues, NativeHistogramBuckets nativeBucketsForNegativeValues, double sum, Labels labels, Exemplars exemplars, long createdTimestampMillis, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.