Uses of Class
io.prometheus.metrics.model.snapshots.NativeHistogramBuckets
-
Uses of NativeHistogramBuckets in io.prometheus.metrics.model.snapshots
Modifier and TypeFieldDescriptionstatic final NativeHistogramBuckets
NativeHistogramBuckets.EMPTY
Modifier and TypeMethodDescriptionNativeHistogramBuckets.Builder.build()
HistogramSnapshot.HistogramDataPointSnapshot.getNativeBucketsForNegativeValues()
Will return garbage ifHistogramSnapshot.HistogramDataPointSnapshot.hasNativeHistogramData()
isfalse
.HistogramSnapshot.HistogramDataPointSnapshot.getNativeBucketsForPositiveValues()
Will return garbage ifHistogramSnapshot.HistogramDataPointSnapshot.hasNativeHistogramData()
isfalse
.static NativeHistogramBuckets
NativeHistogramBuckets.of
(int[] bucketIndexes, long[] counts) To create a newNativeHistogramBuckets
instance, you can either use one of the staticof(...)
methods, or usebuilder()
.static NativeHistogramBuckets
To create a newNativeHistogramBuckets
instance, you can either use one of the staticof(...)
methods, or usebuilder()
.Modifier and TypeMethodDescriptionHistogramSnapshot.HistogramDataPointSnapshot.Builder.nativeBucketsForNegativeValues
(NativeHistogramBuckets bucketsForNegativeValues) HistogramSnapshot.HistogramDataPointSnapshot.Builder.nativeBucketsForPositiveValues
(NativeHistogramBuckets bucketsForPositiveValues) ModifierConstructorDescriptionHistogramDataPointSnapshot
(int nativeSchema, long nativeZeroCount, double nativeZeroThreshold, NativeHistogramBuckets nativeBucketsForPositiveValues, NativeHistogramBuckets nativeBucketsForNegativeValues, double sum, Labels labels, Exemplars exemplars, long createdTimestampMillis) Constructor for native histograms (as opposed to classic 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.