/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// DeviceStats is the statistics for an individual device
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct DeviceStats {
    /// Summary exposes a single summary metric that should be the most
    /// informative to users.
    #[serde(rename = "Summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<super::StatValue>,

    /// Stats contains the verbose statistics for the device.
    #[serde(rename = "Stats", skip_serializing_if = "Option::is_none")]
    pub stats: Option<super::StatObject>,

    /// Timestamp is the time the statistics were collected.
    #[serde(rename = "Timestamp")]
    pub timestamp: chrono::DateTime<chrono::Utc>,
}
