pub struct FleetStatusReport {
pub diff: FleetDiff,
pub problem_class: FleetProblemClass,
pub problem_summary: String,
pub absence_alerts: Vec<AbsenceAlert>,
pub absence_threshold_secs: u64,
}Expand description
Whole-fleet status: the desired/live grouping diff plus the dominant problem class and any absence alerts.
Fields§
§diff: FleetDiffPer-worker grouping + counts + capacity-collapse explanation.
problem_class: FleetProblemClassThe single category that best explains the fleet’s state.
problem_summary: StringOne-line human summary of the dominant problem.
absence_alerts: Vec<AbsenceAlert>Workers absent from live eligibility longer than the policy window, newest-absence… longest-absence first.
absence_threshold_secs: u64The policy window used for absence alerts, in seconds.
Implementations§
Source§impl FleetStatusReport
impl FleetStatusReport
Sourcepub fn has_absence_warnings(&self) -> bool
pub fn has_absence_warnings(&self) -> bool
Whether any worker tripped the absence policy window.
Sourcepub fn capacity_collapsed(&self) -> bool
pub fn capacity_collapsed(&self) -> bool
Whether the fleet has collapsed to zero usable workers.
Trait Implementations§
Source§impl Clone for FleetStatusReport
impl Clone for FleetStatusReport
Source§impl Debug for FleetStatusReport
impl Debug for FleetStatusReport
Source§impl<'de> Deserialize<'de> for FleetStatusReport
impl<'de> Deserialize<'de> for FleetStatusReport
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 FleetStatusReport
Source§impl PartialEq for FleetStatusReport
impl PartialEq for FleetStatusReport
Source§impl Serialize for FleetStatusReport
impl Serialize for FleetStatusReport
impl StructuralPartialEq for FleetStatusReport
Auto Trait Implementations§
impl Freeze for FleetStatusReport
impl RefUnwindSafe for FleetStatusReport
impl Send for FleetStatusReport
impl Sync for FleetStatusReport
impl Unpin for FleetStatusReport
impl UnsafeUnpin for FleetStatusReport
impl UnwindSafe for FleetStatusReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.