public class AutoScalingThresholds
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks starts or stops load-based instances.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
alarms
Custom Cloudwatch auto scaling alarms, to be used as thresholds.
|
private java.lang.Double |
cpuThreshold
The CPU utilization threshold, as a percent of the available CPU.
|
private java.lang.Integer |
ignoreMetricsTime
The amount of time (in minutes) after a scaling event occurs that AWS
OpsWorks should ignore metrics and suppress additional scaling events.
|
private java.lang.Integer |
instanceCount
The number of instances to add or remove when the load exceeds a
threshold.
|
private java.lang.Double |
loadThreshold
The load threshold.
|
private java.lang.Double |
memoryThreshold
The memory utilization threshold, as a percent of the available memory.
|
private java.lang.Integer |
thresholdsWaitTime
The amount of time, in minutes, that the load must exceed a threshold
before more instances are added or removed.
|
Constructor and Description |
---|
AutoScalingThresholds() |
Modifier and Type | Method and Description |
---|---|
AutoScalingThresholds |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAlarms()
Custom Cloudwatch auto scaling alarms, to be used as thresholds.
|
java.lang.Double |
getCpuThreshold()
The CPU utilization threshold, as a percent of the available CPU.
|
java.lang.Integer |
getIgnoreMetricsTime()
The amount of time (in minutes) after a scaling event occurs that AWS
OpsWorks should ignore metrics and suppress additional scaling events.
|
java.lang.Integer |
getInstanceCount()
The number of instances to add or remove when the load exceeds a
threshold.
|
java.lang.Double |
getLoadThreshold()
The load threshold.
|
java.lang.Double |
getMemoryThreshold()
The memory utilization threshold, as a percent of the available memory.
|
java.lang.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 |
setAlarms(java.util.Collection<java.lang.String> alarms)
Custom Cloudwatch auto scaling alarms, to be used as thresholds.
|
void |
setCpuThreshold(java.lang.Double cpuThreshold)
The CPU utilization threshold, as a percent of the available CPU.
|
void |
setIgnoreMetricsTime(java.lang.Integer ignoreMetricsTime)
The amount of time (in minutes) after a scaling event occurs that AWS
OpsWorks should ignore metrics and suppress additional scaling events.
|
void |
setInstanceCount(java.lang.Integer instanceCount)
The number of instances to add or remove when the load exceeds a
threshold.
|
void |
setLoadThreshold(java.lang.Double loadThreshold)
The load threshold.
|
void |
setMemoryThreshold(java.lang.Double memoryThreshold)
The memory utilization threshold, as a percent of the available memory.
|
void |
setThresholdsWaitTime(java.lang.Integer thresholdsWaitTime)
The amount of time, in minutes, that the load must exceed a threshold
before more instances are added or removed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AutoScalingThresholds |
withAlarms(java.util.Collection<java.lang.String> alarms)
Custom Cloudwatch auto scaling alarms, to be used as thresholds.
|
AutoScalingThresholds |
withAlarms(java.lang.String... alarms)
Custom Cloudwatch auto scaling alarms, to be used as thresholds.
|
AutoScalingThresholds |
withCpuThreshold(java.lang.Double cpuThreshold)
The CPU utilization threshold, as a percent of the available CPU.
|
AutoScalingThresholds |
withIgnoreMetricsTime(java.lang.Integer ignoreMetricsTime)
The amount of time (in minutes) after a scaling event occurs that AWS
OpsWorks should ignore metrics and suppress additional scaling events.
|
AutoScalingThresholds |
withInstanceCount(java.lang.Integer instanceCount)
The number of instances to add or remove when the load exceeds a
threshold.
|
AutoScalingThresholds |
withLoadThreshold(java.lang.Double loadThreshold)
The load threshold.
|
AutoScalingThresholds |
withMemoryThreshold(java.lang.Double memoryThreshold)
The memory utilization threshold, as a percent of the available memory.
|
AutoScalingThresholds |
withThresholdsWaitTime(java.lang.Integer thresholdsWaitTime)
The amount of time, in minutes, that the load must exceed a threshold
before more instances are added or removed.
|
private java.lang.Integer instanceCount
The number of instances to add or remove when the load exceeds a threshold.
private java.lang.Integer thresholdsWaitTime
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
private java.lang.Integer ignoreMetricsTime
The amount of time (in minutes) after a scaling event occurs that AWS
OpsWorks should ignore metrics and suppress additional scaling events.
For example, AWS OpsWorks 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 to
suppress scaling events long enough to get the new instances online.
private java.lang.Double cpuThreshold
The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
private java.lang.Double memoryThreshold
The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
private java.lang.Double loadThreshold
The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).
private SdkInternalList<java.lang.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.
cloudwatch:DescribeAlarms
. You can either have AWS OpsWorks
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 to Act on Your Behalf.public void setInstanceCount(java.lang.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 java.lang.Integer getInstanceCount()
The number of instances to add or remove when the load exceeds a threshold.
public AutoScalingThresholds withInstanceCount(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.Integer ignoreMetricsTime)
The amount of time (in minutes) after a scaling event occurs that AWS
OpsWorks should ignore metrics and suppress additional scaling events.
For example, AWS OpsWorks 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 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 should ignore metrics and suppress additional scaling
events. For example, AWS OpsWorks 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 to suppress scaling events long
enough to get the new instances online.public java.lang.Integer getIgnoreMetricsTime()
The amount of time (in minutes) after a scaling event occurs that AWS
OpsWorks should ignore metrics and suppress additional scaling events.
For example, AWS OpsWorks 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 to
suppress scaling events long enough to get the new instances online.
IgnoreMetricsTime
allows you to direct AWS OpsWorks
to suppress scaling events long enough to get the new instances
online.public AutoScalingThresholds withIgnoreMetricsTime(java.lang.Integer ignoreMetricsTime)
The amount of time (in minutes) after a scaling event occurs that AWS
OpsWorks should ignore metrics and suppress additional scaling events.
For example, AWS OpsWorks 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 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 should ignore metrics and suppress additional scaling
events. For example, AWS OpsWorks 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 to suppress scaling events long
enough to get the new instances online.public void setCpuThreshold(java.lang.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 java.lang.Double getCpuThreshold()
The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
public AutoScalingThresholds withCpuThreshold(java.lang.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(java.lang.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 java.lang.Double getMemoryThreshold()
The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
public AutoScalingThresholds withMemoryThreshold(java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.util.List<java.lang.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.
cloudwatch:DescribeAlarms
. You can either have AWS OpsWorks
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 to Act on Your Behalf.cloudwatch:DescribeAlarms
. You can either have
AWS OpsWorks 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 to Act on Your Behalf.public void setAlarms(java.util.Collection<java.lang.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.
cloudwatch:DescribeAlarms
. You can either have AWS OpsWorks
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 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.
cloudwatch:DescribeAlarms
. You can either have
AWS OpsWorks 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 to Act on Your Behalf.public AutoScalingThresholds withAlarms(java.lang.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.
cloudwatch:DescribeAlarms
. You can either have AWS OpsWorks
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 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.
cloudwatch:DescribeAlarms
. You can either have
AWS OpsWorks 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 to Act on Your Behalf.public AutoScalingThresholds withAlarms(java.util.Collection<java.lang.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.
cloudwatch:DescribeAlarms
. You can either have AWS OpsWorks
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 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.
cloudwatch:DescribeAlarms
. You can either have
AWS OpsWorks 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 to Act on Your Behalf.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AutoScalingThresholds clone()
clone
in class java.lang.Object