Class GaugeSnapshot
java.lang.Object
io.prometheus.metrics.model.snapshots.MetricSnapshot
io.prometheus.metrics.model.snapshots.GaugeSnapshot
Immutable snapshot of a Gauge.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final class -
Field Summary
Fields inherited from class MetricSnapshot
dataPoints -
Constructor Summary
ConstructorsModifierConstructorDescriptionGaugeSnapshot(MetricMetadata metadata, Collection<GaugeSnapshot.GaugeDataPointSnapshot> data) To create a newGaugeSnapshot, you can either call the constructor directly or use the builder withbuilder().privateGaugeSnapshot(MetricMetadata metadata, Collection<GaugeSnapshot.GaugeDataPointSnapshot> data, boolean internal) -
Method Summary
Modifier and TypeMethodDescriptionstatic GaugeSnapshot.Builderbuilder()(package private) MetricSnapshotescape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) Methods inherited from class MetricSnapshot
getMetadata
-
Constructor Details
-
GaugeSnapshot
public GaugeSnapshot(MetricMetadata metadata, Collection<GaugeSnapshot.GaugeDataPointSnapshot> data) To create a newGaugeSnapshot, you can either call the constructor directly or use the builder withbuilder().- Parameters:
metadata- seeMetricMetadatafor naming conventions.data- the constructor will create a sorted copy of the collection.
-
GaugeSnapshot
private GaugeSnapshot(MetricMetadata metadata, Collection<GaugeSnapshot.GaugeDataPointSnapshot> data, boolean internal)
-
-
Method Details
-
getDataPoints
- Specified by:
getDataPointsin classMetricSnapshot
-
escape
MetricSnapshot escape(EscapingScheme escapingScheme, List<? extends DataPointSnapshot> dataPointSnapshots) - Specified by:
escapein classMetricSnapshot
-
builder
-