Skip to main content

hanzo_client/models/
risk_model_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 RiskModelFeature {
16    /// Blind is how often this dimension took that neutral value for THIS organisation.
17    #[serde(rename = "blind", skip_serializing_if = "Option::is_none")]
18    pub blind: Option<i32>,
19    /// Citation is where those words come from, so the claim is checkable rather than asserted.
20    #[serde(rename = "citation", skip_serializing_if = "Option::is_none")]
21    pub citation: Option<String>,
22    /// Indicator is the supervisor's own words for the thing being looked for.
23    #[serde(rename = "indicator", skip_serializing_if = "Option::is_none")]
24    pub indicator: Option<String>,
25    /// Name is the dimension.
26    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
27    pub name: Option<String>,
28    /// Neutral is the value the coordinate takes when the data cannot support it.
29    #[serde(rename = "neutral", skip_serializing_if = "Option::is_none")]
30    pub neutral: Option<f64>,
31    /// Severity is how much weight an alert on it carries.
32    #[serde(rename = "severity", skip_serializing_if = "Option::is_none")]
33    pub severity: Option<String>,
34    /// Typology is the pattern this dimension detects.
35    #[serde(rename = "typology", skip_serializing_if = "Option::is_none")]
36    pub typology: Option<String>,
37    /// Unit is how to read the raw number, which is what turns a coordinate into a sentence an investigator can put in a file.
38    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
39    pub unit: Option<String>,
40    /// Window is the sliding aggregate it reads.
41    #[serde(rename = "window", skip_serializing_if = "Option::is_none")]
42    pub window: Option<String>,
43}
44
45impl RiskModelFeature {
46    pub fn new() -> RiskModelFeature {
47        RiskModelFeature {
48            blind: None,
49            citation: None,
50            indicator: None,
51            name: None,
52            neutral: None,
53            severity: None,
54            typology: None,
55            unit: None,
56            window: None,
57        }
58    }
59}
60