pub struct Health {
pub status: HealthStatus,
pub repository: HealthStatus,
pub tallies: BTreeMap<String, usize>,
pub checks: Vec<HealthCheck>,
pub observed: BTreeMap<String, AnswerObservation>,
}Expand description
The health of what this process serves.
Fields§
§status: HealthStatusThe worst check’s status.
repository: HealthStatusThe worst status among the dimensions that describe the repository at this commit:
every check but the ones in PROCESS_DIMENSIONS. A process that is no server —
the command line, or the reader of a published snapshot (ADR 0141) — cannot decide
who is attached or what the mesh runtime did, and says unknown for them; this is
the verdict that is the same whichever process read the repository, and it is what a
publication shows first.
tallies: BTreeMap<String, usize>How many checks stand where, by status word.
checks: Vec<HealthCheck>Every dimension, in a stable order.
observed: BTreeMap<String, AnswerObservation>When the state a check decided on was read, by check id: the freshness contract
(crate::index::AnswerObservation). A check absent here decided live, during this call.
layer and git are here because they judge the picture the index took, which is
as old as the index.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Health
impl<'de> Deserialize<'de> for Health
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Health
Source§impl JsonSchema for Health
impl JsonSchema for Health
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Health
Auto Trait Implementations§
impl Freeze for Health
impl RefUnwindSafe for Health
impl Send for Health
impl Sync for Health
impl Unpin for Health
impl UnsafeUnpin for Health
impl UnwindSafe for Health
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.