pub enum DetectorHealth {
Unchecked {
scoring_unread: Option<String>,
},
Available {
since: Timestamp,
scoring_unread: Option<String>,
},
Unavailable {
since: Timestamp,
scoring_unread: Option<String>,
},
Scoring {
since: Timestamp,
verdict: ScoringVerdict,
probe_failure: Option<String>,
},
}Expand description
The failure detector’s status, and since when it has been so.
Evidence that the detector is scoring the print comes first: while its own record of the print’s live prediction moved between two of this server’s reads within the last two observation intervals, it is scoring, whatever its health check answers. Without that evidence its health check decides.
On the wire it is the object the status and context reads answer —
status; since, null exactly when the status is unchecked; the failing
health check named beside a scoring status as probe_failure; and, beside
any other status, why the detector’s scoring is not being read as
scoring_unread — and an object pairing them any other way is refused
rather than read.
Variants§
Unchecked
No evidence of any kind: no detector health address is configured, or no check has been made yet, and nothing shows it scoring.
Available
No evidence that it is scoring the print, and it answered its health check, from this instant on.
Fields
No evidence that it is scoring the print, and it did not answer its health check, from this instant on.
Scoring
The detector is scoring the print, from this instant on.
Implementations§
Source§impl DetectorHealth
impl DetectorHealth
Sourcepub const fn status(&self) -> DetectorHealthStatus
pub const fn status(&self) -> DetectorHealthStatus
The status this is.
Trait Implementations§
Source§impl Clone for DetectorHealth
impl Clone for DetectorHealth
Source§impl Debug for DetectorHealth
impl Debug for DetectorHealth
Source§impl Default for DetectorHealth
impl Default for DetectorHealth
Source§impl<'de> Deserialize<'de> for DetectorHealth
impl<'de> Deserialize<'de> for DetectorHealth
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
impl Eq for DetectorHealth
Source§impl JsonSchema for DetectorHealth
The schema describes the five states as arms tagged by status, so a
generated client cannot pair a status with the wrong since either.
impl JsonSchema for DetectorHealth
The schema describes the five states as arms tagged by status, so a
generated client cannot pair a status with the wrong since either.
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 more