pub struct Frame {
pub end_time: UnixTimestampMilliseconds,
pub gauge_updates: HashMap<MetricId, f64>,
pub counter_updates: HashMap<MetricId, Uint>,
pub histograms: HashMap<MetricId, SerialisableHistogram>,
pub new_metrics: HashMap<MetricId, MetricDescriptor>,
}
Expand description
A single frame of metrics. Has an end timestamp (the start timestamp should be inferred from the previous frame or the header of the log file.
Fields§
§end_time: UnixTimestampMilliseconds
Unix timestamp (milliseconds) describing the end of this frame of metrics.
gauge_updates: HashMap<MetricId, f64>
Absolute values of updated gauges.
counter_updates: HashMap<MetricId, Uint>
Absolute values of updated counters. TODO should this be counts only for this window?
histograms: HashMap<MetricId, SerialisableHistogram>
Histograms only for this frame (this keeps them compact).
new_metrics: HashMap<MetricId, MetricDescriptor>
Descriptors of NEW metrics.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
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 Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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