pub struct StackHealth {
pub components: HashMap<StackComponent, ComponentHealth>,
pub overall: HealthStatus,
pub checked_at: String,
}Expand description
Stack health status
Fields§
§components: HashMap<StackComponent, ComponentHealth>Component availability
overall: HealthStatusOverall status
checked_at: StringLast check timestamp
Implementations§
Source§impl StackHealth
impl StackHealth
Sourcepub fn new() -> StackHealth
pub fn new() -> StackHealth
Create new health status
Sourcepub fn set_component(
&mut self,
component: StackComponent,
health: ComponentHealth,
)
pub fn set_component( &mut self, component: StackComponent, health: ComponentHealth, )
Set component health
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if stack is healthy
Trait Implementations§
Source§impl Clone for StackHealth
impl Clone for StackHealth
Source§fn clone(&self) -> StackHealth
fn clone(&self) -> StackHealth
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 StackHealth
impl Debug for StackHealth
Source§impl Default for StackHealth
impl Default for StackHealth
Source§fn default() -> StackHealth
fn default() -> StackHealth
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StackHealth
impl RefUnwindSafe for StackHealth
impl Send for StackHealth
impl Sync for StackHealth
impl Unpin for StackHealth
impl UnsafeUnpin for StackHealth
impl UnwindSafe for StackHealth
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more