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 O11yPeriodO11yAggregation {
    /// Alias is the aggregation's alias.
    #[serde(rename = "alias", skip_serializing_if = "Option::is_none")]
    pub alias: Option<String>,
    /// AnomalyScores are anomaly overlays.
    #[serde(rename = "anomalyScores", skip_serializing_if = "Option::is_none")]
    pub anomaly_scores: Option<Vec<models::O11yPeriodO11yMetricSeries>>,
    /// Index is the aggregation's position in the query.
    #[serde(rename = "index", skip_serializing_if = "Option::is_none")]
    pub index: Option<i32>,
    /// LowerBoundSeries are forecast lower bounds.
    #[serde(rename = "lowerBoundSeries", skip_serializing_if = "Option::is_none")]
    pub lower_bound_series: Option<Vec<models::O11yPeriodO11yMetricSeries>>,
    /// Meta describes the aggregation.
    #[serde(rename = "meta", skip_serializing_if = "Option::is_none")]
    pub meta: Option<Box<models::O11yPeriodO11yAggregationMeta>>,
    /// PredictedSeries are forecast overlays, when the query asked for them.
    #[serde(rename = "predictedSeries", skip_serializing_if = "Option::is_none")]
    pub predicted_series: Option<Vec<models::O11yPeriodO11yMetricSeries>>,
    /// Series are the aggregated time series.
    #[serde(rename = "series", skip_serializing_if = "Option::is_none")]
    pub series: Option<Vec<models::O11yPeriodO11yMetricSeries>>,
    /// UpperBoundSeries are forecast upper bounds.
    #[serde(rename = "upperBoundSeries", skip_serializing_if = "Option::is_none")]
    pub upper_bound_series: Option<Vec<models::O11yPeriodO11yMetricSeries>>,
}

impl O11yPeriodO11yAggregation {
    pub fn new() -> O11yPeriodO11yAggregation {
        O11yPeriodO11yAggregation {
            alias: None,
            anomaly_scores: None,
            index: None,
            lower_bound_series: None,
            meta: None,
            predicted_series: None,
            series: None,
            upper_bound_series: None,
        }
    }
}