Uses of Class
io.prometheus.metrics.model.snapshots.MetricMetadata
Packages that use MetricMetadata
-
Uses of MetricMetadata in io.prometheus.metrics.model.snapshots
Methods in io.prometheus.metrics.model.snapshots that return MetricMetadataModifier and TypeMethodDescriptionDuplicateLabelsException.getMetadata()MetricSnapshot.getMetadata()Methods in io.prometheus.metrics.model.snapshots with parameters of type MetricMetadataModifier and TypeMethodDescriptionstatic StringSnapshotEscaper.getMetadataName(MetricMetadata metadata, EscapingScheme scheme) Constructors in io.prometheus.metrics.model.snapshots with parameters of type MetricMetadataModifierConstructorDescriptionCounterSnapshot(MetricMetadata metadata, Collection<CounterSnapshot.CounterDataPointSnapshot> dataPoints) To create a newCounterSnapshot, you can either call the constructor directly or use the builder withCounterSnapshot.builder().DuplicateLabelsException(MetricMetadata metadata, Labels labels) GaugeSnapshot(MetricMetadata metadata, Collection<GaugeSnapshot.GaugeDataPointSnapshot> data) To create a newGaugeSnapshot, you can either call the constructor directly or use the builder withGaugeSnapshot.builder().HistogramSnapshot(boolean isGaugeHistogram, MetricMetadata metadata, Collection<HistogramSnapshot.HistogramDataPointSnapshot> data) Use this with the first parametertrueto create a snapshot of a Gauge Histogram.HistogramSnapshot(MetricMetadata metadata, Collection<HistogramSnapshot.HistogramDataPointSnapshot> data) To create a newHistogramSnapshot, you can either call the constructor directly or use the builder withHistogramSnapshot.builder().InfoSnapshot(MetricMetadata metadata, Collection<InfoSnapshot.InfoDataPointSnapshot> data) To create a newInfoSnapshot, you can either call the constructor directly or use the builder withInfoSnapshot.builder().StateSetSnapshot(MetricMetadata metadata, Collection<StateSetSnapshot.StateSetDataPointSnapshot> data) To create a newStateSetSnapshot, you can either call the constructor directly or use the builder withStateSetSnapshot.builder().SummarySnapshot(MetricMetadata metadata, Collection<SummarySnapshot.SummaryDataPointSnapshot> data) To create a newSummarySnapshot, you can either call the constructor directly or use the builder withSummarySnapshot.builder().UnknownSnapshot(MetricMetadata metadata, Collection<UnknownSnapshot.UnknownDataPointSnapshot> data) To create a newUnknownSnapshot, you can either call the constructor directly or use the builder withUnknownSnapshot.builder().