pub struct MonitorConfig {
pub window: usize,
pub min_applied: u32,
pub min_kept: u32,
pub max_drop: f32,
pub z: f32,
}Expand description
What a monitor watches for.
Fields§
§window: usizeHow many of the latest outcomes are compared. Held between
MIN_WINDOW and MAX_WINDOW.
min_applied: u32The fewest applied outcomes in the window before a verdict is given. At least one, and no more than the window.
min_kept: u32The fewest kept outcomes in the window before a verdict is given. At least one, and no more than the window.
max_drop: f32The largest drop in success rate, kept minus applied, that is let
through. 0.02 is two points.
z: f32How many standard errors the drop’s lower bound sits under the drop.
DEFAULT_Z unless set.
Trait Implementations§
Source§impl Clone for MonitorConfig
impl Clone for MonitorConfig
impl Copy for MonitorConfig
Source§impl Debug for MonitorConfig
impl Debug for MonitorConfig
Source§impl Default for MonitorConfig
impl Default for MonitorConfig
Source§fn default() -> MonitorConfig
fn default() -> MonitorConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for MonitorConfig
impl PartialEq for MonitorConfig
impl StructuralPartialEq for MonitorConfig
Auto Trait Implementations§
impl Forget for MonitorConfig
impl Freeze for MonitorConfig
impl Move for MonitorConfig
impl RefUnwindSafe for MonitorConfig
impl Send for MonitorConfig
impl Sync for MonitorConfig
impl Unpin for MonitorConfig
impl UnsafeUnpin for MonitorConfig
impl UnwindSafe for MonitorConfig
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