pub struct Histogram {
pub name: MetricName,
pub value: f64,
pub timestamp_ns: u64,
pub bucket: Option<usize>,
}Expand description
A histogram metric for recording distributions
Fields§
§name: MetricNameThe name of the histogram metric
value: f64The value being recorded in the histogram
timestamp_ns: u64Timestamp when the histogram value was recorded (nanoseconds since epoch)
bucket: Option<usize>Optional bucket for pre-aggregation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Histogram
impl<'de> Deserialize<'de> for Histogram
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 Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnwindSafe for Histogram
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