redfish_codegen/models/storage_controller_metrics/v1_0_0/
eg_critical_warning_summary.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The Endurance Group critical warnings summary.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct EGCriticalWarningSummary {
9    /// An indication of whether namespaces in one or more Endurance Groups are in read-only mode not as a result of a change in the write protection state of a namespace.
10    #[serde(rename = "NamespacesInReadOnlyMode")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub namespaces_in_read_only_mode: Option<bool>,
13    /// An indication of whether the reliability of one or more Endurance Groups is degraded due to significant media related errors or any internal error that degrades the NVM subsystem reliability.
14    #[serde(rename = "ReliabilityDegraded")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub reliability_degraded: Option<bool>,
17    /// An indication of whether the available spare capacity of one or more Endurance Groups is below the threshold.
18    #[serde(rename = "SpareCapacityUnderThreshold")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub spare_capacity_under_threshold: Option<bool>,
21}
22
23impl crate::Metadata<'static> for EGCriticalWarningSummary {
24    const JSON_SCHEMA: &'static str = "StorageControllerMetrics.v1_0_0.json";
25}