pub struct IntGaugeWithLabels<L: Labels> { /* private fields */ }
Expand description
A Prometheus integer gauge metric, with labels described by the type L
.
The type L
must implement the Labels
trait; see the documentation for that trait
for an overview of Prometheus metric labels.
Implementations§
Source§impl<L: Labels> IntGaugeWithLabels<L>
impl<L: Labels> IntGaugeWithLabels<L>
Sourcepub fn register_new(name: &str, help: &str) -> IntGaugeWithLabels<L>
pub fn register_new(name: &str, help: &str) -> IntGaugeWithLabels<L>
Construct and immediately register a new IntGaugeWithLabels
instance.
Sourcepub fn sub(&self, labels: &L, value: i64)
pub fn sub(&self, labels: &L, value: i64)
Subtract value
from the gauge with the provided labels
.
Auto Trait Implementations§
impl<L> Freeze for IntGaugeWithLabels<L>
impl<L> !RefUnwindSafe for IntGaugeWithLabels<L>
impl<L> Send for IntGaugeWithLabels<L>where
L: Send,
impl<L> Sync for IntGaugeWithLabels<L>where
L: Sync,
impl<L> Unpin for IntGaugeWithLabels<L>where
L: Unpin,
impl<L> !UnwindSafe for IntGaugeWithLabels<L>
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