hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 Timeseries {
    /// End is the window's exclusive upper bound, RFC3339 UTC.
    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
    pub end: Option<String>,
    /// Interval is the bucket width: hour or day.
    #[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
    pub interval: Option<String>,
    /// Range is the window that was actually applied: 24h, 7d, 30d or custom.
    #[serde(rename = "range", skip_serializing_if = "Option::is_none")]
    pub range: Option<String>,
    /// Scope names the tenant these numbers belong to.
    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
    pub scope: Option<Box<models::Scope>>,
    /// Series is one point per bucket, oldest first, with empty buckets zero-filled.
    #[serde(rename = "series", skip_serializing_if = "Option::is_none")]
    pub series: Option<Vec<models::UsagePoint>>,
    /// Source is the warehouse table the series read.
    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
    pub source: Option<String>,
    /// Start is the window's inclusive lower bound, RFC3339 UTC.
    #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
    pub start: Option<String>,
}

impl Timeseries {
    pub fn new() -> Timeseries {
        Timeseries {
            end: None,
            interval: None,
            range: None,
            scope: None,
            series: None,
            source: None,
            start: None,
        }
    }
}