pub struct Sample {
pub t: f64,
pub val: f64,
pub min: f64,
pub max: f64,
pub count: u32,
pub severity: Severity,
pub status: u16,
}Expand description
One plotted point of archived data.
A raw sample has min == max == val. A bin from optimized_N has val
= the bin mean, min/max its extremes and count its sample count;
t is then the bin centre. val is NaN at a gap (a disconnect, a
severity-INVALID connection-lost event, or an archived NaN), where the
plot breaks the line.
Fields§
§t: f64UTC seconds since the epoch (secs + nanos * 1e-9).
val: f64§min: f64§max: f64§count: u32Samples in the bin; 1 for a raw sample.
severity: Severity§status: u16Implementations§
Trait Implementations§
impl Copy for Sample
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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