pub struct SloMonitor { /* private fields */ }Expand description
SLO 监控器
v0.2.2 修复 P2-1:扩展为 4 窗口(Page + Ticket 两级告警)。
Implementations§
Source§impl SloMonitor
impl SloMonitor
Sourcepub fn record_success(&self)
pub fn record_success(&self)
记录一次成功
Sourcepub fn record_failure(&self)
pub fn record_failure(&self)
记录一次失败
Sourcepub fn burn_rate(&self) -> SloBurnRate
pub fn burn_rate(&self) -> SloBurnRate
当前燃烧率
Auto Trait Implementations§
impl !Freeze for SloMonitor
impl !RefUnwindSafe for SloMonitor
impl !UnwindSafe for SloMonitor
impl Send for SloMonitor
impl Sync for SloMonitor
impl Unpin for SloMonitor
impl UnsafeUnpin for SloMonitor
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