/*
* 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 MetricsView {
/// echoes the requested window (24H|7D|30D)
#[serde(rename = "range", skip_serializing_if = "Option::is_none")]
pub range: Option<String>,
/// Resource is the Resource Usage panel's rollup, and every field of it is currently null — see resourceUsage. It is present rather than omitted so a panel renders \"—\" instead of guessing.
#[serde(rename = "resource", skip_serializing_if = "Option::is_none")]
pub resource: Option<Box<models::ResourceUsage>>,
/// per-agent invocation histogram (real)
#[serde(rename = "series", skip_serializing_if = "Option::is_none")]
pub series: Option<Vec<models::SeriesLine>>,
}
impl MetricsView {
pub fn new() -> MetricsView {
MetricsView {
range: None,
resource: None,
series: None,
}
}
}