Type Alias prometheus::local::LocalIntCounterVec

source ·
pub type LocalIntCounterVec = GenericLocalCounterVec<AtomicU64>;
Expand description

The integer version of LocalCounterVec. Provides better performance if metric values are all positive integers (natural numbers).

Aliased Type§

struct LocalIntCounterVec { /* private fields */ }

Implementations

source§

impl<P: Atomic> GenericLocalCounterVec<P>

source

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.

source

pub fn remove_label_values(&mut self, vals: &[&str]) -> Result<()>

Remove a GenericLocalCounter by label values. See more MetricVec::remove_label_values.

source

pub fn flush(&self)

Flush the local metrics to the CounterVec metric.

Trait Implementations

source§

impl<P: Atomic> Clone for GenericLocalCounterVec<P>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<P: Atomic> Debug for GenericLocalCounterVec<P>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>

source§

fn flush(&self)

Flush the local metrics to the CounterVec metric.