Skip to main content

hanzo_client/models/
analysis.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 Analysis {
16    /// the two-tailed threshold significance was judged at
17    #[serde(rename = "alpha", skip_serializing_if = "Option::is_none")]
18    pub alpha: Option<f64>,
19    /// the experiment that was analysed
20    #[serde(rename = "experiment", skip_serializing_if = "Option::is_none")]
21    pub experiment: Option<String>,
22    /// subjects enrolled across every arm
23    #[serde(rename = "exposedTotal", skip_serializing_if = "Option::is_none")]
24    pub exposed_total: Option<i32>,
25    /// the event a conversion is counted from
26    #[serde(rename = "metric", skip_serializing_if = "Option::is_none")]
27    pub metric: Option<String>,
28    /// one row per declared arm, control first
29    #[serde(rename = "results", skip_serializing_if = "Option::is_none")]
30    pub results: Option<Vec<models::Outcome>>,
31    /// ADVISORY: the significant, control-beating arm with the highest rate, else empty
32    #[serde(rename = "winner", skip_serializing_if = "Option::is_none")]
33    pub winner: Option<String>,
34}
35
36impl Analysis {
37    pub fn new() -> Analysis {
38        Analysis {
39            alpha: None,
40            experiment: None,
41            exposed_total: None,
42            metric: None,
43            results: None,
44            winner: None,
45        }
46    }
47}
48