/*
* 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 RiskAppetiteIn {
/// Live turns the model out of shadow. It defaults to FALSE on every call, so going live is always an explicit act and never a side effect of changing a number. Setting it requires an ADMIN of this organisation. Arming decides whether the model may change an outcome at all — a payment frozen, a grant refused — for every customer this organisation has, which is a governance act rather than a tuning one. Stating the appetite and the sample needs no admin.
#[serde(rename = "live", skip_serializing_if = "Option::is_none")]
pub live: Option<bool>,
/// Review is the share of the stream that may be sent for examination, in (0, 0.5]. The alert threshold is derived from it as a quantile of the scores actually observed, so the level is governed rather than tuned.
#[serde(rename = "review", skip_serializing_if = "Option::is_none")]
pub review: Option<f64>,
/// Sample is the share of below-the-line events retained for review, in [0, 1]. It is the instrument that measures what the model missed; there are no labels, so nothing else can.
#[serde(rename = "sample", skip_serializing_if = "Option::is_none")]
pub sample: Option<f64>,
}
impl RiskAppetiteIn {
pub fn new() -> RiskAppetiteIn {
RiskAppetiteIn {
live: None,
review: None,
sample: None,
}
}
}