pub struct AdaptiveThresholdController { /* private fields */ }
Expand description
Adaptive threshold controller that learns from system performance
Implementations§
Source§impl AdaptiveThresholdController
impl AdaptiveThresholdController
pub fn new( initial_thresholds: ScalingTriggers, learning_rate: f64, target_sla: SLATargets, adaptation_window: Duration, ) -> Self
pub fn get_current_thresholds(&self) -> &ScalingTriggers
pub fn record_performance_snapshot( &mut self, metrics: &AutoScalerMetrics, action: &ScalingAction, )
pub fn get_adaptation_status(&self) -> String
Trait Implementations§
Source§impl Clone for AdaptiveThresholdController
impl Clone for AdaptiveThresholdController
Auto Trait Implementations§
impl Freeze for AdaptiveThresholdController
impl RefUnwindSafe for AdaptiveThresholdController
impl Send for AdaptiveThresholdController
impl Sync for AdaptiveThresholdController
impl Unpin for AdaptiveThresholdController
impl UnwindSafe for AdaptiveThresholdController
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