Struct merino_web::endpoints::dockerflow::HeartbeatResponse
source · [−]struct HeartbeatResponse {
checks: HashMap<String, CheckStatus>,
}
Expand description
A response to the /__heartbeat__
endpoint.
Fields
checks: HashMap<String, CheckStatus>
Any checks that are relevant to the state of the system.
Implementations
sourceimpl HeartbeatResponse
impl HeartbeatResponse
sourcefn status(&self) -> CheckStatus
fn status(&self) -> CheckStatus
The overall status of all checks.
Takes the worst state of any check contained, or CheckStatus::Unknown
if there are no contained checks.
sourcefn add_check<S: Into<String>>(&mut self, name: S, check: CheckStatus)
fn add_check<S: Into<String>>(&mut self, name: S, check: CheckStatus)
Add the results of a check.
Trait Implementations
sourceimpl Debug for HeartbeatResponse
impl Debug for HeartbeatResponse
sourceimpl Default for HeartbeatResponse
impl Default for HeartbeatResponse
sourcefn default() -> HeartbeatResponse
fn default() -> HeartbeatResponse
Returns the “default value” for a type. Read more
sourceimpl Serialize for HeartbeatResponse
impl Serialize for HeartbeatResponse
Auto Trait Implementations
impl RefUnwindSafe for HeartbeatResponse
impl Send for HeartbeatResponse
impl Sync for HeartbeatResponse
impl Unpin for HeartbeatResponse
impl UnwindSafe for HeartbeatResponse
Blanket Implementations
sourceimpl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
sourceimpl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
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>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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
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