Module io.prometheus.metrics.model
Class HistogramSnapshot.Builder
java.lang.Object
io.prometheus.metrics.model.snapshots.MetricSnapshot.Builder<HistogramSnapshot.Builder>
io.prometheus.metrics.model.snapshots.HistogramSnapshot.Builder
- Enclosing class:
- HistogramSnapshot
public static class HistogramSnapshot.Builder
extends MetricSnapshot.Builder<HistogramSnapshot.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Add a data point.gaugeHistogram(boolean isGaugeHistogram) trueindicates that this histogram is a gauge histogram.protected HistogramSnapshot.Builderself()Methods inherited from class io.prometheus.metrics.model.snapshots.MetricSnapshot.Builder
buildMetadata, help, name, unit
-
Method Details
-
dataPoint
Add a data point. Call multiple times to add multiple data points. -
gaugeHistogram
trueindicates that this histogram is a gauge histogram. The data model for gauge histograms is the same as for regular histograms, except that bucket values are semantically gauges and not counters. See openmetrics.io for more info on gauge histograms. -
build
- Specified by:
buildin classMetricSnapshot.Builder<HistogramSnapshot.Builder>
-
self
- Specified by:
selfin classMetricSnapshot.Builder<HistogramSnapshot.Builder>
-