nomad_client_rs/models/
sampled_value.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct SampledValue {
5 #[serde(rename = "Count", skip_serializing_if = "Option::is_none")]
6 pub count: Option<i32>,
7 #[serde(rename = "Labels", skip_serializing_if = "Option::is_none")]
8 pub labels: Option<::std::collections::HashMap<String, String>>,
9 #[serde(rename = "Max", skip_serializing_if = "Option::is_none")]
10 pub max: Option<f64>,
11 #[serde(rename = "Mean", skip_serializing_if = "Option::is_none")]
12 pub mean: Option<f64>,
13 #[serde(rename = "Min", skip_serializing_if = "Option::is_none")]
14 pub min: Option<f64>,
15 #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
16 pub name: Option<String>,
17 #[serde(rename = "Rate", skip_serializing_if = "Option::is_none")]
18 pub rate: Option<f64>,
19 #[serde(rename = "Stddev", skip_serializing_if = "Option::is_none")]
20 pub stddev: Option<f64>,
21 #[serde(rename = "Sum", skip_serializing_if = "Option::is_none")]
22 pub sum: Option<f64>,
23}