pub struct Thresholds {
pub window_days: u64,
pub min_runs: usize,
pub noop_ratio_percent: u64,
pub noop_median_secs: u64,
pub fast_pass_ms: u64,
pub stale_runs: usize,
pub stale_days: u64,
}Expand description
The numbers every flag below is decided against. Defaults are documented
in docs/gate-evidence.md and overridable per invocation.
Fields§
§window_days: u64How far back the report looks, in days. 0 means the whole record.
min_runs: usizeVerdicts below which no flag is computed and the report says so.
noop_ratio_percent: u64A last duration below this percentage of the median is a collapse.
noop_median_secs: u64…but only for a gate whose median is at least this many seconds. A gate that has always taken 200 ms has no collapse to detect.
fast_pass_ms: u64A pass faster than this, from a gate that has never once passed this fast, is the other shape of the same failure.
stale_runs: usizeHow many later fingerprints may go by without this gate running before it is called stale.
stale_days: u64…or how many days, when other gates have run more recently.
Trait Implementations§
Source§impl Clone for Thresholds
impl Clone for Thresholds
impl Copy for Thresholds
Source§impl Debug for Thresholds
impl Debug for Thresholds
Source§impl Default for Thresholds
impl Default for Thresholds
impl Eq for Thresholds
Source§impl PartialEq for Thresholds
impl PartialEq for Thresholds
impl StructuralPartialEq for Thresholds
Auto Trait Implementations§
impl Freeze for Thresholds
impl RefUnwindSafe for Thresholds
impl Send for Thresholds
impl Sync for Thresholds
impl Unpin for Thresholds
impl UnsafeUnpin for Thresholds
impl UnwindSafe for Thresholds
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