Class GaugeSnapshot
Object
MetricSnapshot
GaugeSnapshot
Immutable snapshot of a Gauge.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
-
Constructor Summary
ConstructorDescriptionGaugeSnapshot
(MetricMetadata metadata, Collection<GaugeSnapshot.GaugeDataPointSnapshot> data) To create a newGaugeSnapshot
, you can either call the constructor directly or use the builder withbuilder()
. -
Method Summary
Methods inherited from class MetricSnapshot
getMetadata
-
Constructor Details
-
GaugeSnapshot
public GaugeSnapshot(MetricMetadata metadata, Collection<GaugeSnapshot.GaugeDataPointSnapshot> data) To create a newGaugeSnapshot
, 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.
-
-
Method Details
-
getDataPoints
- Specified by:
getDataPoints
in classMetricSnapshot
-
builder
-