Counter

Type Alias Counter 

Source
pub type Counter = Family<Label, Counter>;
Expand description

A counter metric with a status label.

Aliased Type§

pub struct Counter { /* private fields */ }

Trait Implementations§

Source§

impl CounterExt for Counter

Source§

fn guard(&self, status: Status) -> CounterGuard

Create a new CounterGuard with a given status.

Source§

fn inc(&self, status: Status)

Increment the metric with a given status.

Source§

fn inc_by(&self, status: Status, n: u64)

Increment the metric with a given status.