hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct O11yPeriodHostRecord {
    #[serde(rename = "activeHostCount", skip_serializing_if = "Option::is_none")]
    pub active_host_count: Option<i32>,
    #[serde(rename = "cpu", skip_serializing_if = "Option::is_none")]
    pub cpu: Option<f64>,
    #[serde(rename = "diskUsage", skip_serializing_if = "Option::is_none")]
    pub disk_usage: Option<f64>,
    #[serde(rename = "hostName", skip_serializing_if = "Option::is_none")]
    pub host_name: Option<String>,
    #[serde(rename = "inactiveHostCount", skip_serializing_if = "Option::is_none")]
    pub inactive_host_count: Option<i32>,
    #[serde(rename = "load15", skip_serializing_if = "Option::is_none")]
    pub load15: Option<f64>,
    #[serde(rename = "memory", skip_serializing_if = "Option::is_none")]
    pub memory: Option<f64>,
    #[serde(rename = "meta", skip_serializing_if = "Option::is_none")]
    pub meta: Option<std::collections::HashMap<String, String>>,
    #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub status: Option<Option<serde_json::Value>>,
    #[serde(rename = "wait", skip_serializing_if = "Option::is_none")]
    pub wait: Option<f64>,
}

impl O11yPeriodHostRecord {
    pub fn new() -> O11yPeriodHostRecord {
        O11yPeriodHostRecord {
            active_host_count: None,
            cpu: None,
            disk_usage: None,
            host_name: None,
            inactive_host_count: None,
            load15: None,
            memory: None,
            meta: None,
            status: None,
            wait: None,
        }
    }
}