Struct conjure_runtime::HostMetrics
source · 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.