/*
* 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 SeriesLine {
/// agent name
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// Points is one bucket per interval across the whole window, in time order and never sparse: a bucket with no runs is present with v 0, so two lines drawn from two agents share an x-axis without the client aligning anything. The window decides the count — 24 hourly for 24H, 7 daily, 30 daily.
#[serde(rename = "points", skip_serializing_if = "Option::is_none")]
pub points: Option<Vec<models::SeriesPoint>>,
}
impl SeriesLine {
pub fn new() -> SeriesLine {
SeriesLine {
key: None,
points: None,
}
}
}