pub struct TailStabilityTracker { /* private fields */ }Expand description
Tracker for tail latency stability.
Maintains a baseline and a sliding window of recent samples, detecting distribution shifts based on p99 changes.
Implementations§
Source§impl TailStabilityTracker
impl TailStabilityTracker
Sourcepub fn with_config(config: TailStabilityConfig) -> Self
pub fn with_config(config: TailStabilityConfig) -> Self
Create a tracker with custom config.
Sourcepub fn force_lock_baseline(&mut self)
pub fn force_lock_baseline(&mut self)
Force lock the baseline with current samples (even if not full).
Sourcepub fn window_p99(&self) -> Option<f64>
pub fn window_p99(&self) -> Option<f64>
Get the current window p99.
Sourcepub fn baseline_p99(&self) -> Option<f64>
pub fn baseline_p99(&self) -> Option<f64>
Get the baseline p99.
Sourcepub fn status(&self) -> TailStabilityStatus
pub fn status(&self) -> TailStabilityStatus
Get status of the tracker.
Sourcepub fn baseline_count(&self) -> usize
pub fn baseline_count(&self) -> usize
Number of samples in baseline.
Sourcepub fn window_count(&self) -> usize
pub fn window_count(&self) -> usize
Number of samples in window.
Sourcepub fn is_baseline_locked(&self) -> bool
pub fn is_baseline_locked(&self) -> bool
Whether baseline is locked.
Trait Implementations§
Source§impl Clone for TailStabilityTracker
impl Clone for TailStabilityTracker
Source§fn clone(&self) -> TailStabilityTracker
fn clone(&self) -> TailStabilityTracker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TailStabilityTracker
impl Debug for TailStabilityTracker
Auto Trait Implementations§
impl Freeze for TailStabilityTracker
impl RefUnwindSafe for TailStabilityTracker
impl Send for TailStabilityTracker
impl Sync for TailStabilityTracker
impl Unpin for TailStabilityTracker
impl UnsafeUnpin for TailStabilityTracker
impl UnwindSafe for TailStabilityTracker
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