Class HistogramSnapshot
Object
MetricSnapshot
HistogramSnapshot
Immutable snapshot of a Histogram.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHistogramSnapshot
(boolean isGaugeHistogram, MetricMetadata metadata, Collection<HistogramSnapshot.HistogramDataPointSnapshot> data) Use this with the first parametertrue
to create a snapshot of a Gauge Histogram.HistogramSnapshot
(MetricMetadata metadata, Collection<HistogramSnapshot.HistogramDataPointSnapshot> data) To create a newHistogramSnapshot
, you can either call the constructor directly or use the builder withbuilder()
. -
Method Summary
Methods inherited from class MetricSnapshot
getMetadata
-
Field Details
-
CLASSIC_HISTOGRAM
- See Also:
-
-
Constructor Details
-
HistogramSnapshot
public HistogramSnapshot(MetricMetadata metadata, Collection<HistogramSnapshot.HistogramDataPointSnapshot> data) To create a newHistogramSnapshot
, you can either call the constructor directly or use the builder withbuilder()
.- Parameters:
metadata
- seeMetricMetadata
for naming conventions.data
- the constructor will create a sorted copy of the collection.
-
HistogramSnapshot
public HistogramSnapshot(boolean isGaugeHistogram, MetricMetadata metadata, Collection<HistogramSnapshot.HistogramDataPointSnapshot> data) Use this with the first parametertrue
to create a snapshot of 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.
-
-
Method Details
-
isGaugeHistogram
-
getDataPoints
- Specified by:
getDataPoints
in classMetricSnapshot
-
builder
-