redfish_codegen/models/processor_metrics/v1_6_1/
cache_metrics.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The processor core metrics.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct CacheMetrics {
9    /// The number of cache line misses in millions.
10    #[serde(rename = "CacheMiss")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub cache_miss: Option<f64>,
13    /// The number of cache misses per instruction.
14    #[serde(rename = "CacheMissesPerInstruction")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub cache_misses_per_instruction: Option<f64>,
17    /// The cache line hit ratio.
18    #[serde(rename = "HitRatio")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub hit_ratio: Option<f64>,
21    /// The cache level.
22    #[serde(rename = "Level")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub level: Option<String>,
25    /// The total cache level occupancy in bytes.
26    #[serde(rename = "OccupancyBytes")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub occupancy_bytes: Option<i64>,
29    /// The total cache occupancy percentage.
30    #[serde(rename = "OccupancyPercent")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub occupancy_percent: Option<f64>,
33}
34
35impl crate::Metadata<'static> for CacheMetrics {
36    const JSON_SCHEMA: &'static str = "ProcessorMetrics.v1_6_1.json";
37}