Struct prometheus::core::GenericLocalCounterVec [−][src]
pub struct GenericLocalCounterVec<P: Atomic> { /* fields omitted */ }
The underlying implementation for LocalCounterVec
and LocalIntCounterVec
.
Methods
impl<P: Atomic> GenericLocalCounterVec<P>
[src]
impl<P: Atomic> GenericLocalCounterVec<P>
pub fn with_label_values<'a>(
&'a mut self,
vals: &[&str]
) -> &'a mut GenericLocalCounter<P>
[src]
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.
pub fn remove_label_values(&mut self, vals: &[&str]) -> Result<()>
[src]
pub fn remove_label_values(&mut self, vals: &[&str]) -> Result<()>
Remove a GenericLocalCounter
by label values.
See more MetricVec::remove_label_values.
pub fn flush(&mut self)
[src]
pub fn flush(&mut self)
Flush the local metrics to the CounterVec
metric.
Trait Implementations
impl<P: Atomic> Clone for GenericLocalCounterVec<P>
[src]
impl<P: Atomic> Clone for GenericLocalCounterVec<P>
Auto Trait Implementations
impl<P> Send for GenericLocalCounterVec<P> where
<P as Atomic>::T: Send,
impl<P> Send for GenericLocalCounterVec<P> where
<P as Atomic>::T: Send,
impl<P> Sync for GenericLocalCounterVec<P> where
<P as Atomic>::T: Sync,
impl<P> Sync for GenericLocalCounterVec<P> where
<P as Atomic>::T: Sync,