pub struct SelfStats {
pub id: String,
pub name: String,
pub leader_info: LeaderInfo,
pub received_append_request_count: u64,
pub received_bandwidth_rate: Option<f64>,
pub received_package_rate: Option<f64>,
pub sent_append_request_count: u64,
pub sent_bandwidth_rate: Option<f64>,
pub sent_package_rate: Option<f64>,
pub start_time: String,
pub state: String,
}
Expand description
Statistics about an etcd cluster member.
Fields§
§id: String
The unique Raft ID of the member.
name: String
The member’s name.
leader_info: LeaderInfo
A small amount of information about the leader of the cluster.
received_append_request_count: u64
The number of received requests.
received_bandwidth_rate: Option<f64>
The bandwidth rate of received requests.
received_package_rate: Option<f64>
The package rate of received requests.
sent_append_request_count: u64
The number of sent requests.
sent_bandwidth_rate: Option<f64>
The bandwidth rate of sent requests.
sent_package_rate: Option<f64>
The package rate of sent requests.
start_time: String
The time the member started.
state: String
The Raft state of the member.
Trait Implementations§
source§impl<'de> Deserialize<'de> for SelfStats
impl<'de> Deserialize<'de> for SelfStats
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