hanzo_client/models/stats_out.rs
1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct StatsOut {
16 /// Admin is the upstream service's server-panel flag, always false here.
17 #[serde(rename = "admin", skip_serializing_if = "Option::is_none")]
18 pub admin: Option<bool>,
19 /// Metrics is the upstream transactor's metrics block. This server does not populate it, so it is always the empty object — the front reads the key, not its contents.
20 #[serde(rename = "metrics", skip_serializing_if = "Option::is_none")]
21 pub metrics: Option<serde_json::Value>,
22 /// Statistics carries the live sessions.
23 #[serde(rename = "statistics", skip_serializing_if = "Option::is_none")]
24 pub statistics: Option<Box<models::StatsSessions>>,
25}
26
27impl StatsOut {
28 pub fn new() -> StatsOut {
29 StatsOut {
30 admin: None,
31 metrics: None,
32 statistics: None,
33 }
34 }
35}
36