pub struct ScalingEvent {
pub resource_id: ResourceId,
pub action: ScalingAction,
pub old_capacity: u64,
pub new_capacity: u64,
pub utilisation: f64,
pub timestamp_ms: u64,
}Expand description
Record of a scaling event.
Fields§
§resource_id: ResourceIdResource that was scaled.
action: ScalingActionAction taken.
old_capacity: u64Capacity before scaling.
new_capacity: u64Capacity after scaling.
utilisation: f64Utilisation at the time of scaling.
timestamp_ms: u64Timestamp (ms since epoch).
Trait Implementations§
Source§impl Clone for ScalingEvent
impl Clone for ScalingEvent
Source§fn clone(&self) -> ScalingEvent
fn clone(&self) -> ScalingEvent
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 moreAuto Trait Implementations§
impl Freeze for ScalingEvent
impl RefUnwindSafe for ScalingEvent
impl Send for ScalingEvent
impl Sync for ScalingEvent
impl Unpin for ScalingEvent
impl UnsafeUnpin for ScalingEvent
impl UnwindSafe for ScalingEvent
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