Struct prometheus::local::LocalCounter
[−]
[src]
pub struct LocalCounter { /* fields omitted */ }
Methods
impl LocalCounter
[src]
fn new(counter: Counter) -> LocalCounter
[src]
fn inc_by(&mut self, v: f64) -> Result<()>
[src]
inc_by
increments the given value to the local counter. Error if the value is <
0.
fn inc(&mut self)
[src]
inc
increments the local counter by 1.
fn get(&self) -> f64
[src]
get
returns the local counter value.
fn flush(&mut self)
[src]
flush
the local counter value to the counter