pub(crate) struct Track {
pub(crate) divergent_ticks: u8,
pub(crate) unknown_ticks: u8,
pub(crate) satisfied_since: Option<Timestamp>,
pub(crate) last_closed: Option<(Timestamp, u8)>,
pub(crate) failures: Vec<Timestamp>,
pub(crate) was_divergent: bool,
pub(crate) up_since: Option<Timestamp>,
pub(crate) in_grace: bool,
}Expand description
Per-unit observation history. Not journaled: after a restart it is re-learned within a few ticks, while the incidents themselves (budgets, backoff, holds) come back from the journal.
Fields§
§divergent_ticks: u8§unknown_ticks: u8§satisfied_since: Option<Timestamp>§last_closed: Option<(Timestamp, u8)>When the last incident on this target closed, and its regression count.
failures: Vec<Timestamp>When the unit went from fine to divergent, recently.
was_divergent: bool§up_since: Option<Timestamp>When the unit last came up (Running or Degraded: its process is active), or when Planarian started or restarted it; first sight counts as coming up.
in_grace: boolDegraded within its startup grace: not yet a fault.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Track
impl<'de> Deserialize<'de> for Track
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 Track
impl StructuralPartialEq for Track
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin for Track
impl UnwindSafe for Track
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