PrometheusGauge

Type Alias PrometheusGauge 

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

Aliased Type§

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

Variants§

Trait Implementations§

Source§

impl TryFrom<&Key> for PrometheusGauge

Source§

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.