Module io.prometheus.metrics.model
Class StateSetSnapshot
java.lang.Object
io.prometheus.metrics.model.snapshots.MetricSnapshot
io.prometheus.metrics.model.snapshots.StateSetSnapshot
Immutable snapshot of a StateSet metric.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
Fields inherited from class io.prometheus.metrics.model.snapshots.MetricSnapshot
dataPoints -
Constructor Summary
ConstructorsConstructorDescriptionStateSetSnapshot(MetricMetadata metadata, Collection<StateSetSnapshot.StateSetDataPointSnapshot> data) To create a newStateSetSnapshot, 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
-
StateSetSnapshot
public StateSetSnapshot(MetricMetadata metadata, Collection<StateSetSnapshot.StateSetDataPointSnapshot> data) To create a newStateSetSnapshot, you can either call the constructor directly or use the builder withbuilder().- Parameters:
metadata- SeeMetricMetadatafor more naming conventions.data- the constructor will create a sorted copy of the collection.
-
-
Method Details
-
getDataPoints
- Specified by:
getDataPointsin classMetricSnapshot
-
builder
-