pub struct HealthSnapshot {
pub level: HealthLevel,
pub tcb_critical: bool,
pub restart_total: u64,
pub consecutive_failures: u32,
pub last_ok_unix_ms: Option<u64>,
pub last_transition_unix_ms: Option<u64>,
pub reason: Option<String>,
}Expand description
A serializable point-in-time view of a HealthFlag, for operator surfaces and
the telemetry exporter. All fields are additive; consumers deserialize with
#[serde(default)].
Fields§
§level: HealthLevel§tcb_critical: bool§restart_total: u64§consecutive_failures: u32§last_ok_unix_ms: Option<u64>§last_transition_unix_ms: Option<u64>§reason: Option<String>Trait Implementations§
Source§impl Clone for HealthSnapshot
impl Clone for HealthSnapshot
Source§fn clone(&self) -> HealthSnapshot
fn clone(&self) -> HealthSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HealthSnapshot
impl Debug for HealthSnapshot
Source§impl<'de> Deserialize<'de> for HealthSnapshot
impl<'de> Deserialize<'de> for HealthSnapshot
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
impl Eq for HealthSnapshot
Source§impl PartialEq for HealthSnapshot
impl PartialEq for HealthSnapshot
Source§impl Serialize for HealthSnapshot
impl Serialize for HealthSnapshot
impl StructuralPartialEq for HealthSnapshot
Auto Trait Implementations§
impl Freeze for HealthSnapshot
impl RefUnwindSafe for HealthSnapshot
impl Send for HealthSnapshot
impl Sync for HealthSnapshot
impl Unpin for HealthSnapshot
impl UnsafeUnpin for HealthSnapshot
impl UnwindSafe for HealthSnapshot
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