1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* 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 Overview {
/// Commerce is the orders/revenue lens over product events.
#[serde(rename = "commerce", skip_serializing_if = "Option::is_none")]
pub commerce: Option<Box<models::CommerceOverview>>,
/// 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 the window implies: hour or day.
#[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
pub interval: Option<String>,
/// LLM is the LLM usage lens — real per-org data.
#[serde(rename = "llm", skip_serializing_if = "Option::is_none")]
pub llm: Option<Box<models::LlmOverview>>,
/// 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>>,
/// Start is the window's inclusive lower bound, RFC3339 UTC.
#[serde(rename = "start", skip_serializing_if = "Option::is_none")]
pub start: Option<String>,
/// Web is the web-traffic lens over product events.
#[serde(rename = "web", skip_serializing_if = "Option::is_none")]
pub web: Option<Box<models::WebOverview>>,
}
impl Overview {
pub fn new() -> Overview {
Overview {
commerce: None,
end: None,
interval: None,
llm: None,
range: None,
scope: None,
start: None,
web: None,
}
}
}