pub struct ServerHealth {
pub healthy: bool,
pub id: String,
pub name: String,
pub address: String,
pub serf_status: String,
pub version: String,
pub stable_since: DateTime<Utc>,
pub leader: bool,
pub last_contact: TimeDelta,
pub last_term: u64,
pub last_index: u64,
pub voter: bool,
}
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.
Fields§
§healthy: bool
Healthy is whether or not the server is healthy according to the current Autopilot config.
id: String
ID is the raft ID of the server.
name: String
Name is the node name of the server.
address: String
Address is the address of the server.
serf_status: String
The status of the SerfHealth check for the server.
version: String
Version is the Nomad version of the server.
stable_since: DateTime<Utc>
StableSince is the last time this server’s Healthy value changed.
leader: bool
Leader is whether this server is currently the leader.
last_contact: TimeDelta
LastContact is the time since this node’s last contact with the leader.
last_term: u64
LastTerm is the highest leader term this server has a record of in its Raft log.
last_index: u64
LastIndex is the last log index this server has a record of in its Raft log.
voter: bool
Voter is whether this is a voting server.
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