pub struct MultiGauge { /* private fields */ }
Expand description
Represents a vector of gauges with floating point values. Wrapper for GaugeVec type
Implementations§
Source§impl MultiGauge
impl MultiGauge
Source§impl MultiGauge
impl MultiGauge
Sourcepub fn new(name: &str, description: &str, labels: &[&str]) -> Result<Self>
pub fn new(name: &str, description: &str, labels: &[&str]) -> Result<Self>
Creates a new vector of gauges with given name, description and counter labels.
Sourcepub fn increment(&self, label_values: &[&str], by: f64)
pub fn increment(&self, label_values: &[&str], by: f64)
Increments gauge with given labels by the given number.
Sourcepub fn decrement(&self, label_values: &[&str], by: f64)
pub fn decrement(&self, label_values: &[&str], by: f64)
Decrements gauge with given labels by the given number.
Sourcepub fn set(&self, label_values: &[&str], value: f64)
pub fn set(&self, label_values: &[&str], value: f64)
Sets gauge with given labels to the given value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiGauge
impl !RefUnwindSafe for MultiGauge
impl Send for MultiGauge
impl Sync for MultiGauge
impl Unpin for MultiGauge
impl !UnwindSafe for MultiGauge
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