redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The statistics of a process running on a manager.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ProcessStatistics {
    /// The command line of this process.
    #[serde(rename = "CommandLine")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub command_line: Option<String>,
    /// The number of seconds this process executed in kernel space.
    #[serde(rename = "KernelTimeSeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kernel_time_seconds: Option<f64>,
    /// The resident set size of this process in bytes.
    #[serde(rename = "ResidentSetSizeBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resident_set_size_bytes: Option<i64>,
    /// The number of times this process has restarted unexpectedly.
    #[serde(rename = "RestartAfterFailureCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub restart_after_failure_count: Option<i64>,
    /// The number of times this process has restarted.
    #[serde(rename = "RestartCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub restart_count: Option<i64>,
    /// The wall-clock time this process has been running in seconds.
    #[serde(rename = "UptimeSeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uptime_seconds: Option<f64>,
    /// The number of seconds this process executed in user space.
    #[serde(rename = "UserTimeSeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user_time_seconds: Option<f64>,
}

impl crate::Metadata<'static> for ProcessStatistics {
    const JSON_SCHEMA: &'static str = "ManagerDiagnosticData.v1_2_0.json";
}