Skip to main content

hanzo_client/models/
usage_point.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 UsagePoint {
16    /// Requests is how many LLM calls fell in this bucket.
17    #[serde(rename = "requests", skip_serializing_if = "Option::is_none")]
18    pub requests: Option<i32>,
19    /// SpendCents is what they cost, in cents.
20    #[serde(rename = "spendCents", skip_serializing_if = "Option::is_none")]
21    pub spend_cents: Option<i32>,
22    /// T is the bucket's start, RFC3339 UTC, aligned to the interval.
23    #[serde(rename = "t", skip_serializing_if = "Option::is_none")]
24    pub t: Option<String>,
25    /// Tokens is prompt plus completion tokens over those calls.
26    #[serde(rename = "tokens", skip_serializing_if = "Option::is_none")]
27    pub tokens: Option<i32>,
28}
29
30impl UsagePoint {
31    pub fn new() -> UsagePoint {
32        UsagePoint {
33            requests: None,
34            spend_cents: None,
35            t: None,
36            tokens: None,
37        }
38    }
39}
40