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 O11yPeriodStatusResult {
/// CheckedAt is when this answer was measured, RFC3339 UTC.
#[serde(rename = "checkedAt", skip_serializing_if = "Option::is_none")]
pub checked_at: Option<String>,
/// Deployments is the per-replica inventory behind the verdict. Empty means the telemetry store reported none, not that the service runs on none.
#[serde(rename = "deployments", skip_serializing_if = "Option::is_none")]
pub deployments: Option<Vec<models::O11yPeriodDeployment>>,
/// LatencyMs is the health probe's round trip in MILLISECONDS, time-boxed at two seconds. It is 0 when no probe answered, which is not a fast service.
#[serde(rename = "latencyMs", skip_serializing_if = "Option::is_none")]
pub latency_ms: Option<i32>,
/// Product is the service this answer is about, echoed back.
#[serde(rename = "product", skip_serializing_if = "Option::is_none")]
pub product: Option<String>,
/// Source is where the verdict came from: \"probe\" (we asked and it answered), \"datastore\" (the probe did not answer and the replica inventory decided it), \"unreachable\" (neither), or \"unknown-service\" for a well-formed product name nothing backs — which is answered without probing, since dialling an arbitrary host on a caller's say-so is the request forgery this refuses.
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
/// Up is true when the health probe succeeded OR any replica reports up, so a service reachable by either route reads up. Read Source to know which.
#[serde(rename = "up", skip_serializing_if = "Option::is_none")]
pub up: Option<bool>,
}
impl O11yPeriodStatusResult {
pub fn new() -> O11yPeriodStatusResult {
O11yPeriodStatusResult {
checked_at: None,
deployments: None,
latency_ms: None,
product: None,
source: None,
up: None,
}
}
}