pub struct ClusterNodeHealth {Show 13 fields
pub node_id: u64,
pub role: String,
pub status: String,
pub api_addr: String,
pub is_self: bool,
pub is_leader: bool,
pub replication_lag: Option<u64>,
pub catchup_progress_pct: Option<u8>,
pub hostname: Option<String>,
pub memory_usage_mb: Option<u64>,
pub cpu_usage_percent: Option<f32>,
pub uptime_seconds: Option<u64>,
pub uptime_human: Option<String>,
}Expand description
Per-node health details from the cluster health endpoint.
Fields§
§node_id: u64§role: String§status: String§api_addr: String§is_self: bool§is_leader: bool§replication_lag: Option<u64>§catchup_progress_pct: Option<u8>§hostname: Option<String>§memory_usage_mb: Option<u64>§cpu_usage_percent: Option<f32>§uptime_seconds: Option<u64>§uptime_human: Option<String>Trait Implementations§
Source§impl Clone for ClusterNodeHealth
impl Clone for ClusterNodeHealth
Source§fn clone(&self) -> ClusterNodeHealth
fn clone(&self) -> ClusterNodeHealth
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 ClusterNodeHealth
impl Debug for ClusterNodeHealth
Source§impl<'de> Deserialize<'de> for ClusterNodeHealth
impl<'de> Deserialize<'de> for ClusterNodeHealth
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClusterNodeHealth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClusterNodeHealth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ClusterNodeHealth
impl Serialize for ClusterNodeHealth
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ClusterNodeHealth
impl RefUnwindSafe for ClusterNodeHealth
impl Send for ClusterNodeHealth
impl Sync for ClusterNodeHealth
impl Unpin for ClusterNodeHealth
impl UnsafeUnpin for ClusterNodeHealth
impl UnwindSafe for ClusterNodeHealth
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