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

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

/// DeviceGroupStats contains statistics for each device of a particular
/// device group, identified by the vendor, type and name of the 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 DeviceGroupStats {
    /// InstanceStats is a mapping of each device ID to its statistics.
    #[serde(rename = "InstanceStats")]
    pub instance_stats: std::collections::HashMap<String, super::DeviceStats>,

    #[serde(rename = "Vendor")]
    pub vendor: String,

    #[serde(rename = "Type")]
    pub r#type: String,

    #[serde(rename = "Name")]
    pub name: String,
}
