[−][src]Struct conjure_runtime::HostMetrics
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
impl !RefUnwindSafe for HostMetrics
impl Send for HostMetrics
impl Sync for HostMetrics
impl Unpin for HostMetrics
impl !UnwindSafe for HostMetrics
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,