pub struct Sample {
pub values: Vec<Option<f64>>,
pub healthy: bool,
pub failed_checks: Vec<String>,
}Expand description
One run’s reading. values[i] belongs to the metric at index i of the
table passed to sample. A missing value is None, never zero.
Fields§
§values: Vec<Option<f64>>§healthy: boolThe one source of health: the Healthy metric value is derived from it.
failed_checks: Vec<String>Messages of the checks that failed, in check order.
Trait Implementations§
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Forget for Sample
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