pub struct HealthReport {
pub components: Vec<ComponentHealth>,
pub overall: HealthStatus,
}Expand description
Overall system health report produced by MetricsAggregator.
Fields§
§components: Vec<ComponentHealth>Per-component breakdown.
overall: HealthStatusThe worst status across all components (monotone escalation).
Implementations§
Source§impl HealthReport
impl HealthReport
Sourcepub fn is_fully_healthy(&self) -> bool
pub fn is_fully_healthy(&self) -> bool
Returns true only when every component is Healthy.
Sourcepub fn degraded_components(&self) -> impl Iterator<Item = &ComponentHealth>
pub fn degraded_components(&self) -> impl Iterator<Item = &ComponentHealth>
Returns components whose health is not Healthy.
pub fn to_json_value(&self) -> Value
pub fn to_json(&self) -> String
pub fn to_json_pretty(&self) -> Result<String, Error>
Trait Implementations§
Source§impl Clone for HealthReport
impl Clone for HealthReport
Source§fn clone(&self) -> HealthReport
fn clone(&self) -> HealthReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HealthReport
impl RefUnwindSafe for HealthReport
impl Send for HealthReport
impl Sync for HealthReport
impl Unpin for HealthReport
impl UnsafeUnpin for HealthReport
impl UnwindSafe for HealthReport
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