Class CounterSnapshot
Object
MetricSnapshot
CounterSnapshot
Immutable snapshot of a Counter.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorDescriptionCounterSnapshot
(MetricMetadata metadata, Collection<CounterSnapshot.CounterDataPointSnapshot> dataPoints) To create a newCounterSnapshot
, you can either call the constructor directly or use the builder withbuilder()
. -
Method Summary
Methods inherited from class MetricSnapshot
getMetadata
-
Constructor Details
-
CounterSnapshot
public CounterSnapshot(MetricMetadata metadata, Collection<CounterSnapshot.CounterDataPointSnapshot> dataPoints) To create a newCounterSnapshot
, you can either call the constructor directly or use the builder withbuilder()
.- Parameters:
metadata
- the metric name in metadata must not include the_total
suffix. SeeMetricMetadata
for more naming conventions.dataPoints
- the constructor will create a sorted copy of the collection.
-
-
Method Details
-
getDataPoints
- Specified by:
getDataPoints
in classMetricSnapshot
-
builder
-