pub struct HostMetrics { /* private fields */ }
Expand description
Metrics about requests made to a specific host of a service.
Implementations§
Source§impl HostMetrics
impl HostMetrics
Sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &str
Returns the name of the service running on this host.
Sourcepub fn last_update(&self) -> Instant
pub fn last_update(&self) -> Instant
Returns the time of the last update to the node’s health metrics.
Sourcepub fn response_1xx(&self) -> &Timer
pub fn response_1xx(&self) -> &Timer
Returns a timer recording requests to this host which returned a 1xx HTTP response.
Sourcepub fn response_2xx(&self) -> &Timer
pub fn response_2xx(&self) -> &Timer
Returns a timer recording requests to this host which returned a 2xx HTTP response.
Sourcepub fn response_3xx(&self) -> &Timer
pub fn response_3xx(&self) -> &Timer
Returns a timer recording requests to this host which returned a 3xx HTTP response.
Sourcepub fn response_4xx(&self) -> &Timer
pub fn response_4xx(&self) -> &Timer
Returns a timer recording requests to this host which returned a 4xx HTTP response (other than 429).
Sourcepub fn response_5xx(&self) -> &Timer
pub fn response_5xx(&self) -> &Timer
Returns a timer recording requests to this host which returned a 5xx HTTP response (other than 503).
Sourcepub fn response_qos(&self) -> &Timer
pub fn response_qos(&self) -> &Timer
Returns a timer recording requests to this host which returned a QoS error (a 429 or 503).
Sourcepub fn response_other(&self) -> &Timer
pub fn response_other(&self) -> &Timer
Returns a timer recording requests to this host which returned an HTTP response not in the range 100-599.