Type Alias metrics_prometheus::metric::PrometheusGauge

source ·
pub type PrometheusGauge = Either<Gauge, GaugeVec>;
Expand description

Aliased Type§

enum PrometheusGauge {
    Single(GenericGauge<AtomicF64>),
    Vec(MetricVec<GaugeVecBuilder<AtomicF64>>),
}

Variants§

Trait Implementations§

source§

impl TryFrom<&Key> for PrometheusGauge

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(key: &Key) -> Result<Self, Self::Error>

Performs the conversion.