|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.opsworks.model.AutoScalingThresholds
public class AutoScalingThresholds
Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when OpsWorks starts or stops load-based instances.
Constructor Summary | |
---|---|
AutoScalingThresholds()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
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 OpsWorks should ignore metrics and not raise any 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 |
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 OpsWorks should ignore metrics and not raise any 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 |
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 OpsWorks should ignore metrics and not raise any 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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AutoScalingThresholds()
Method Detail |
---|
public java.lang.Integer getInstanceCount()
public void setInstanceCount(java.lang.Integer instanceCount)
instanceCount
- The number of instances to add or remove when the load exceeds a
threshold.public AutoScalingThresholds withInstanceCount(java.lang.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 java.lang.Integer getThresholdsWaitTime()
Constraints:
Range: 1 - 100
public void setThresholdsWaitTime(java.lang.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(java.lang.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 java.lang.Integer getIgnoreMetricsTime()
IgnoreMetricsTime
allows you to direct
OpsWorks to not raise any scaling events long enough to get the new
instances online.
Constraints:
Range: 1 - 100
IgnoreMetricsTime
allows you to direct
OpsWorks to not raise any scaling events long enough to get the new
instances online.public void setIgnoreMetricsTime(java.lang.Integer ignoreMetricsTime)
IgnoreMetricsTime
allows you to direct
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
OpsWorks should ignore metrics and not raise any additional scaling
events. For example, 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
OpsWorks to not raise any scaling events long enough to get the new
instances online.public AutoScalingThresholds withIgnoreMetricsTime(java.lang.Integer ignoreMetricsTime)
IgnoreMetricsTime
allows you to direct
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
OpsWorks should ignore metrics and not raise any additional scaling
events. For example, 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
OpsWorks to not raise any scaling events long enough to get the new
instances online.
public java.lang.Double getCpuThreshold()
public void setCpuThreshold(java.lang.Double cpuThreshold)
cpuThreshold
- The CPU utilization threshold, as a percent of the available CPU.public AutoScalingThresholds withCpuThreshold(java.lang.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 java.lang.Double getMemoryThreshold()
public void setMemoryThreshold(java.lang.Double memoryThreshold)
memoryThreshold
- The memory utilization threshold, as a percent of the available
memory.public AutoScalingThresholds withMemoryThreshold(java.lang.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 java.lang.Double getLoadThreshold()
public void setLoadThreshold(java.lang.Double loadThreshold)
loadThreshold
- The load threshold. For more information about how load is computed,
see Load
(computing).public AutoScalingThresholds withLoadThreshold(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |