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
53
54
55
56
57
58
59
60
61
62
63
64
/*
* 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 RiskTrial {
/// Alerted is how many of those it would have raised.
#[serde(rename = "alerted", skip_serializing_if = "Option::is_none")]
pub alerted: Option<i32>,
/// Curve is the realised alert rate over successive tenths of the history — the learning curve, which says whether the shape settled or is still moving.
#[serde(rename = "curve", skip_serializing_if = "Option::is_none")]
pub curve: Option<Vec<f64>>,
/// Fit ranks the shape, smaller being better: the relative miss of the stated appetite, plus flat penalties for never warming and for saturating, plus the share of coordinates that were blind.
#[serde(rename = "fit", skip_serializing_if = "Option::is_none")]
pub fit: Option<f64>,
/// Learned is how many events the shape learned from during the replay.
#[serde(rename = "learned", skip_serializing_if = "Option::is_none")]
pub learned: Option<i32>,
/// Realised is what that appetite actually produced. The distance between the two is what the search is searching over.
#[serde(rename = "realised", skip_serializing_if = "Option::is_none")]
pub realised: Option<f64>,
/// Saturated is whether the appetite could not be honoured by any threshold, which is a shape that alerts on nothing and reads like a quiet one.
#[serde(rename = "saturated", skip_serializing_if = "Option::is_none")]
pub saturated: Option<bool>,
/// Scored is how many it was able to score.
#[serde(rename = "scored", skip_serializing_if = "Option::is_none")]
pub scored: Option<i32>,
/// Stated is the appetite the shape was tried at.
#[serde(rename = "stated", skip_serializing_if = "Option::is_none")]
pub stated: Option<f64>,
/// Topology is the shape.
#[serde(rename = "topology", skip_serializing_if = "Option::is_none")]
pub topology: Option<Box<models::RiskTopology>>,
/// Warm is whether the shape learned enough to have an opinion at all over this organisation's whole history.
#[serde(rename = "warm", skip_serializing_if = "Option::is_none")]
pub warm: Option<bool>,
}
impl RiskTrial {
pub fn new() -> RiskTrial {
RiskTrial {
alerted: None,
curve: None,
fit: None,
learned: None,
realised: None,
saturated: None,
scored: None,
stated: None,
topology: None,
warm: None,
}
}
}