Type Alias prometheus::local::LocalCounterVec
source · pub type LocalCounterVec = GenericLocalCounterVec<AtomicF64>;
Expand description
An unsync CounterVec
.
Aliased Type§
struct LocalCounterVec { /* private fields */ }
Implementations
source§impl<P: Atomic> GenericLocalCounterVec<P>
impl<P: Atomic> GenericLocalCounterVec<P>
sourcepub fn with_label_values<'a>(
&'a mut self,
vals: &[&str],
) -> &'a mut GenericLocalCounter<P>
pub fn with_label_values<'a>( &'a mut self, vals: &[&str], ) -> &'a mut GenericLocalCounter<P>
Get a GenericLocalCounter
by label values.
See more MetricVec::with_label_values.
sourcepub fn remove_label_values(&mut self, vals: &[&str]) -> Result<()>
pub fn remove_label_values(&mut self, vals: &[&str]) -> Result<()>
Remove a GenericLocalCounter
by label values.
See more MetricVec::remove_label_values.
sourcepub fn flush(&self)
pub fn flush(&self)
Flush the local metrics to the CounterVec
metric.
Trait Implementations
source§impl<P: Atomic> Clone for GenericLocalCounterVec<P>
impl<P: Atomic> Clone for GenericLocalCounterVec<P>
source§impl<P: Atomic> Debug for GenericLocalCounterVec<P>
impl<P: Atomic> Debug for GenericLocalCounterVec<P>
source§impl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>
impl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>
source§fn flush(&self)
fn flush(&self)
Flush the local metrics to the CounterVec
metric.