pub struct HealthStatus {
pub all_healthy: bool,
pub api: ServiceStatus,
pub compiler: ServiceStatus,
pub runner: ServiceStatus,
pub stale: bool,
pub stale_after_seconds: i64,
}Expand description
Health of the cluster as a whole and of each of its services.
JSON schema
{
"description": "Health of the cluster as a whole and of each of its services.",
"type": "object",
"required": [
"all_healthy",
"api",
"compiler",
"runner",
"stale",
"stale_after_seconds"
],
"properties": {
"all_healthy": {
"description": "Whether every service is healthy and the monitoring data behind this report is fresh.",
"type": "boolean"
},
"api": {
"$ref": "#/components/schemas/ServiceStatus"
},
"compiler": {
"$ref": "#/components/schemas/ServiceStatus"
},
"runner": {
"$ref": "#/components/schemas/ServiceStatus"
},
"stale": {
"description": "Whether the cluster monitor stopped writing events, which makes the statuses below\nthe last recorded ones rather than current ones.",
"type": "boolean"
},
"stale_after_seconds": {
"description": "Age at which monitoring data counts as stale.",
"type": "integer",
"format": "int64",
"minimum": 0.0
}
}
}Fields§
§all_healthy: boolWhether every service is healthy and the monitoring data behind this report is fresh.
api: ServiceStatus§compiler: ServiceStatus§runner: ServiceStatus§stale: boolWhether the cluster monitor stopped writing events, which makes the statuses below the last recorded ones rather than current ones.
stale_after_seconds: i64Age at which monitoring data counts as stale.
Implementations§
Source§impl HealthStatus
impl HealthStatus
pub fn builder() -> HealthStatus
Trait Implementations§
Source§impl Clone for HealthStatus
impl Clone for HealthStatus
Source§impl Debug for HealthStatus
impl Debug for HealthStatus
Source§impl<'de> Deserialize<'de> for HealthStatus
impl<'de> Deserialize<'de> for HealthStatus
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&HealthStatus> for HealthStatus
impl From<&HealthStatus> for HealthStatus
Source§fn from(value: &HealthStatus) -> Self
fn from(value: &HealthStatus) -> Self
Converts to this type from the input type.
Source§impl From<HealthStatus> for HealthStatus
impl From<HealthStatus> for HealthStatus
Source§fn from(value: HealthStatus) -> Self
fn from(value: HealthStatus) -> Self
Converts to this type from the input type.
Source§impl Serialize for HealthStatus
impl Serialize for HealthStatus
Source§impl TryFrom<HealthStatus> for HealthStatus
impl TryFrom<HealthStatus> for HealthStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: HealthStatus) -> Result<Self, ConversionError>
fn try_from(value: HealthStatus) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for HealthStatus
impl Freeze for HealthStatus
impl Move for HealthStatus
impl RefUnwindSafe for HealthStatus
impl Send for HealthStatus
impl Sync for HealthStatus
impl Unpin for HealthStatus
impl UnsafeUnpin for HealthStatus
impl UnwindSafe for HealthStatus
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
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<T> ErasedDestructor for Twhere
T: 'static,
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 more