redfish_codegen/models/memory_metrics/v1_7_0/
life_time.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The memory metrics for the lifetime of the memory.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct LifeTime {
9    /// The number of blocks read for the lifetime of the memory.
10    #[serde(rename = "BlocksRead")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub blocks_read: Option<i64>,
13    /// The number of blocks written for the lifetime of the memory.
14    #[serde(rename = "BlocksWritten")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub blocks_written: Option<i64>,
17    /// The number of the correctable errors for the lifetime of the memory.
18    #[serde(rename = "CorrectableECCErrorCount")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub correctable_ecc_error_count: Option<i64>,
21    /// The number of indeterminate correctable errors for the lifetime of the memory.
22    #[serde(rename = "IndeterminateCorrectableErrorCount")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub indeterminate_correctable_error_count: Option<i64>,
25    /// The number of indeterminate uncorrectable errors for the lifetime of the memory.
26    #[serde(rename = "IndeterminateUncorrectableErrorCount")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub indeterminate_uncorrectable_error_count: Option<i64>,
29    /// The number of the uncorrectable errors for the lifetime of the memory.
30    #[serde(rename = "UncorrectableECCErrorCount")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub uncorrectable_ecc_error_count: Option<i64>,
33}
34
35impl crate::Metadata<'static> for LifeTime {
36    const JSON_SCHEMA: &'static str = "MemoryMetrics.v1_7_0.json";
37}