Struct conjure_runtime::HostMetrics
source · [−]pub struct HostMetrics { /* private fields */ }Expand description
Metrics about requests made to a specific host of a service.
Implementations
sourceimpl 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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more