redfish_codegen/models/processor_metrics/v1_6_1/
core_metrics.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The processor core metrics.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct CoreMetrics {
10    /// The C-state residency of this core in the processor.
11    #[serde(rename = "CStateResidency")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub c_state_residency: Option<Vec<models::processor_metrics::v1_6_1::CStateResidency>>,
14    /// The cache metrics of this core in the processor.
15    #[serde(rename = "CoreCache")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub core_cache: Option<Vec<models::processor_metrics::v1_6_1::CacheMetrics>>,
18    /// The processor core identifier.
19    #[serde(rename = "CoreId")]
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub core_id: Option<String>,
22    /// The number of the correctable core errors.
23    #[serde(rename = "CorrectableCoreErrorCount")]
24    #[serde(default, skip_serializing_if = "Option::is_none")]
25    pub correctable_core_error_count: Option<i64>,
26    /// The number of the correctable errors of all other components.
27    #[serde(rename = "CorrectableOtherErrorCount")]
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub correctable_other_error_count: Option<i64>,
30    /// The number of stalled cycles due to I/O operations.
31    #[serde(rename = "IOStallCount")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub io_stall_count: Option<f64>,
34    /// The number of instructions per clock cycle of this core.
35    #[serde(rename = "InstructionsPerCycle")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub instructions_per_cycle: Option<f64>,
38    /// The number of stalled cycles due to memory operations.
39    #[serde(rename = "MemoryStallCount")]
40    #[serde(default, skip_serializing_if = "Option::is_none")]
41    pub memory_stall_count: Option<f64>,
42    /// The number of the uncorrectable core errors.
43    #[serde(rename = "UncorrectableCoreErrorCount")]
44    #[serde(default, skip_serializing_if = "Option::is_none")]
45    pub uncorrectable_core_error_count: Option<i64>,
46    /// The number of the uncorrectable errors of all other components.
47    #[serde(rename = "UncorrectableOtherErrorCount")]
48    #[serde(default, skip_serializing_if = "Option::is_none")]
49    pub uncorrectable_other_error_count: Option<i64>,
50    /// The unhalted cycles count of this core.
51    #[serde(rename = "UnhaltedCycles")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub unhalted_cycles: Option<f64>,
54}
55
56impl crate::Metadata<'static> for CoreMetrics {
57    const JSON_SCHEMA: &'static str = "ProcessorMetrics.v1_6_1.json";
58}