@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoScalingThresholds extends Object implements Serializable, Cloneable, StructuredPojo
Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks Stacks starts or stops load-based instances.
Constructor and Description |
---|
AutoScalingThresholds() |
Modifier and Type | Method and Description |
---|---|
AutoScalingThresholds |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAlarms()
Custom Cloudwatch auto scaling alarms, to be used as thresholds.
|
Double |
getCpuThreshold()
The CPU utilization threshold, as a percent of the available CPU.
|
Integer |
getIgnoreMetricsTime()
The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and
suppress additional scaling events.
|
Integer |
getInstanceCount()
The number of instances to add or remove when the load exceeds a threshold.
|
Double |
getLoadThreshold()
The load threshold.
|
Double |
getMemoryThreshold()
The memory utilization threshold, as a percent of the available memory.
|
Integer |
getThresholdsWaitTime()
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlarms(Collection<String> alarms)
Custom Cloudwatch auto scaling alarms, to be used as thresholds.
|
void |
setCpuThreshold(Double cpuThreshold)
The CPU utilization threshold, as a percent of the available CPU.
|
void |
setIgnoreMetricsTime(Integer ignoreMetricsTime)
The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and
suppress additional scaling events.
|
void |
setInstanceCount(Integer instanceCount)
The number of instances to add or remove when the load exceeds a threshold.
|
void |
setLoadThreshold(Double loadThreshold)
The load threshold.
|
void |
setMemoryThreshold(Double memoryThreshold)
The memory utilization threshold, as a percent of the available memory.
|
void |
setThresholdsWaitTime(Integer thresholdsWaitTime)
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AutoScalingThresholds |
withAlarms(Collection<String> alarms)
Custom Cloudwatch auto scaling alarms, to be used as thresholds.
|
AutoScalingThresholds |
withAlarms(String... alarms)
Custom Cloudwatch auto scaling alarms, to be used as thresholds.
|
AutoScalingThresholds |
withCpuThreshold(Double cpuThreshold)
The CPU utilization threshold, as a percent of the available CPU.
|
AutoScalingThresholds |
withIgnoreMetricsTime(Integer ignoreMetricsTime)
The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and
suppress additional scaling events.
|
AutoScalingThresholds |
withInstanceCount(Integer instanceCount)
The number of instances to add or remove when the load exceeds a threshold.
|
AutoScalingThresholds |
withLoadThreshold(Double loadThreshold)
The load threshold.
|
AutoScalingThresholds |
withMemoryThreshold(Double memoryThreshold)
The memory utilization threshold, as a percent of the available memory.
|
AutoScalingThresholds |
withThresholdsWaitTime(Integer thresholdsWaitTime)
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
|
public void setInstanceCount(Integer instanceCount)
The number of instances to add or remove when the load exceeds a threshold.
instanceCount
- The number of instances to add or remove when the load exceeds a threshold.public Integer getInstanceCount()
The number of instances to add or remove when the load exceeds a threshold.
public AutoScalingThresholds withInstanceCount(Integer instanceCount)
The number of instances to add or remove when the load exceeds a threshold.
instanceCount
- The number of instances to add or remove when the load exceeds a threshold.public void setThresholdsWaitTime(Integer thresholdsWaitTime)
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
thresholdsWaitTime
- The amount of time, in minutes, that the load must exceed a threshold before more instances are added or
removed.public Integer getThresholdsWaitTime()
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
public AutoScalingThresholds withThresholdsWaitTime(Integer thresholdsWaitTime)
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
thresholdsWaitTime
- The amount of time, in minutes, that the load must exceed a threshold before more instances are added or
removed.public void setIgnoreMetricsTime(Integer ignoreMetricsTime)
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.
ignoreMetricsTime
- 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.public Integer getIgnoreMetricsTime()
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.
IgnoreMetricsTime
allows you to direct AWS OpsWorks Stacks
to suppress scaling events long enough to get the new instances online.public AutoScalingThresholds withIgnoreMetricsTime(Integer ignoreMetricsTime)
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.
ignoreMetricsTime
- 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.public void setCpuThreshold(Double cpuThreshold)
The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
cpuThreshold
- The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.public Double getCpuThreshold()
The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
public AutoScalingThresholds withCpuThreshold(Double cpuThreshold)
The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
cpuThreshold
- The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.public void setMemoryThreshold(Double memoryThreshold)
The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
memoryThreshold
- The memory utilization threshold, as a percent of the available memory. A value of -1 disables the
threshold.public Double getMemoryThreshold()
The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
public AutoScalingThresholds withMemoryThreshold(Double memoryThreshold)
The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
memoryThreshold
- The memory utilization threshold, as a percent of the available memory. A value of -1 disables the
threshold.public void setLoadThreshold(Double loadThreshold)
The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).
loadThreshold
- The load threshold. A value of -1 disables the threshold. For more information about how load is computed,
see Load (computing).public Double getLoadThreshold()
The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).
public AutoScalingThresholds withLoadThreshold(Double loadThreshold)
The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).
loadThreshold
- The load threshold. A value of -1 disables the threshold. For more information about how load is computed,
see Load (computing).public List<String> getAlarms()
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.
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.
public void setAlarms(Collection<String> alarms)
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.
alarms
- 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.
public AutoScalingThresholds withAlarms(String... alarms)
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.
NOTE: This method appends the values to the existing list (if any). Use
setAlarms(java.util.Collection)
or withAlarms(java.util.Collection)
if you want to override the
existing values.
alarms
- 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.
public AutoScalingThresholds withAlarms(Collection<String> alarms)
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.
alarms
- 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.
public String toString()
toString
in class Object
Object.toString()
public AutoScalingThresholds clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.