pub struct CaseCensus {
pub open: u64,
pub oldest_age_secs: Option<u64>,
pub due: u64,
pub breached: u64,
}Expand description
What the case store is currently holding.
Fields§
§open: u64Cases in any status other than Closed.
oldest_age_secs: Option<u64>The longest-open case’s age in seconds, or None if none are open.
due: u64Obligations at or past their instant, still Pending or Warned.
breached: u64Breaches nobody has accounted for.
A gauge rather than a counter, and the distinction is the point: this number falls when somebody acknowledges one, so an alert on it says there is unattended work rather than this deployment has ever missed something. A monotonic instrument cannot express the first, which is the only one anybody can act on.
Trait Implementations§
Source§impl Clone for CaseCensus
impl Clone for CaseCensus
impl Copy for CaseCensus
Source§impl Debug for CaseCensus
impl Debug for CaseCensus
Source§impl Default for CaseCensus
impl Default for CaseCensus
impl Eq for CaseCensus
Source§impl PartialEq for CaseCensus
impl PartialEq for CaseCensus
impl StructuralPartialEq for CaseCensus
Auto Trait Implementations§
impl Freeze for CaseCensus
impl RefUnwindSafe for CaseCensus
impl Send for CaseCensus
impl Sync for CaseCensus
impl Unpin for CaseCensus
impl UnsafeUnpin for CaseCensus
impl UnwindSafe for CaseCensus
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 moreCreates a shared type from an unshared type.