Class UnknownSnapshot
Object
MetricSnapshot
UnknownSnapshot
Immutable snapshot of an Unknown (Untyped) metric.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
-
Constructor Summary
ConstructorDescriptionUnknownSnapshot
(MetricMetadata metadata, Collection<UnknownSnapshot.UnknownDataPointSnapshot> data) To create a newUnknownSnapshot
, you can either call the constructor directly or use the builder withbuilder()
. -
Method Summary
Methods inherited from class MetricSnapshot
getMetadata
-
Constructor Details
-
UnknownSnapshot
public UnknownSnapshot(MetricMetadata metadata, Collection<UnknownSnapshot.UnknownDataPointSnapshot> data) To create a newUnknownSnapshot
, you can either call the constructor directly or use the builder withbuilder()
.- Parameters:
metadata
- required name and optional help and unit. SeeMetricMetadata
for naming conventions.data
- the constructor will create a sorted copy of the collection.
-
-
Method Details
-
getDataPoints
- Specified by:
getDataPoints
in classMetricSnapshot
-
builder
-