Class InfoSnapshot
Object
MetricSnapshot
InfoSnapshot
Immutable snapshot of an Info metric.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorDescriptionInfoSnapshot
(MetricMetadata metadata, Collection<InfoSnapshot.InfoDataPointSnapshot> data) To create a newInfoSnapshot
, you can either call the constructor directly or use the builder withbuilder()
. -
Method Summary
Methods inherited from class MetricSnapshot
getMetadata
-
Constructor Details
-
InfoSnapshot
To create a newInfoSnapshot
, you can either call the constructor directly or use the builder withbuilder()
.- Parameters:
metadata
- the metric name in metadata must not include the_info
suffix. SeeMetricMetadata
for more naming conventions. The metadata must not have a unit.data
- the constructor will create a sorted copy of the collection.
-
-
Method Details
-
getDataPoints
- Specified by:
getDataPoints
in classMetricSnapshot
-
builder
-