hanzo_client/models/risk_org_feature.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 RiskOrgFeature {
16 /// Blind is true when the dimension is present in no bucket at all: this organisation's surface does not carry it, and saying so is the difference between no risk and no data.
17 #[serde(rename = "blind", skip_serializing_if = "Option::is_none")]
18 pub blind: Option<bool>,
19 /// Buckets is how many five-minute buckets of this organisation's surface were measured.
20 #[serde(rename = "buckets", skip_serializing_if = "Option::is_none")]
21 pub buckets: Option<i32>,
22 /// Max is the largest value it reached in the window.
23 #[serde(rename = "max", skip_serializing_if = "Option::is_none")]
24 pub max: Option<f64>,
25 /// Mean is the dimension's average where it was present.
26 #[serde(rename = "mean", skip_serializing_if = "Option::is_none")]
27 pub mean: Option<f64>,
28 /// Name is the dimension as this API publishes it.
29 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
30 pub name: Option<String>,
31 /// Present is in how many of them the dimension carried a value at all.
32 #[serde(rename = "present", skip_serializing_if = "Option::is_none")]
33 pub present: Option<i32>,
34 /// Source names the plane it is rolled up from, so a dimension that reads zero everywhere traces to a plane the organisation does not use rather than to a defect.
35 #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
36 pub source: Option<String>,
37 /// Unit is how to read the numbers below.
38 #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
39 pub unit: Option<String>,
40}
41
42impl RiskOrgFeature {
43 pub fn new() -> RiskOrgFeature {
44 RiskOrgFeature {
45 blind: None,
46 buckets: None,
47 max: None,
48 mean: None,
49 name: None,
50 present: None,
51 source: None,
52 unit: None,
53 }
54 }
55}
56