pub struct AutoscalingPolicyCpuUtilization {
pub predictive_method: Option<String>,
pub utilization_target: Option<f64>,
}Expand description
CPU utilization policy.
This type is not used in any activity, and only used as part of another schema.
Fields§
§predictive_method: Option<String>Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: * NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.
utilization_target: Option<f64>The target CPU utilization that the autoscaler maintains. Must be a float value in the range (0, 1]. If not specified, the default is 0.6. If the CPU level is below the target utilization, the autoscaler scales in the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization. If the average CPU is above the target utilization, the autoscaler scales out until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
Trait Implementations§
Source§impl Clone for AutoscalingPolicyCpuUtilization
impl Clone for AutoscalingPolicyCpuUtilization
Source§fn clone(&self) -> AutoscalingPolicyCpuUtilization
fn clone(&self) -> AutoscalingPolicyCpuUtilization
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for AutoscalingPolicyCpuUtilization
impl Default for AutoscalingPolicyCpuUtilization
Source§fn default() -> AutoscalingPolicyCpuUtilization
fn default() -> AutoscalingPolicyCpuUtilization
Source§impl<'de> Deserialize<'de> for AutoscalingPolicyCpuUtilization
impl<'de> Deserialize<'de> for AutoscalingPolicyCpuUtilization
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for AutoscalingPolicyCpuUtilization
Auto Trait Implementations§
impl Freeze for AutoscalingPolicyCpuUtilization
impl RefUnwindSafe for AutoscalingPolicyCpuUtilization
impl Send for AutoscalingPolicyCpuUtilization
impl Sync for AutoscalingPolicyCpuUtilization
impl Unpin for AutoscalingPolicyCpuUtilization
impl UnwindSafe for AutoscalingPolicyCpuUtilization
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more