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
/*
* 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 SampleIngest {
/// GPUModel names the representative accelerator (\"GB10\"); GPUs carries how many. A heterogeneous host names its first card rather than inventing a summary.
#[serde(rename = "gpuModel", skip_serializing_if = "Option::is_none")]
pub gpu_model: Option<String>,
/// GPUUtil is accelerator utilization as a fraction 0..1; the warehouse clamps anything outside that.
#[serde(rename = "gpuUtil", skip_serializing_if = "Option::is_none")]
pub gpu_util: Option<f64>,
/// GPUs is how many accelerators this reading covers.
#[serde(rename = "gpus", skip_serializing_if = "Option::is_none")]
pub gpus: Option<i32>,
/// Host is the node's hostname, for display.
#[serde(rename = "host", skip_serializing_if = "Option::is_none")]
pub host: Option<String>,
/// MemFree is host memory still available, in BYTES.
#[serde(rename = "memFree", skip_serializing_if = "Option::is_none")]
pub mem_free: Option<i32>,
/// MemUsed is host memory in use, in BYTES.
#[serde(rename = "memUsed", skip_serializing_if = "Option::is_none")]
pub mem_used: Option<i32>,
/// Unit is the reporting node's own id — the same id it registered under, and the key the board joins this series onto. Required.
#[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
pub unit: Option<String>,
}
impl SampleIngest {
pub fn new() -> SampleIngest {
SampleIngest {
gpu_model: None,
gpu_util: None,
gpus: None,
host: None,
mem_free: None,
mem_used: None,
unit: None,
}
}
}