pub struct SnapshotData {
pub cpu_percent: Vec<[f64; 2]>,
pub memory_mb: Vec<[f64; 2]>,
pub health_score: Vec<[f64; 2]>,
pub fd_count: Vec<[f64; 2]>,
pub thread_count: Vec<[f64; 2]>,
pub load_avg: Vec<[f64; 2]>,
}Expand description
Snapshot data containing all metric time series
Each metric is stored as an array of [timestamp, value] pairs.
Using [f64; 2] for efficient msgpack encoding as fixed-size arrays.
Fields§
§cpu_percent: Vec<[f64; 2]>§memory_mb: Vec<[f64; 2]>§health_score: Vec<[f64; 2]>§fd_count: Vec<[f64; 2]>§thread_count: Vec<[f64; 2]>§load_avg: Vec<[f64; 2]>Trait Implementations§
Source§impl Clone for SnapshotData
impl Clone for SnapshotData
Source§fn clone(&self) -> SnapshotData
fn clone(&self) -> SnapshotData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotData
impl Debug for SnapshotData
Source§impl Default for SnapshotData
impl Default for SnapshotData
Source§fn default() -> SnapshotData
fn default() -> SnapshotData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SnapshotData
impl RefUnwindSafe for SnapshotData
impl Send for SnapshotData
impl Sync for SnapshotData
impl Unpin for SnapshotData
impl UnwindSafe for SnapshotData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage