1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* 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 O11yPeriodStatusSummary {
/// CheckedAt is when the underlying availability read was taken, RFC3339 UTC. Not part of the status-page schema the panel parses (which ignores unknown fields); it is here because a status document with no timestamp cannot be told apart from a stale one.
#[serde(rename = "checked_at", skip_serializing_if = "Option::is_none")]
pub checked_at: Option<String>,
/// InProgressMaintenances is always empty: this platform has no maintenance scheduling plane, so \"nothing is running\" is a true statement rather than a placeholder.
#[serde(rename = "in_progress_maintenances", skip_serializing_if = "Option::is_none")]
pub in_progress_maintenances: Option<Vec<models::O11yPeriodStatusMaintenance>>,
/// OngoingIncidents is one entry per service that failed its health probe, sorted by name. Empty means every probed service answered — which is a measurement, not an absence of reports.
#[serde(rename = "ongoing_incidents", skip_serializing_if = "Option::is_none")]
pub ongoing_incidents: Option<Vec<models::O11yPeriodStatusIncident>>,
/// PageTitle is the brand's own status-page title, resolved per request from the Host — a lux caller must never be shown Hanzo's.
#[serde(rename = "page_title", skip_serializing_if = "Option::is_none")]
pub page_title: Option<String>,
/// PageURL is the HUMAN status page — an HTML page for people, distinct from this JSON endpoint. Every link in this document points there.
#[serde(rename = "page_url", skip_serializing_if = "Option::is_none")]
pub page_url: Option<String>,
/// ScheduledMaintenances is always empty, for the same reason.
#[serde(rename = "scheduled_maintenances", skip_serializing_if = "Option::is_none")]
pub scheduled_maintenances: Option<Vec<models::O11yPeriodStatusMaintenance>>,
}
impl O11yPeriodStatusSummary {
pub fn new() -> O11yPeriodStatusSummary {
O11yPeriodStatusSummary {
checked_at: None,
in_progress_maintenances: None,
ongoing_incidents: None,
page_title: None,
page_url: None,
scheduled_maintenances: None,
}
}
}