Type Alias prometheus::core::GenericCounterVec
source · pub type GenericCounterVec<P> = MetricVec<CounterVecBuilder<P>>;
Expand description
The underlying implementation for CounterVec
and IntCounterVec
.
Aliased Type§
struct GenericCounterVec<P> { /* private fields */ }
Implementations§
source§impl<P: Atomic> GenericCounterVec<P>
impl<P: Atomic> GenericCounterVec<P>
sourcepub fn new(opts: Opts, label_names: &[&str]) -> Result<Self>
pub fn new(opts: Opts, label_names: &[&str]) -> Result<Self>
Create a new GenericCounterVec
based on the provided
Opts
and partitioned by the given label names. At least one label name must be
provided.
sourcepub fn local(&self) -> GenericLocalCounterVec<P>
pub fn local(&self) -> GenericLocalCounterVec<P>
Return a GenericLocalCounterVec
for single thread usage.