pub struct GatePolicy {
pub minimum_pass_rate: f64,
pub maximum_infra_failure_rate: f64,
pub significance_level: f64,
pub minimum_effect: f64,
pub goal_minimum_rate: f64,
pub overrides: Vec<MetricThreshold>,
}Expand description
Declarative gate. Guardrails are absolute, goals are statistical, and diagnostics never gate.
Fields§
§minimum_pass_rate: f64Aggregate floor for the whole suite.
maximum_infra_failure_rate: f64§significance_level: f64§minimum_effect: f64Regression tolerated on a goal metric before it can block.
goal_minimum_rate: f64Floor applied to every goal metric individually.
overrides: Vec<MetricThreshold>Narrower rules for named evaluators.
Trait Implementations§
Source§impl Clone for GatePolicy
impl Clone for GatePolicy
Source§impl Debug for GatePolicy
impl Debug for GatePolicy
Source§impl Default for GatePolicy
impl Default for GatePolicy
Source§impl<'de> Deserialize<'de> for GatePolicy
impl<'de> Deserialize<'de> for GatePolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GatePolicy
impl RefUnwindSafe for GatePolicy
impl Send for GatePolicy
impl Sync for GatePolicy
impl Unpin for GatePolicy
impl UnsafeUnpin for GatePolicy
impl UnwindSafe for GatePolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more