[][src]Struct conjure_runtime::HostMetrics

pub struct HostMetrics { /* fields omitted */ }

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

Methods

impl HostMetrics[src]

pub fn service_name(&self) -> &str[src]

Returns the name of the service running on this host.

pub fn hostname(&self) -> &str[src]

Returns the hostname of the node.

pub fn port(&self) -> u16[src]

Returns the port of the node.

pub fn last_update(&self) -> Instant[src]

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

pub fn response_1xx(&self) -> &Timer[src]

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

pub fn response_2xx(&self) -> &Timer[src]

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

pub fn response_3xx(&self) -> &Timer[src]

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

pub fn response_4xx(&self) -> &Timer[src]

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

pub fn response_5xx(&self) -> &Timer[src]

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

pub fn response_qos(&self) -> &Timer[src]

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

pub fn response_other(&self) -> &Timer[src]

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

pub fn io_error(&self) -> &Meter[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,