Struct prometheus_utils::IntGaugeWithLabels
source · [−]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
sourceimpl<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> !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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more