pub struct Incident {
pub id: IncidentId,
pub kind: IncidentKind,
pub target: UnitId,
pub divergence: (DesiredStatus, UnitStatus),
pub opened: Timestamp,
pub attempts: Vec<(TxnId, Outcome)>,
pub budget_left: u8,
pub state: IncidentState,
pub backoff: Millis,
pub next_attempt: Timestamp,
pub regressions: u8,
}Fields§
§id: IncidentId§kind: IncidentKind§target: UnitId§divergence: (DesiredStatus, UnitStatus)§opened: Timestamp§attempts: Vec<(TxnId, Outcome)>§budget_left: u8Persisted; survives daemon restart.
state: IncidentState§backoff: Millis§next_attempt: TimestampEarliest time of the next attempt (backoff and defer-to-systemd). Not in §8; persisted so a restart does not reset the backoff.
regressions: u8How often this target regressed within the window (§13).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Incident
impl<'de> Deserialize<'de> for Incident
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 Incident
impl StructuralPartialEq for Incident
Auto Trait Implementations§
impl Freeze for Incident
impl RefUnwindSafe for Incident
impl Send for Incident
impl Sync for Incident
impl Unpin for Incident
impl UnsafeUnpin for Incident
impl UnwindSafe for Incident
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