java.lang.Object
io.prometheus.metrics.model.snapshots.MetricSnapshot
io.prometheus.metrics.model.snapshots.InfoSnapshot
Immutable snapshot of an Info metric.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class io.prometheus.metrics.model.snapshots.MetricSnapshot
dataPoints -
Constructor Summary
ConstructorsConstructorDescriptionInfoSnapshot(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 io.prometheus.metrics.model.snapshots.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_infosuffix. SeeMetricMetadatafor 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:
getDataPointsin classMetricSnapshot
-
builder
-