/*
 * 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 ScalingEvent {
    #[serde(rename = "Meta")]
    pub meta: std::collections::HashMap<String, serde_json::Value>,

    #[serde(rename = "EvalID", skip_serializing_if = "Option::is_none")]
    pub eval_id: Option<String>,

    #[serde(rename = "Time")]
    pub time: u64,

    #[serde(rename = "CreateIndex")]
    pub create_index: u64,

    #[serde(rename = "Count", skip_serializing_if = "Option::is_none")]
    pub count: Option<i64>,

    #[serde(rename = "PreviousCount")]
    pub previous_count: i64,

    #[serde(rename = "Error")]
    pub error: bool,

    #[serde(rename = "Message")]
    pub message: String,
}
