redfish_codegen/models/memory_metrics/v1_7_0/
alert_capabilities.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The conditions that would generate an alert to the CXL Fabric Manager or host.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct AlertCapabilities {
9    /// Indicates whether correctable ECC errors generate an alert to the CXL Fabric Manager or host.
10    #[serde(rename = "CorrectableECCError")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub correctable_ecc_error: Option<bool>,
13    /// Indicates whether spare block conditions generate an alert to the CXL Fabric Manager or host.
14    #[serde(rename = "SpareBlock")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub spare_block: Option<bool>,
17    /// Indicates whether temperature conditions generate an alert to the CXL Fabric Manager or host.
18    #[serde(rename = "Temperature")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub temperature: Option<bool>,
21    /// Indicates whether uncorrectable ECC errors generate an alert to the CXL Fabric Manager or host.
22    #[serde(rename = "UncorrectableECCError")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub uncorrectable_ecc_error: Option<bool>,
25}
26
27impl crate::Metadata<'static> for AlertCapabilities {
28    const JSON_SCHEMA: &'static str = "MemoryMetrics.v1_7_0.json";
29}