redfish_codegen/models/manager_diagnostic_data/v1_2_0/
boot_time_statistics.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The boot time statistics of a manager.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct BootTimeStatistics {
9    /// The number of seconds the manager spent in the firmware stage.
10    #[serde(rename = "FirmwareTimeSeconds")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub firmware_time_seconds: Option<f64>,
13    /// The number of seconds the manager spent in the initrd boot stage.
14    #[serde(rename = "InitrdTimeSeconds")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub initrd_time_seconds: Option<f64>,
17    /// The number of seconds the manager spent in the kernel stage.
18    #[serde(rename = "KernelTimeSeconds")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub kernel_time_seconds: Option<f64>,
21    /// The number of seconds the manager spent in the loader stage.
22    #[serde(rename = "LoaderTimeSeconds")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub loader_time_seconds: Option<f64>,
25    /// The number of seconds the manager spent in the user space boot stage.
26    #[serde(rename = "UserSpaceTimeSeconds")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub user_space_time_seconds: Option<f64>,
29}
30
31impl crate::Metadata<'static> for BootTimeStatistics {
32    const JSON_SCHEMA: &'static str = "ManagerDiagnosticData.v1_2_0.json";
33}