pub struct HealthSnapshot {
pub ticks: u64,
pub uptime_secs: i64,
pub last_tick_secs_ago: Option<i64>,
}Expand description
What GET /health reports beyond liveness: whether the tick that logs
this deployment’s own pulse is still advancing, and how recently.
last_tick_secs_ago absent means no tick has landed since startup yet,
which is expected for the first DEFAULT_HEALTH_INTERVAL of a fresh
process and worth alerting on past it — see plan/deploy.md’s “alert on
the things that fail quietly”.
Fields§
§ticks: u64How many ticks have fired.
uptime_secs: i64Seconds since this process started.
last_tick_secs_ago: Option<i64>Seconds since the last tick, or absent if none has fired yet.
Trait Implementations§
Source§impl Clone for HealthSnapshot
impl Clone for HealthSnapshot
Source§fn clone(&self) -> HealthSnapshot
fn clone(&self) -> HealthSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HealthSnapshot
impl Debug for HealthSnapshot
Source§impl Serialize for HealthSnapshot
impl Serialize for HealthSnapshot
impl Copy for HealthSnapshot
Auto Trait Implementations§
impl Freeze for HealthSnapshot
impl RefUnwindSafe for HealthSnapshot
impl Send for HealthSnapshot
impl Sync for HealthSnapshot
impl Unpin for HealthSnapshot
impl UnsafeUnpin for HealthSnapshot
impl UnwindSafe for HealthSnapshot
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more