pub struct OperatorHealthReply {
pub healthy: bool,
pub leader: String,
pub voters: Vec<String>,
pub read_replicas: Option<Vec<String>>,
pub redundancy_zones: Option<HashMap<String, AutopilotZone>>,
pub upgrade: Option<AutopilotUpgrade>,
pub optimistic_failure_tolerance: Option<i64>,
pub failure_tolerance: i64,
pub servers: Vec<ServerHealth>,
}
Expand description
OperatorHealthReply is a representation of the overall health of the cluster
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§healthy: bool
Healthy is true if all the servers in the cluster are healthy.
leader: String
The ID of the current leader.
voters: Vec<String>
List of servers that are voters in the Raft configuration.
read_replicas: Option<Vec<String>>
ReadReplicas holds the list of servers that are read replicas in the Raft configuration. (Enterprise only)
redundancy_zones: Option<HashMap<String, AutopilotZone>>
RedundancyZones holds the list of servers in each redundancy zone. (Enterprise only)
upgrade: Option<AutopilotUpgrade>
Upgrade holds the current upgrade status.
optimistic_failure_tolerance: Option<i64>
The number of servers that could be lost without an outage occurring if all the voters don’t fail at once. (Enterprise only)
failure_tolerance: i64
FailureTolerance is the number of healthy servers that could be lost without an outage occurring.
servers: Vec<ServerHealth>
Servers holds the health of each server.
Trait Implementations§
Source§impl Clone for OperatorHealthReply
impl Clone for OperatorHealthReply
Source§fn clone(&self) -> OperatorHealthReply
fn clone(&self) -> OperatorHealthReply
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more