pub struct HostMetrics { /* private fields */ }
Expand description

Metrics about requests made to a specific host of a service.

Implementations

Returns the name of the service running on this host.

Returns the hostname of the node.

Returns the port of the node.

Returns the time of the last update to the node’s health metrics.

Returns a timer recording requests to this host which returned a 1xx HTTP response.

Returns a timer recording requests to this host which returned a 2xx HTTP response.

Returns a timer recording requests to this host which returned a 3xx HTTP response.

Returns a timer recording requests to this host which returned a 4xx HTTP response (other than 429).

Returns a timer recording requests to this host which returned a 5xx HTTP response (other than 503).

Returns a timer recording requests to this host which returned a QoS error (a 429 or 503).

Returns a timer recording requests to this host which returned an HTTP response not in the range 100-599.

Returns a meter recording requests to this host which returned an IO error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more