Class HistogramSnapshot
Object
MetricSnapshot
HistogramSnapshot
Immutable snapshot of a Histogram.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHistogramSnapshot(boolean isGaugeHistogram, MetricMetadata metadata, Collection<HistogramSnapshot.HistogramDataPointSnapshot> data) Use this with the first parametertrueto 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- seeMetricMetadatafor 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 parametertrueto 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:
getDataPointsin classMetricSnapshot
-
builder
-