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 O11yPeriodHostListResponse {
    #[serde(rename = "clusterNames", skip_serializing_if = "Option::is_none")]
    pub cluster_names: Option<Vec<String>>,
    #[serde(rename = "endTimeBeforeRetention", skip_serializing_if = "Option::is_none")]
    pub end_time_before_retention: Option<bool>,
    #[serde(rename = "isSendingK8SAgentMetrics", skip_serializing_if = "Option::is_none")]
    pub is_sending_k8_s_agent_metrics: Option<bool>,
    #[serde(rename = "nodeNames", skip_serializing_if = "Option::is_none")]
    pub node_names: Option<Vec<String>>,
    #[serde(rename = "records", skip_serializing_if = "Option::is_none")]
    pub records: Option<Vec<models::O11yPeriodHostListRecord>>,
    #[serde(rename = "sentAnyHostMetricsData", skip_serializing_if = "Option::is_none")]
    pub sent_any_host_metrics_data: Option<bool>,
    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
    pub total: Option<i32>,
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
}

impl O11yPeriodHostListResponse {
    pub fn new() -> O11yPeriodHostListResponse {
        O11yPeriodHostListResponse {
            cluster_names: None,
            end_time_before_retention: None,
            is_sending_k8_s_agent_metrics: None,
            node_names: None,
            records: None,
            sent_any_host_metrics_data: None,
            total: None,
            r#type: None,
        }
    }
}