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 O11yPeriodO11yReductionStats {
    /// EstimatedMonthlySavingsUsd is the estimated monthly savings, in USD.
    #[serde(rename = "estimatedMonthlySavingsUsd", skip_serializing_if = "Option::is_none")]
    pub estimated_monthly_savings_usd: Option<f64>,
    /// IngestedSamples is how many samples arrived across all rules.
    #[serde(rename = "ingestedSamples", skip_serializing_if = "Option::is_none")]
    pub ingested_samples: Option<i32>,
    /// IngestedSeries is how many series arrived across all rules.
    #[serde(rename = "ingestedSeries", skip_serializing_if = "Option::is_none")]
    pub ingested_series: Option<i32>,
    /// RetainedSamples is how many of them were kept.
    #[serde(rename = "retainedSamples", skip_serializing_if = "Option::is_none")]
    pub retained_samples: Option<i32>,
    /// RetainedSeries is how many of them were kept.
    #[serde(rename = "retainedSeries", skip_serializing_if = "Option::is_none")]
    pub retained_series: Option<i32>,
}

impl O11yPeriodO11yReductionStats {
    pub fn new() -> O11yPeriodO11yReductionStats {
        O11yPeriodO11yReductionStats {
            estimated_monthly_savings_usd: None,
            ingested_samples: None,
            ingested_series: None,
            retained_samples: None,
            retained_series: None,
        }
    }
}