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

Construct and immediately register a new IntGaugeWithLabels instance.

Get the value of the gauge with the provided labels.

Set the value of the gauge with the provided labels.

Add value to the gauge with the provided labels.

Subtract value from the gauge with the provided labels.

Increment the gauge by 1, using the provided labels for the event.

Decrement the gauge by 1, using the provided labels for the event.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.