Struct rusoto_opsworks::AutoScalingThresholds
source · [−]pub struct AutoScalingThresholds {
pub alarms: Option<Vec<String>>,
pub cpu_threshold: Option<f64>,
pub ignore_metrics_time: Option<i64>,
pub instance_count: Option<i64>,
pub load_threshold: Option<f64>,
pub memory_threshold: Option<f64>,
pub thresholds_wait_time: Option<i64>,
}
Expand description
Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks Stacks starts or stops load-based instances.
Fields
alarms: Option<Vec<String>>
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms
. You can either have AWS OpsWorks Stacks update the role for you when you first use this feature or you can edit the role manually. For more information, see Allowing AWS OpsWorks Stacks to Act on Your Behalf.
cpu_threshold: Option<f64>
The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
ignore_metrics_time: Option<i64>
The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. For example, AWS OpsWorks Stacks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime
allows you to direct AWS OpsWorks Stacks to suppress scaling events long enough to get the new instances online.
instance_count: Option<i64>
The number of instances to add or remove when the load exceeds a threshold.
load_threshold: Option<f64>
The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).
memory_threshold: Option<f64>
The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
thresholds_wait_time: Option<i64>
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
Trait Implementations
sourceimpl Clone for AutoScalingThresholds
impl Clone for AutoScalingThresholds
sourcefn clone(&self) -> AutoScalingThresholds
fn clone(&self) -> AutoScalingThresholds
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AutoScalingThresholds
impl Debug for AutoScalingThresholds
sourceimpl Default for AutoScalingThresholds
impl Default for AutoScalingThresholds
sourcefn default() -> AutoScalingThresholds
fn default() -> AutoScalingThresholds
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AutoScalingThresholds
impl<'de> Deserialize<'de> for AutoScalingThresholds
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<AutoScalingThresholds> for AutoScalingThresholds
impl PartialEq<AutoScalingThresholds> for AutoScalingThresholds
sourcefn eq(&self, other: &AutoScalingThresholds) -> bool
fn eq(&self, other: &AutoScalingThresholds) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AutoScalingThresholds) -> bool
fn ne(&self, other: &AutoScalingThresholds) -> bool
This method tests for !=
.
sourceimpl Serialize for AutoScalingThresholds
impl Serialize for AutoScalingThresholds
impl StructuralPartialEq for AutoScalingThresholds
Auto Trait Implementations
impl RefUnwindSafe for AutoScalingThresholds
impl Send for AutoScalingThresholds
impl Sync for AutoScalingThresholds
impl Unpin for AutoScalingThresholds
impl UnwindSafe for AutoScalingThresholds
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more