Class UnknownSnapshot
java.lang.Object
io.prometheus.metrics.model.snapshots.MetricSnapshot
io.prometheus.metrics.model.snapshots.UnknownSnapshot
Immutable snapshot of an Unknown (Untyped) metric.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final class -
Field Summary
Fields inherited from class io.prometheus.metrics.model.snapshots.MetricSnapshot
dataPoints -
Constructor Summary
ConstructorsModifierConstructorDescriptionUnknownSnapshot(MetricMetadata metadata, Collection<UnknownSnapshot.UnknownDataPointSnapshot> data) To create a newUnknownSnapshot, you can either call the constructor directly or use the builder withbuilder().privateUnknownSnapshot(MetricMetadata metadata, Collection<UnknownSnapshot.UnknownDataPointSnapshot> data, boolean internal) -
Method Summary
Modifier and TypeMethodDescriptionstatic UnknownSnapshot.Builderbuilder()(package private) MetricSnapshotescape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) Methods inherited from class io.prometheus.metrics.model.snapshots.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. SeeMetricMetadatafor naming conventions.data- the constructor will create a sorted copy of the collection.
-
UnknownSnapshot
private UnknownSnapshot(MetricMetadata metadata, Collection<UnknownSnapshot.UnknownDataPointSnapshot> data, boolean internal)
-
-
Method Details
-
getDataPoints
- Specified by:
getDataPointsin classMetricSnapshot
-
escape
MetricSnapshot escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) - Specified by:
escapein classMetricSnapshot
-
builder
-