Skip to main content

hanzo_client/models/
analyze_query.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 AnalyzeQuery {
16    /// Alpha overrides the 0.05 two-tailed significance threshold when it lies strictly between 0 and 1; anything else leaves the default in place.
17    #[serde(rename = "alpha", skip_serializing_if = "Option::is_none")]
18    pub alpha: Option<f64>,
19    /// Days is how far back to read when no start is given: 1 to 365, 30 by default. A value outside that range leaves the default in place.
20    #[serde(rename = "days", skip_serializing_if = "Option::is_none")]
21    pub days: Option<i32>,
22    /// End is the window's exclusive end in RFC3339, defaulting to now.
23    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
24    pub end: Option<String>,
25    /// ID is the experiment the URL names.
26    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<String>,
28    /// Start is the window's inclusive start in RFC3339. Given, it wins over days.
29    #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
30    pub start: Option<String>,
31}
32
33impl AnalyzeQuery {
34    pub fn new() -> AnalyzeQuery {
35        AnalyzeQuery {
36            alpha: None,
37            days: None,
38            end: None,
39            id: None,
40            start: None,
41        }
42    }
43}
44