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 O11yPeriodCompositeQuery {
    #[serde(rename = "builderQueries", skip_serializing_if = "Option::is_none")]
    pub builder_queries: Option<std::collections::HashMap<String, models::O11yPeriodBuilderQuery>>,
    #[serde(rename = "chQueries", skip_serializing_if = "Option::is_none")]
    pub ch_queries: Option<std::collections::HashMap<String, models::O11yPeriodDatastoreQuery>>,
    /// FillGaps is used to fill the gaps in the time series data
    #[serde(rename = "fillGaps", skip_serializing_if = "Option::is_none")]
    pub fill_gaps: Option<bool>,
    #[serde(rename = "panelType", skip_serializing_if = "Option::is_none")]
    pub panel_type: Option<String>,
    #[serde(rename = "promQueries", skip_serializing_if = "Option::is_none")]
    pub prom_queries: Option<std::collections::HashMap<String, models::O11yPeriodPromQuery>>,
    #[serde(rename = "queries", skip_serializing_if = "Option::is_none")]
    pub queries: Option<Vec<models::O11yPeriodQueryEnvelope>>,
    #[serde(rename = "queryType", skip_serializing_if = "Option::is_none")]
    pub query_type: Option<String>,
    /// Unit for the time series data shown in the graph This is used in alerts to format the value and threshold
    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
    pub unit: Option<String>,
}

impl O11yPeriodCompositeQuery {
    pub fn new() -> O11yPeriodCompositeQuery {
        O11yPeriodCompositeQuery {
            builder_queries: None,
            ch_queries: None,
            fill_gaps: None,
            panel_type: None,
            prom_queries: None,
            queries: None,
            query_type: None,
            unit: None,
        }
    }
}