Class 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) true
indicates that this histogram is a gauge histogram.Methods inherited from class MetricSnapshot.Builder
help, name, unit
-
Method Details
-
dataPoint
Add a data point. Call multiple times to add multiple data points. -
gaugeHistogram
true
indicates 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:
build
in classMetricSnapshot.Builder<HistogramSnapshot.Builder>
-