pub struct ClusterMonitorEventSelectedInfo {Show 13 fields
pub all_healthy: bool,
pub api_resources_info: Option<String>,
pub api_self_info: Option<String>,
pub api_status: MonitorStatus,
pub compiler_resources_info: Option<String>,
pub compiler_self_info: Option<String>,
pub compiler_status: MonitorStatus,
pub id: ClusterMonitorEventId,
pub recorded_at: DateTime<Utc>,
pub runner_resources_info: Option<String>,
pub runner_self_info: Option<String>,
pub runner_status: MonitorStatus,
pub stale: Option<bool>,
}Expand description
Cluster monitor event information which has a selected subset of optional fields.
If an optional field is not selected (i.e., is None), it will not be serialized.
JSON schema
{
"description": "Cluster monitor event information which has a selected subset of optional fields.\nIf an optional field is not selected (i.e., is `None`), it will not be serialized.",
"type": "object",
"required": [
"all_healthy",
"api_status",
"compiler_status",
"id",
"recorded_at",
"runner_status"
],
"properties": {
"all_healthy": {
"description": "Whether every service was healthy when this event was recorded. Says nothing about\nthe cluster now: for that, read `stale` alongside it or call `GET /v0/cluster_healthz`.",
"type": "boolean"
},
"api_resources_info": {
"type": [
"string",
"null"
]
},
"api_self_info": {
"type": [
"string",
"null"
]
},
"api_status": {
"$ref": "#/components/schemas/MonitorStatus"
},
"compiler_resources_info": {
"type": [
"string",
"null"
]
},
"compiler_self_info": {
"type": [
"string",
"null"
]
},
"compiler_status": {
"$ref": "#/components/schemas/MonitorStatus"
},
"id": {
"$ref": "#/components/schemas/ClusterMonitorEventId"
},
"recorded_at": {
"type": "string",
"format": "date-time"
},
"runner_resources_info": {
"type": [
"string",
"null"
]
},
"runner_self_info": {
"type": [
"string",
"null"
]
},
"runner_status": {
"$ref": "#/components/schemas/MonitorStatus"
},
"stale": {
"description": "Whether the monitor stopped writing, making the statuses below the last recorded\nones. Reported for the latest event only: older events are old by design.",
"type": [
"boolean",
"null"
]
}
}
}Fields§
§all_healthy: boolWhether every service was healthy when this event was recorded. Says nothing about
the cluster now: for that, read stale alongside it or call GET /v0/cluster_healthz.
api_resources_info: Option<String>§api_self_info: Option<String>§api_status: MonitorStatus§compiler_resources_info: Option<String>§compiler_self_info: Option<String>§compiler_status: MonitorStatus§id: ClusterMonitorEventId§recorded_at: DateTime<Utc>§runner_resources_info: Option<String>§runner_self_info: Option<String>§runner_status: MonitorStatus§stale: Option<bool>Whether the monitor stopped writing, making the statuses below the last recorded ones. Reported for the latest event only: older events are old by design.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClusterMonitorEventSelectedInfo
impl<'de> Deserialize<'de> for ClusterMonitorEventSelectedInfo
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<&ClusterMonitorEventSelectedInfo> for ClusterMonitorEventSelectedInfo
impl From<&ClusterMonitorEventSelectedInfo> for ClusterMonitorEventSelectedInfo
Source§fn from(value: &ClusterMonitorEventSelectedInfo) -> Self
fn from(value: &ClusterMonitorEventSelectedInfo) -> Self
Converts to this type from the input type.
Source§impl From<ClusterMonitorEventSelectedInfo> for ClusterMonitorEventSelectedInfo
impl From<ClusterMonitorEventSelectedInfo> for ClusterMonitorEventSelectedInfo
Source§fn from(value: ClusterMonitorEventSelectedInfo) -> Self
fn from(value: ClusterMonitorEventSelectedInfo) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ClusterMonitorEventSelectedInfo> for ClusterMonitorEventSelectedInfo
impl TryFrom<ClusterMonitorEventSelectedInfo> for ClusterMonitorEventSelectedInfo
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ClusterMonitorEventSelectedInfo,
) -> Result<Self, ConversionError>
fn try_from( value: ClusterMonitorEventSelectedInfo, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ClusterMonitorEventSelectedInfo
impl Freeze for ClusterMonitorEventSelectedInfo
impl RefUnwindSafe for ClusterMonitorEventSelectedInfo
impl Send for ClusterMonitorEventSelectedInfo
impl Sync for ClusterMonitorEventSelectedInfo
impl Unpin for ClusterMonitorEventSelectedInfo
impl UnsafeUnpin for ClusterMonitorEventSelectedInfo
impl UnwindSafe for ClusterMonitorEventSelectedInfo
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