public class AutoScalingThresholds extends Object implements Serializable
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 |
---|---|
boolean |
equals(Object obj) |
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 not raise any 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 |
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 not raise any 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 |
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 not raise any 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 not raise any scaling events long enough to get the
new instances online.
Constraints:
Range: 1 - 100
IgnoreMetricsTime
allows you to direct
AWS OpsWorks to not raise any scaling events long enough to get the
new instances online.public void setIgnoreMetricsTime(Integer ignoreMetricsTime)
IgnoreMetricsTime
allows you to direct
AWS OpsWorks to not raise any 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 not raise any 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 not raise any scaling events long enough to get the
new instances online.public AutoScalingThresholds withIgnoreMetricsTime(Integer ignoreMetricsTime)
IgnoreMetricsTime
allows you to direct
AWS OpsWorks to not raise any 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 not raise any 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 not raise any 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 String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.