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

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

/// StatObject is a collection of statistics either exposed at the top
/// level or via nested StatObjects.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct StatObject {
    /// Nested is a mapping of object name to a nested stats object.
    #[serde(rename = "Nested")]
    pub nested: std::collections::HashMap<String, super::StatObject>,

    /// Attributes is a mapping of statistic name to its value.
    #[serde(rename = "Attributes")]
    pub attributes: std::collections::HashMap<String, super::StatValue>,
}
