pub struct UnstableUpdateEvaluationRuleRequest {
pub name: Option<Option<String>>,
pub evaluator: Option<Box<UnstableEvaluationRuleEvaluatorReference>>,
pub target: Option<UnstableEvaluationRuleTarget>,
pub enabled: Option<Option<bool>>,
pub sampling: Option<Option<f64>>,
pub filter: Option<Option<Vec<UnstableEvaluationRuleFilter>>>,
pub mapping: Option<Option<Vec<UnstableEvaluationRuleMapping>>>,
}Expand description
UnstableUpdateEvaluationRuleRequest : Partial update body for an evaluation rule. Provide only the fields you want to change. An empty body is rejected. Practical guidance: - If you only want to rename the rule or change sampling, send just those fields. - If you change evaluator, send a fresh mapping unless you are certain the existing mapping still matches the evaluator variables. - If you change target, usually send both filter and mapping in the same request. - If you change an experiment datasetId filter, call GET /api/public/v2/datasets and use dataset id values from that response.
Fields§
§name: Option<Option<String>>Updated deployment name.
evaluator: Option<Box<UnstableEvaluationRuleEvaluatorReference>>§target: Option<UnstableEvaluationRuleTarget>§enabled: Option<Option<bool>>Updated desired enabled state.
sampling: Option<Option<f64>>Updated sampling fraction.
filter: Option<Option<Vec<UnstableEvaluationRuleFilter>>>Updated filter list. For target=experiment, column=datasetId expects dataset id values from GET /api/public/v2/datasets, not dataset names.
mapping: Option<Option<Vec<UnstableEvaluationRuleMapping>>>Updated variable mappings.
Implementations§
Source§impl UnstableUpdateEvaluationRuleRequest
impl UnstableUpdateEvaluationRuleRequest
Sourcepub fn builder() -> UnstableUpdateEvaluationRuleRequestBuilder
pub fn builder() -> UnstableUpdateEvaluationRuleRequestBuilder
Create an instance of UnstableUpdateEvaluationRuleRequest using the builder syntax
Source§impl UnstableUpdateEvaluationRuleRequest
impl UnstableUpdateEvaluationRuleRequest
Sourcepub fn new() -> UnstableUpdateEvaluationRuleRequest
pub fn new() -> UnstableUpdateEvaluationRuleRequest
Partial update body for an evaluation rule. Provide only the fields you want to change. An empty body is rejected. Practical guidance: - If you only want to rename the rule or change sampling, send just those fields. - If you change evaluator, send a fresh mapping unless you are certain the existing mapping still matches the evaluator variables. - If you change target, usually send both filter and mapping in the same request. - If you change an experiment datasetId filter, call GET /api/public/v2/datasets and use dataset id values from that response.
Trait Implementations§
Source§impl Clone for UnstableUpdateEvaluationRuleRequest
impl Clone for UnstableUpdateEvaluationRuleRequest
Source§fn clone(&self) -> UnstableUpdateEvaluationRuleRequest
fn clone(&self) -> UnstableUpdateEvaluationRuleRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more