pub struct ClusterNodeSummary {Show 15 fields
pub id: String,
pub address: String,
pub advertise_addr: String,
pub api_endpoint: String,
pub status: String,
pub role: String,
pub mode: String,
pub is_leader: bool,
pub overlay_ip: String,
pub cpu_total: f64,
pub cpu_used: f64,
pub memory_total: u64,
pub memory_used: u64,
pub registered_at: u64,
pub last_heartbeat: u64,
}Expand description
Summary of a cluster node for listing.
Fields§
§id: StringUUID or Raft-level ID
address: StringNetwork address (Raft RPC address)
advertise_addr: StringAdvertise address (public IP)
api_endpoint: StringAPI endpoint as advertise_addr:api_port (e.g., “127.0.0.1:19110”).
Distinct from address which holds the Raft RPC endpoint.
status: StringCurrent status (e.g. “ready”, “draining”, “dead”)
role: StringRole in the Raft cluster: “leader”, “voter”, or “learner”
mode: StringJoin mode: “full” or “replicate”
is_leader: boolWhether this node is the Raft leader
overlay_ip: StringOverlay network IP assigned to this node
cpu_total: f64Total CPU cores on this node
cpu_used: f64Current CPU usage (cores)
memory_total: u64Total memory in bytes
memory_used: u64Current memory usage in bytes
registered_at: u64When the node was registered (Unix timestamp ms)
last_heartbeat: u64Last heartbeat timestamp (Unix timestamp ms)
Trait Implementations§
Source§impl Clone for ClusterNodeSummary
impl Clone for ClusterNodeSummary
Source§fn clone(&self) -> ClusterNodeSummary
fn clone(&self) -> ClusterNodeSummary
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 ComposeSchema for ClusterNodeSummary
impl ComposeSchema for ClusterNodeSummary
Source§impl Debug for ClusterNodeSummary
impl Debug for ClusterNodeSummary
Source§impl<'de> Deserialize<'de> for ClusterNodeSummary
impl<'de> Deserialize<'de> for ClusterNodeSummary
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
Source§impl Serialize for ClusterNodeSummary
impl Serialize for ClusterNodeSummary
Auto Trait Implementations§
impl Freeze for ClusterNodeSummary
impl RefUnwindSafe for ClusterNodeSummary
impl Send for ClusterNodeSummary
impl Sync for ClusterNodeSummary
impl Unpin for ClusterNodeSummary
impl UnsafeUnpin for ClusterNodeSummary
impl UnwindSafe for ClusterNodeSummary
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