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

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

/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct TaskGroupScaleStatus {
    #[serde(rename = "Placed")]
    pub placed: i64,

    #[serde(rename = "Running")]
    pub running: i64,

    #[serde(rename = "Healthy")]
    pub healthy: i64,

    #[serde(rename = "Unhealthy")]
    pub unhealthy: i64,

    #[serde(
        rename = "Events",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub events: Vec<super::ScalingEvent>,

    #[serde(rename = "Desired")]
    pub desired: i64,
}
