pub struct Gauge {
pub name: MetricName,
pub value: f64,
pub timestamp_ns: u64,
}Expand description
A gauge metric that can go up or down
Fields§
§name: MetricNameThe name of the gauge metric
value: f64The current value of the gauge (can increase or decrease)
timestamp_ns: u64Timestamp when the gauge was recorded (nanoseconds since epoch)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gauge
impl<'de> Deserialize<'de> for Gauge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Gauge
impl RefUnwindSafe for Gauge
impl Send for Gauge
impl Sync for Gauge
impl Unpin for Gauge
impl UnwindSafe for Gauge
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