pub struct ScalingMetrics {
pub average_utilization: f64,
pub peak_utilization: f64,
pub events_per_second: f64,
pub scaling_operations: usize,
pub last_scaling: Option<Instant>,
}Expand description
Metrics about the auto-scaling behavior
Fields§
§average_utilization: f64Average queue utilization over the monitoring period
peak_utilization: f64Peak queue utilization observed
events_per_second: f64Current event processing rate in events per second
scaling_operations: usizeTotal number of scaling operations performed
last_scaling: Option<Instant>Timestamp of the last scaling operation
Trait Implementations§
Source§impl Clone for ScalingMetrics
impl Clone for ScalingMetrics
Source§fn clone(&self) -> ScalingMetrics
fn clone(&self) -> ScalingMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScalingMetrics
impl RefUnwindSafe for ScalingMetrics
impl Send for ScalingMetrics
impl Sync for ScalingMetrics
impl Unpin for ScalingMetrics
impl UnwindSafe for ScalingMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter