Struct prometheus::core::GenericLocalCounterVec
source · pub struct GenericLocalCounterVec<P: Atomic> { /* private fields */ }
Expand description
The underlying implementation for LocalCounterVec
and LocalIntCounterVec
.
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.
Auto Trait Implementations§
impl<P> !RefUnwindSafe for GenericLocalCounterVec<P>
impl<P> Send for GenericLocalCounterVec<P>
impl<P> !Sync for GenericLocalCounterVec<P>
impl<P> Unpin for GenericLocalCounterVec<P>where <P as Atomic>::T: Unpin,
impl<P> !UnwindSafe for GenericLocalCounterVec<P>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more