Trait prometheus_client::metrics::TypedMetric

source ·
pub trait TypedMetric {
    const TYPE: MetricType = MetricType::Unknown;
}
Expand description

A metric that is aware of its Open Metrics metric type.

Provided Associated Constants§

source

const TYPE: MetricType = MetricType::Unknown

The OpenMetrics metric type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl TypedMetric for Histogram

source§

const TYPE: MetricType = MetricType::Histogram

source§

impl<N> TypedMetric for ConstCounter<N>

source§

const TYPE: MetricType = MetricType::Counter

source§

impl<N> TypedMetric for ConstGauge<N>

source§

const TYPE: MetricType = MetricType::Gauge

source§

impl<N, A> TypedMetric for Counter<N, A>

source§

const TYPE: MetricType = MetricType::Counter

source§

impl<N, A> TypedMetric for Gauge<N, A>

source§

const TYPE: MetricType = MetricType::Gauge

source§

impl<S> TypedMetric for CounterWithExemplar<S>

source§

const TYPE: MetricType = MetricType::Counter

source§

impl<S> TypedMetric for HistogramWithExemplars<S>

source§

const TYPE: MetricType = MetricType::Histogram

source§

impl<S> TypedMetric for Info<S>

source§

const TYPE: MetricType = MetricType::Info

source§

impl<S, M: TypedMetric, C> TypedMetric for Family<S, M, C>

source§

const TYPE: MetricType = <M as TypedMetric>::TYPE