hanzo_client/models/activity_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 ActivityPoint {
16 /// CostCents is the day's spend in whole US cents. A series is only ever returned for a subject the caller is authorized to see, so this is never withheld: 0 means no spend that day.
17 #[serde(rename = "costCents", skip_serializing_if = "Option::is_none")]
18 pub cost_cents: Option<i32>,
19 /// Day is the UTC calendar day this point covers, \"2006-01-02\".
20 #[serde(rename = "day", skip_serializing_if = "Option::is_none")]
21 pub day: Option<String>,
22 /// Requests is the subject's request count on this day. 0 is a real, quiet day: the series is gap-filled, so every day in the range is present whether or not anything happened.
23 #[serde(rename = "requests", skip_serializing_if = "Option::is_none")]
24 pub requests: Option<i32>,
25 /// Tokens is prompt+completion tokens on this day — normally the heatmap's intensity, scaled against ActivityTotals.MaxTokens.
26 #[serde(rename = "tokens", skip_serializing_if = "Option::is_none")]
27 pub tokens: Option<i32>,
28}
29
30impl ActivityPoint {
31 pub fn new() -> ActivityPoint {
32 ActivityPoint {
33 cost_cents: None,
34 day: None,
35 requests: None,
36 tokens: None,
37 }
38 }
39}
40