Skip to main content

hanzo_client/models/
overview.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 Overview {
16    /// Commerce is the orders/revenue lens over product events.
17    #[serde(rename = "commerce", skip_serializing_if = "Option::is_none")]
18    pub commerce: Option<Box<models::CommerceOverview>>,
19    /// End is the window's exclusive upper bound, RFC3339 UTC.
20    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
21    pub end: Option<String>,
22    /// Interval is the bucket width the window implies: hour or day.
23    #[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
24    pub interval: Option<String>,
25    /// LLM is the LLM usage lens — real per-org data.
26    #[serde(rename = "llm", skip_serializing_if = "Option::is_none")]
27    pub llm: Option<Box<models::LlmOverview>>,
28    /// Range is the window that was actually applied: 24h, 7d, 30d or custom.
29    #[serde(rename = "range", skip_serializing_if = "Option::is_none")]
30    pub range: Option<String>,
31    /// Scope names the tenant these numbers belong to.
32    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
33    pub scope: Option<Box<models::Scope>>,
34    /// Start is the window's inclusive lower bound, RFC3339 UTC.
35    #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
36    pub start: Option<String>,
37    /// Web is the web-traffic lens over product events.
38    #[serde(rename = "web", skip_serializing_if = "Option::is_none")]
39    pub web: Option<Box<models::WebOverview>>,
40}
41
42impl Overview {
43    pub fn new() -> Overview {
44        Overview {
45            commerce: None,
46            end: None,
47            interval: None,
48            llm: None,
49            range: None,
50            scope: None,
51            start: None,
52            web: None,
53        }
54    }
55}
56