pub struct DriftThresholds {
pub max_completion_drop: f64,
pub max_dead_letter_growth: f64,
pub max_latency_p95_ratio: f64,
pub min_decisions: usize,
}Expand description
The declared thresholds a drift check applies. All comparisons are against the promotion-time baseline, on the acting version’s journaled outcomes only — shadow decisions are evidence for the next candidate, never for the acting version’s health.
Fields§
§max_completion_drop: f64Completion-rate drop from baseline that declares drift.
max_dead_letter_growth: f64Dead-letter-rate growth from baseline that declares drift.
max_latency_p95_ratio: f64p95 latency ratio current / baseline that declares drift (applied
only when both sides carry the latency feature).
min_decisions: usizeMinimum terminal decisions before any verdict. Sparse evidence declares nothing — a drift verdict on three outcomes is noise wearing a label.
Trait Implementations§
Source§impl Clone for DriftThresholds
impl Clone for DriftThresholds
impl Copy for DriftThresholds
Source§impl Debug for DriftThresholds
impl Debug for DriftThresholds
Source§impl Default for DriftThresholds
impl Default for DriftThresholds
Source§impl<'de> Deserialize<'de> for DriftThresholds
impl<'de> Deserialize<'de> for DriftThresholds
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
Source§impl PartialEq for DriftThresholds
impl PartialEq for DriftThresholds
Source§impl Serialize for DriftThresholds
impl Serialize for DriftThresholds
impl StructuralPartialEq for DriftThresholds
Auto Trait Implementations§
impl Freeze for DriftThresholds
impl RefUnwindSafe for DriftThresholds
impl Send for DriftThresholds
impl Sync for DriftThresholds
impl Unpin for DriftThresholds
impl UnsafeUnpin for DriftThresholds
impl UnwindSafe for DriftThresholds
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