[−][src]Struct rusoto_opsworks::AutoScalingThresholds
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
impl Clone for AutoScalingThresholds
[src]
pub fn clone(&self) -> AutoScalingThresholds
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AutoScalingThresholds
[src]
impl Default for AutoScalingThresholds
[src]
pub fn default() -> AutoScalingThresholds
[src]
impl<'de> Deserialize<'de> for AutoScalingThresholds
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<AutoScalingThresholds> for AutoScalingThresholds
[src]
pub fn eq(&self, other: &AutoScalingThresholds) -> bool
[src]
pub fn ne(&self, other: &AutoScalingThresholds) -> bool
[src]
impl Serialize for AutoScalingThresholds
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for AutoScalingThresholds
[src]
Auto Trait Implementations
impl RefUnwindSafe for AutoScalingThresholds
[src]
impl Send for AutoScalingThresholds
[src]
impl Sync for AutoScalingThresholds
[src]
impl Unpin for AutoScalingThresholds
[src]
impl UnwindSafe for AutoScalingThresholds
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,