Uses of Class
io.prometheus.metrics.model.snapshots.MetricMetadata
-
Uses of MetricMetadata in io.prometheus.metrics.model.snapshots
Modifier and TypeMethodDescriptionDuplicateLabelsException.getMetadata()
MetricSnapshot.getMetadata()
ModifierConstructorDescriptionCounterSnapshot
(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 parametertrue
to 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()
.