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 O11yPeriodO11yDependency {
    /// CallCount is how many calls crossed the edge in the window.
    #[serde(rename = "callCount", skip_serializing_if = "Option::is_none")]
    pub call_count: Option<i32>,
    /// CallRate is calls per second.
    #[serde(rename = "callRate", skip_serializing_if = "Option::is_none")]
    pub call_rate: Option<f64>,
    /// Child is the called service.
    #[serde(rename = "child", skip_serializing_if = "Option::is_none")]
    pub child: Option<String>,
    /// ErrorRate is the percentage of calls that erred.
    #[serde(rename = "errorRate", skip_serializing_if = "Option::is_none")]
    pub error_rate: Option<f64>,
    /// P50 is the median call duration, in nanoseconds.
    #[serde(rename = "p50", skip_serializing_if = "Option::is_none")]
    pub p50: Option<f64>,
    /// P75 is the 75th-percentile call duration, in nanoseconds.
    #[serde(rename = "p75", skip_serializing_if = "Option::is_none")]
    pub p75: Option<f64>,
    /// P90 is the 90th-percentile call duration, in nanoseconds.
    #[serde(rename = "p90", skip_serializing_if = "Option::is_none")]
    pub p90: Option<f64>,
    /// P95 is the 95th-percentile call duration, in nanoseconds.
    #[serde(rename = "p95", skip_serializing_if = "Option::is_none")]
    pub p95: Option<f64>,
    /// P99 is the 99th-percentile call duration, in nanoseconds.
    #[serde(rename = "p99", skip_serializing_if = "Option::is_none")]
    pub p99: Option<f64>,
    /// Parent is the calling service.
    #[serde(rename = "parent", skip_serializing_if = "Option::is_none")]
    pub parent: Option<String>,
}

impl O11yPeriodO11yDependency {
    pub fn new() -> O11yPeriodO11yDependency {
        O11yPeriodO11yDependency {
            call_count: None,
            call_rate: None,
            child: None,
            error_rate: None,
            p50: None,
            p75: None,
            p90: None,
            p95: None,
            p99: None,
            parent: None,
        }
    }
}