pub struct GateHealthRegistry { /* private fields */ }Expand description
Per-gate error budgets for a running proxy (app-level, shared across requests). Lookup by gate id; unknown gates default to enabled with no accounting (a gate the operator didn’t register a budget for is simply never auto-disabled).
Implementations§
Source§impl GateHealthRegistry
impl GateHealthRegistry
Sourcepub fn with_budget(
self,
gate_id: impl Into<String>,
window: usize,
max_error_rate: f64,
) -> Self
pub fn with_budget( self, gate_id: impl Into<String>, window: usize, max_error_rate: f64, ) -> Self
Register an error budget for gate_id (window size + max abstain fraction).
Trait Implementations§
Source§impl Debug for GateHealthRegistry
impl Debug for GateHealthRegistry
Source§impl Default for GateHealthRegistry
impl Default for GateHealthRegistry
Source§fn default() -> GateHealthRegistry
fn default() -> GateHealthRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GateHealthRegistry
impl RefUnwindSafe for GateHealthRegistry
impl Send for GateHealthRegistry
impl Sync for GateHealthRegistry
impl Unpin for GateHealthRegistry
impl UnsafeUnpin for GateHealthRegistry
impl UnwindSafe for GateHealthRegistry
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