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

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

/// AllocResourceUsage holds the aggregated task resource usage of the
/// allocation.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct AllocResourceUsage {
    #[serde(rename = "ResourceUsage", skip_serializing_if = "Option::is_none")]
    pub resource_usage: Option<super::ResourceUsage>,

    #[serde(rename = "Tasks")]
    pub tasks: std::collections::HashMap<String, super::TaskResourceUsage>,

    #[serde(rename = "Timestamp")]
    pub timestamp: i64,
}
