pub struct ClusterHealthSummary {
pub total_count: usize,
pub healthy_count: usize,
pub degraded_count: usize,
pub unresponsive_count: usize,
pub failed_count: usize,
pub recovering_count: usize,
}
Expand description
Cluster health summary
Fields§
§total_count: usize
§healthy_count: usize
§degraded_count: usize
§unresponsive_count: usize
§failed_count: usize
§recovering_count: usize
Implementations§
Source§impl ClusterHealthSummary
impl ClusterHealthSummary
Sourcepub fn health_percentage(&self) -> f64
pub fn health_percentage(&self) -> f64
Calculate health percentage
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if cluster is in good health
Trait Implementations§
Source§impl Debug for ClusterHealthSummary
impl Debug for ClusterHealthSummary
Source§impl Default for ClusterHealthSummary
impl Default for ClusterHealthSummary
Source§fn default() -> ClusterHealthSummary
fn default() -> ClusterHealthSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClusterHealthSummary
impl RefUnwindSafe for ClusterHealthSummary
impl Send for ClusterHealthSummary
impl Sync for ClusterHealthSummary
impl Unpin for ClusterHealthSummary
impl UnwindSafe for ClusterHealthSummary
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> 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