pub struct ServerHealth {
pub id: String,
pub name: String,
pub address: String,
pub serf_status: String,
pub version: String,
pub leader: bool,
pub last_contact: TimeDelta,
pub last_term: u64,
pub last_index: u64,
pub healthy: bool,
pub voter: bool,
pub stable_since: DateTime<Utc>,
}Expand description
ServerHealth is the health (from the leader’s point of view) of a server.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§id: StringID is the raft ID of the server.
name: StringName is the node name of the server.
address: StringAddress is the address of the server.
serf_status: StringThe status of the SerfHealth check for the server.
version: StringVersion is the Nomad version of the server.
leader: boolLeader is whether this server is currently the leader.
last_contact: TimeDeltaLastContact is the time since this node’s last contact with the leader.
last_term: u64LastTerm is the highest leader term this server has a record of in its Raft log.
last_index: u64LastIndex is the last log index this server has a record of in its Raft log.
healthy: boolHealthy is whether or not the server is healthy according to the current Autopilot config.
voter: boolVoter is whether this is a voting server.
stable_since: DateTime<Utc>StableSince is the last time this server’s Healthy value changed.
Implementations§
Source§impl ServerHealth
impl ServerHealth
pub fn builder() -> ServerHealthBuilder
Trait Implementations§
Source§impl Clone for ServerHealth
impl Clone for ServerHealth
Source§fn clone(&self) -> ServerHealth
fn clone(&self) -> ServerHealth
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more