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 O11yPeriodStatusIncident {
    /// AffectedComponents is what this incident covers. It is COUNTED rather than classified: some services down is a partial outage and every probed service down is a full one, because deciding that one service is critical and another is not would need a judgement nobody has measured.
    #[serde(rename = "affected_components", skip_serializing_if = "Option::is_none")]
    pub affected_components: Option<Vec<models::O11yPeriodStatusComponent>>,
    /// CurrentWorstImpact is the incident's impact on the PLATFORM, which is not the same question as the component's own condition above.
    #[serde(rename = "current_worst_impact", skip_serializing_if = "Option::is_none")]
    pub current_worst_impact: Option<String>,
    /// ID is derived from the service, so the same outage keeps one id across reads rather than being reported as a new incident every 15 seconds.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// LastUpdateAt is when the failing measurement this incident reports was read, RFC3339 UTC.
    #[serde(rename = "last_update_at", skip_serializing_if = "Option::is_none")]
    pub last_update_at: Option<String>,
    /// LastUpdateMessage says what was observed, not what is being done about it — there is no operator writing updates here, only the probe that failed.
    #[serde(rename = "last_update_message", skip_serializing_if = "Option::is_none")]
    pub last_update_message: Option<String>,
    /// Name is the one-line headline, built from the service that stopped answering.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Status is always \"investigating\" — the member of the client's closed set that means detected, cause not yet established, which is exactly what an automated prober knows. Nothing here ever claims \"identified\": that would assert a diagnosis no measurement made.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// URL points at the HUMAN status page, not back at this JSON. Every link in this document goes to the same place.
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}

impl O11yPeriodStatusIncident {
    pub fn new() -> O11yPeriodStatusIncident {
        O11yPeriodStatusIncident {
            affected_components: None,
            current_worst_impact: None,
            id: None,
            last_update_at: None,
            last_update_message: None,
            name: None,
            status: None,
            url: None,
        }
    }
}