/*
* 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 StatsOut {
/// Admin is the upstream service's server-panel flag, always false here.
#[serde(rename = "admin", skip_serializing_if = "Option::is_none")]
pub admin: Option<bool>,
/// 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.
#[serde(rename = "metrics", skip_serializing_if = "Option::is_none")]
pub metrics: Option<serde_json::Value>,
/// Statistics carries the live sessions.
#[serde(rename = "statistics", skip_serializing_if = "Option::is_none")]
pub statistics: Option<Box<models::StatsSessions>>,
}
impl StatsOut {
pub fn new() -> StatsOut {
StatsOut {
admin: None,
metrics: None,
statistics: None,
}
}
}