Module io.prometheus.metrics.model
Class HistogramSnapshot.HistogramDataPointSnapshot.Builder
java.lang.Object
io.prometheus.metrics.model.snapshots.DataPointSnapshot.Builder<HistogramSnapshot.HistogramDataPointSnapshot.Builder>
io.prometheus.metrics.model.snapshots.HistogramSnapshot.HistogramDataPointSnapshot.Builder
- Enclosing class:
HistogramSnapshot.HistogramDataPointSnapshot
public static class HistogramSnapshot.HistogramDataPointSnapshot.Builder
extends DataPointSnapshot.Builder<HistogramSnapshot.HistogramDataPointSnapshot.Builder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected longprotected Exemplarsprotected doubleFields inherited from class io.prometheus.metrics.model.snapshots.DataPointSnapshot.Builder
labels, scrapeTimestampMillis -
Method Summary
Modifier and TypeMethodDescriptionbuild()classicHistogramBuckets(ClassicHistogramBuckets classicBuckets) count(long count) Count can be explicitly set on summaries (this is a public method for summary metrics), and it is set implicitly on histograms (derived from the bucket counts).createdTimestampMillis(long createdTimestampMillis) nativeBucketsForNegativeValues(NativeHistogramBuckets bucketsForNegativeValues) nativeBucketsForPositiveValues(NativeHistogramBuckets bucketsForPositiveValues) nativeSchema(int nativeSchema) nativeZeroCount(long zeroCount) nativeZeroThreshold(double zeroThreshold) self()sum(double sum) Methods inherited from class io.prometheus.metrics.model.snapshots.DataPointSnapshot.Builder
labels, scrapeTimestampMillis
-
Field Details
-
count
protected long count -
sum
protected double sum -
createdTimestampMillis
protected long createdTimestampMillis -
exemplars
-
-
Method Details
-
self
- Specified by:
selfin classDataPointSnapshot.Builder<HistogramSnapshot.HistogramDataPointSnapshot.Builder>
-
classicHistogramBuckets
public HistogramSnapshot.HistogramDataPointSnapshot.Builder classicHistogramBuckets(ClassicHistogramBuckets classicBuckets) -
nativeSchema
-
nativeZeroCount
-
nativeZeroThreshold
public HistogramSnapshot.HistogramDataPointSnapshot.Builder nativeZeroThreshold(double zeroThreshold) -
nativeBucketsForPositiveValues
public HistogramSnapshot.HistogramDataPointSnapshot.Builder nativeBucketsForPositiveValues(NativeHistogramBuckets bucketsForPositiveValues) -
nativeBucketsForNegativeValues
public HistogramSnapshot.HistogramDataPointSnapshot.Builder nativeBucketsForNegativeValues(NativeHistogramBuckets bucketsForNegativeValues) -
build
-
count
Count can be explicitly set on summaries (this is a public method for summary metrics), and it is set implicitly on histograms (derived from the bucket counts). -
sum
-
exemplars
-
createdTimestampMillis
public HistogramSnapshot.HistogramDataPointSnapshot.Builder createdTimestampMillis(long createdTimestampMillis)
-