public class AutoScalingThresholds extends Object implements Serializable, Cloneable
Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks 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 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 |
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 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 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 Integer getInstanceCount()
public void setInstanceCount(Integer instanceCount)
instanceCount
- The number of instances to add or remove when the load exceeds a
threshold.public AutoScalingThresholds withInstanceCount(Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount
- The number of instances to add or remove when the load exceeds a
threshold.public Integer getThresholdsWaitTime()
Constraints:
Range: 1 - 100
public void setThresholdsWaitTime(Integer thresholdsWaitTime)
Constraints:
Range: 1 - 100
thresholdsWaitTime
- 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)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 100
thresholdsWaitTime
- The amount of time, in minutes, that the load must exceed a threshold
before more instances are added or removed.public Integer getIgnoreMetricsTime()
IgnoreMetricsTime
allows you to direct AWS
OpsWorks to suppress scaling events long enough to get the new
instances online.
Constraints:
Range: 1 - 100
IgnoreMetricsTime
allows you to direct AWS
OpsWorks to suppress scaling events long enough to get the new
instances online.public void setIgnoreMetricsTime(Integer ignoreMetricsTime)
IgnoreMetricsTime
allows you to direct AWS
OpsWorks to suppress scaling events long enough to get the new
instances online.
Constraints:
Range: 1 - 100
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 AutoScalingThresholds withIgnoreMetricsTime(Integer ignoreMetricsTime)
IgnoreMetricsTime
allows you to direct AWS
OpsWorks to suppress scaling events long enough to get the new
instances online.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 100
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 Double getCpuThreshold()
public void setCpuThreshold(Double cpuThreshold)
cpuThreshold
- The CPU utilization threshold, as a percent of the available CPU.public AutoScalingThresholds withCpuThreshold(Double cpuThreshold)
Returns a reference to this object so that method calls can be chained together.
cpuThreshold
- The CPU utilization threshold, as a percent of the available CPU.public Double getMemoryThreshold()
public void setMemoryThreshold(Double memoryThreshold)
memoryThreshold
- The memory utilization threshold, as a percent of the available
memory.public AutoScalingThresholds withMemoryThreshold(Double memoryThreshold)
Returns a reference to this object so that method calls can be chained together.
memoryThreshold
- The memory utilization threshold, as a percent of the available
memory.public Double getLoadThreshold()
public void setLoadThreshold(Double loadThreshold)
loadThreshold
- The load threshold. For more information about how load is computed,
see Load
(computing).public AutoScalingThresholds withLoadThreshold(Double loadThreshold)
Returns a reference to this object so that method calls can be chained together.
loadThreshold
- The load threshold. For more information about how load is computed,
see Load
(computing).public List<String> getAlarms()
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(Collection<String> alarms)
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(String... alarms)
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.
Returns a reference to this object so that method calls can be chained together.
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(Collection<String> alarms)
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.Returns a reference to this object so that method calls can be chained together.
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 String toString()
toString
in class Object
Object.toString()
public AutoScalingThresholds clone()
Copyright © 2015. All rights reserved.