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
57
58
59
60
/*
* 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 UsageSummary {
/// Accounts is the caller's own linked provider accounts beside the org's Hanzo-routed usage, labelled row by row and never summed together.
#[serde(rename = "accounts", skip_serializing_if = "Option::is_none")]
pub accounts: Option<Box<models::Accounts>>,
/// End is the window's exclusive end, RFC3339 UTC.
#[serde(rename = "end", skip_serializing_if = "Option::is_none")]
pub end: Option<String>,
/// Interval is the bucket width the spend series is gap-filled at.
#[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
pub interval: Option<String>,
/// LLM is the org's Hanzo-routed inference totals from the warehouse.
#[serde(rename = "llm", skip_serializing_if = "Option::is_none")]
pub llm: Option<Box<models::Llm>>,
/// Range is the window label that was served.
#[serde(rename = "range", skip_serializing_if = "Option::is_none")]
pub range: Option<String>,
/// Scope is the tenant and subject the roll-up was answered for.
#[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
pub scope: Option<Box<models::UsageScope>>,
/// Sources says which upstreams actually answered, so a zero can be read as \"no data yet\" rather than as a measurement.
#[serde(rename = "sources", skip_serializing_if = "Option::is_none")]
pub sources: Option<Box<models::Sources>>,
/// Spend is the categorized cost roll-up from the billing ledger.
#[serde(rename = "spend", skip_serializing_if = "Option::is_none")]
pub spend: Option<Box<models::Spend>>,
/// Start is the window's inclusive start, RFC3339 UTC.
#[serde(rename = "start", skip_serializing_if = "Option::is_none")]
pub start: Option<String>,
}
impl UsageSummary {
pub fn new() -> UsageSummary {
UsageSummary {
accounts: None,
end: None,
interval: None,
llm: None,
range: None,
scope: None,
sources: None,
spend: None,
start: None,
}
}
}