|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.cloudwatch.model.MetricAlarm
public class MetricAlarm
The MetricAlarm data type represents an alarm. You can use PutMetricAlarm to create or update an alarm.
Constructor Summary | |
---|---|
MetricAlarm()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Boolean |
getActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm's state. |
List<String> |
getAlarmActions()
The list of actions to execute when this alarm transitions into an ALARM state from any other state. |
String |
getAlarmArn()
The Amazon Resource Name (ARN) of the alarm. |
Date |
getAlarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration. |
String |
getAlarmDescription()
The description for the alarm. |
String |
getAlarmName()
The name of the alarm. |
String |
getComparisonOperator()
The arithmetic operation to use when comparing the specified Statistic and Threshold . |
List<Dimension> |
getDimensions()
The list of dimensions associated with the alarm's associated metric. |
Integer |
getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold. |
List<String> |
getInsufficientDataActions()
The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. |
String |
getMetricName()
The name of the alarm's metric. |
String |
getNamespace()
The namespace of alarm's associated metric. |
List<String> |
getOKActions()
The list of actions to execute when this alarm transitions into an OK state from any other state. |
Integer |
getPeriod()
The period in seconds over which the statistic is applied. |
String |
getStateReason()
A human-readable explanation for the alarm's state. |
String |
getStateReasonData()
An explanation for the alarm's state in machine-readable JSON format |
Date |
getStateUpdatedTimestamp()
The time stamp of the last update to the alarm's state. |
String |
getStateValue()
The state value for the alarm. |
String |
getStatistic()
The statistic to apply to the alarm's associated metric. |
Double |
getThreshold()
The value against which the specified statistic is compared. |
String |
getUnit()
The unit of the alarm's associated metric. |
int |
hashCode()
|
Boolean |
isActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm's state. |
void |
setActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm's state. |
void |
setAlarmActions(Collection<String> alarmActions)
The list of actions to execute when this alarm transitions into an ALARM state from any other state. |
void |
setAlarmArn(String alarmArn)
The Amazon Resource Name (ARN) of the alarm. |
void |
setAlarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration. |
void |
setAlarmDescription(String alarmDescription)
The description for the alarm. |
void |
setAlarmName(String alarmName)
The name of the alarm. |
void |
setComparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified Statistic and Threshold . |
void |
setComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified Statistic and Threshold . |
void |
setDimensions(Collection<Dimension> dimensions)
The list of dimensions associated with the alarm's associated metric. |
void |
setEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold. |
void |
setInsufficientDataActions(Collection<String> insufficientDataActions)
The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. |
void |
setMetricName(String metricName)
The name of the alarm's metric. |
void |
setNamespace(String namespace)
The namespace of alarm's associated metric. |
void |
setOKActions(Collection<String> oKActions)
The list of actions to execute when this alarm transitions into an OK state from any other state. |
void |
setPeriod(Integer period)
The period in seconds over which the statistic is applied. |
void |
setStateReason(String stateReason)
A human-readable explanation for the alarm's state. |
void |
setStateReasonData(String stateReasonData)
An explanation for the alarm's state in machine-readable JSON format |
void |
setStateUpdatedTimestamp(Date stateUpdatedTimestamp)
The time stamp of the last update to the alarm's state. |
void |
setStateValue(StateValue stateValue)
The state value for the alarm. |
void |
setStateValue(String stateValue)
The state value for the alarm. |
void |
setStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric. |
void |
setStatistic(String statistic)
The statistic to apply to the alarm's associated metric. |
void |
setThreshold(Double threshold)
The value against which the specified statistic is compared. |
void |
setUnit(StandardUnit unit)
The unit of the alarm's associated metric. |
void |
setUnit(String unit)
The unit of the alarm's associated metric. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
MetricAlarm |
withActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm's state. |
MetricAlarm |
withAlarmActions(Collection<String> alarmActions)
The list of actions to execute when this alarm transitions into an ALARM state from any other state. |
MetricAlarm |
withAlarmActions(String... alarmActions)
The list of actions to execute when this alarm transitions into an ALARM state from any other state. |
MetricAlarm |
withAlarmArn(String alarmArn)
The Amazon Resource Name (ARN) of the alarm. |
MetricAlarm |
withAlarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration. |
MetricAlarm |
withAlarmDescription(String alarmDescription)
The description for the alarm. |
MetricAlarm |
withAlarmName(String alarmName)
The name of the alarm. |
MetricAlarm |
withComparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified Statistic and Threshold . |
MetricAlarm |
withComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified Statistic and Threshold . |
MetricAlarm |
withDimensions(Collection<Dimension> dimensions)
The list of dimensions associated with the alarm's associated metric. |
MetricAlarm |
withDimensions(Dimension... dimensions)
The list of dimensions associated with the alarm's associated metric. |
MetricAlarm |
withEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold. |
MetricAlarm |
withInsufficientDataActions(Collection<String> insufficientDataActions)
The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. |
MetricAlarm |
withInsufficientDataActions(String... insufficientDataActions)
The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. |
MetricAlarm |
withMetricName(String metricName)
The name of the alarm's metric. |
MetricAlarm |
withNamespace(String namespace)
The namespace of alarm's associated metric. |
MetricAlarm |
withOKActions(Collection<String> oKActions)
The list of actions to execute when this alarm transitions into an OK state from any other state. |
MetricAlarm |
withOKActions(String... oKActions)
The list of actions to execute when this alarm transitions into an OK state from any other state. |
MetricAlarm |
withPeriod(Integer period)
The period in seconds over which the statistic is applied. |
MetricAlarm |
withStateReason(String stateReason)
A human-readable explanation for the alarm's state. |
MetricAlarm |
withStateReasonData(String stateReasonData)
An explanation for the alarm's state in machine-readable JSON format |
MetricAlarm |
withStateUpdatedTimestamp(Date stateUpdatedTimestamp)
The time stamp of the last update to the alarm's state. |
MetricAlarm |
withStateValue(StateValue stateValue)
The state value for the alarm. |
MetricAlarm |
withStateValue(String stateValue)
The state value for the alarm. |
MetricAlarm |
withStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric. |
MetricAlarm |
withStatistic(String statistic)
The statistic to apply to the alarm's associated metric. |
MetricAlarm |
withThreshold(Double threshold)
The value against which the specified statistic is compared. |
MetricAlarm |
withUnit(StandardUnit unit)
The unit of the alarm's associated metric. |
MetricAlarm |
withUnit(String unit)
The unit of the alarm's associated metric. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MetricAlarm()
Method Detail |
---|
public String getAlarmName()
Constraints:
Length: 1 - 255
public void setAlarmName(String alarmName)
Constraints:
Length: 1 - 255
alarmName
- The name of the alarm.public MetricAlarm withAlarmName(String alarmName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
alarmName
- The name of the alarm.
public String getAlarmArn()
Constraints:
Length: 1 - 1600
public void setAlarmArn(String alarmArn)
Constraints:
Length: 1 - 1600
alarmArn
- The Amazon Resource Name (ARN) of the alarm.public MetricAlarm withAlarmArn(String alarmArn)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
alarmArn
- The Amazon Resource Name (ARN) of the alarm.
public String getAlarmDescription()
Constraints:
Length: 0 - 255
public void setAlarmDescription(String alarmDescription)
Constraints:
Length: 0 - 255
alarmDescription
- The description for the alarm.public MetricAlarm withAlarmDescription(String alarmDescription)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 255
alarmDescription
- The description for the alarm.
public Date getAlarmConfigurationUpdatedTimestamp()
public void setAlarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp)
alarmConfigurationUpdatedTimestamp
- The time stamp of the last update to the alarm configuration.public MetricAlarm withAlarmConfigurationUpdatedTimestamp(Date alarmConfigurationUpdatedTimestamp)
Returns a reference to this object so that method calls can be chained together.
alarmConfigurationUpdatedTimestamp
- The time stamp of the last update to the alarm configuration.
public Boolean isActionsEnabled()
public void setActionsEnabled(Boolean actionsEnabled)
actionsEnabled
- Indicates whether actions should be executed during any changes to the
alarm's state.public MetricAlarm withActionsEnabled(Boolean actionsEnabled)
Returns a reference to this object so that method calls can be chained together.
actionsEnabled
- Indicates whether actions should be executed during any changes to the
alarm's state.
public Boolean getActionsEnabled()
public List<String> getOKActions()
OK
state from any other state. Each action is specified
as an Amazon Resource Number (ARN). Currently the only actions
supported are publishing to an Amazon SNS topic and triggering an Auto
Scaling policy.
Constraints:
Length: 0 - 5
OK
state from any other state. Each action is specified
as an Amazon Resource Number (ARN). Currently the only actions
supported are publishing to an Amazon SNS topic and triggering an Auto
Scaling policy.public void setOKActions(Collection<String> oKActions)
OK
state from any other state. Each action is specified
as an Amazon Resource Number (ARN). Currently the only actions
supported are publishing to an Amazon SNS topic and triggering an Auto
Scaling policy.
Constraints:
Length: 0 - 5
oKActions
- The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is specified
as an Amazon Resource Number (ARN). Currently the only actions
supported are publishing to an Amazon SNS topic and triggering an Auto
Scaling policy.public MetricAlarm withOKActions(String... oKActions)
OK
state from any other state. Each action is specified
as an Amazon Resource Number (ARN). Currently the only actions
supported are publishing to an Amazon SNS topic and triggering an Auto
Scaling policy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
oKActions
- The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is specified
as an Amazon Resource Number (ARN). Currently the only actions
supported are publishing to an Amazon SNS topic and triggering an Auto
Scaling policy.
public MetricAlarm withOKActions(Collection<String> oKActions)
OK
state from any other state. Each action is specified
as an Amazon Resource Number (ARN). Currently the only actions
supported are publishing to an Amazon SNS topic and triggering an Auto
Scaling policy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
oKActions
- The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is specified
as an Amazon Resource Number (ARN). Currently the only actions
supported are publishing to an Amazon SNS topic and triggering an Auto
Scaling policy.
public List<String> getAlarmActions()
ALARM
state from any other state. Each action is
specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic and triggering
an Auto Scaling policy.
Constraints:
Length: 0 - 5
ALARM
state from any other state. Each action is
specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic and triggering
an Auto Scaling policy.public void setAlarmActions(Collection<String> alarmActions)
ALARM
state from any other state. Each action is
specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic and triggering
an Auto Scaling policy.
Constraints:
Length: 0 - 5
alarmActions
- The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is
specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic and triggering
an Auto Scaling policy.public MetricAlarm withAlarmActions(String... alarmActions)
ALARM
state from any other state. Each action is
specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic and triggering
an Auto Scaling policy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
alarmActions
- The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is
specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic and triggering
an Auto Scaling policy.
public MetricAlarm withAlarmActions(Collection<String> alarmActions)
ALARM
state from any other state. Each action is
specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic and triggering
an Auto Scaling policy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
alarmActions
- The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is
specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic and triggering
an Auto Scaling policy.
public List<String> getInsufficientDataActions()
INSUFFICIENT_DATA
state from any other state. Each action
is specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic or triggering
an Auto Scaling policy.
Constraints:
Length: 0 - 5
INSUFFICIENT_DATA
state from any other state. Each action
is specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic or triggering
an Auto Scaling policy.public void setInsufficientDataActions(Collection<String> insufficientDataActions)
INSUFFICIENT_DATA
state from any other state. Each action
is specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic or triggering
an Auto Scaling policy.
Constraints:
Length: 0 - 5
insufficientDataActions
- The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each action
is specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic or triggering
an Auto Scaling policy.public MetricAlarm withInsufficientDataActions(String... insufficientDataActions)
INSUFFICIENT_DATA
state from any other state. Each action
is specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic or triggering
an Auto Scaling policy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
insufficientDataActions
- The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each action
is specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic or triggering
an Auto Scaling policy.
public MetricAlarm withInsufficientDataActions(Collection<String> insufficientDataActions)
INSUFFICIENT_DATA
state from any other state. Each action
is specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic or triggering
an Auto Scaling policy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
insufficientDataActions
- The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each action
is specified as an Amazon Resource Number (ARN). Currently the only
actions supported are publishing to an Amazon SNS topic or triggering
an Auto Scaling policy.
public String getStateValue()
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
StateValue
public void setStateValue(String stateValue)
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value for the alarm.StateValue
public MetricAlarm withStateValue(String stateValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value for the alarm.
StateValue
public void setStateValue(StateValue stateValue)
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value for the alarm.StateValue
public MetricAlarm withStateValue(StateValue stateValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value for the alarm.
StateValue
public String getStateReason()
Constraints:
Length: 0 - 1023
public void setStateReason(String stateReason)
Constraints:
Length: 0 - 1023
stateReason
- A human-readable explanation for the alarm's state.public MetricAlarm withStateReason(String stateReason)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1023
stateReason
- A human-readable explanation for the alarm's state.
public String getStateReasonData()
Constraints:
Length: 0 - 4000
public void setStateReasonData(String stateReasonData)
Constraints:
Length: 0 - 4000
stateReasonData
- An explanation for the alarm's state in machine-readable JSON formatpublic MetricAlarm withStateReasonData(String stateReasonData)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 4000
stateReasonData
- An explanation for the alarm's state in machine-readable JSON format
public Date getStateUpdatedTimestamp()
public void setStateUpdatedTimestamp(Date stateUpdatedTimestamp)
stateUpdatedTimestamp
- The time stamp of the last update to the alarm's state.public MetricAlarm withStateUpdatedTimestamp(Date stateUpdatedTimestamp)
Returns a reference to this object so that method calls can be chained together.
stateUpdatedTimestamp
- The time stamp of the last update to the alarm's state.
public String getMetricName()
Constraints:
Length: 1 - 255
public void setMetricName(String metricName)
Constraints:
Length: 1 - 255
metricName
- The name of the alarm's metric.public MetricAlarm withMetricName(String metricName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
metricName
- The name of the alarm's metric.
public String getNamespace()
Constraints:
Length: 1 - 255
Pattern: [^:].*
public void setNamespace(String namespace)
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace of alarm's associated metric.public MetricAlarm withNamespace(String namespace)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace of alarm's associated metric.
public String getStatistic()
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
Statistic
public void setStatistic(String statistic)
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public MetricAlarm withStatistic(String statistic)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
statistic
- The statistic to apply to the alarm's associated metric.
Statistic
public void setStatistic(Statistic statistic)
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public MetricAlarm withStatistic(Statistic statistic)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
statistic
- The statistic to apply to the alarm's associated metric.
Statistic
public List<Dimension> getDimensions()
Constraints:
Length: 0 - 10
public void setDimensions(Collection<Dimension> dimensions)
Constraints:
Length: 0 - 10
dimensions
- The list of dimensions associated with the alarm's associated metric.public MetricAlarm withDimensions(Dimension... dimensions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
dimensions
- The list of dimensions associated with the alarm's associated metric.
public MetricAlarm withDimensions(Collection<Dimension> dimensions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
dimensions
- The list of dimensions associated with the alarm's associated metric.
public Integer getPeriod()
Constraints:
Range: 60 -
public void setPeriod(Integer period)
Constraints:
Range: 60 -
period
- The period in seconds over which the statistic is applied.public MetricAlarm withPeriod(Integer period)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 60 -
period
- The period in seconds over which the statistic is applied.
public String getUnit()
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
StandardUnit
public void setUnit(String unit)
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
unit
- The unit of the alarm's associated metric.StandardUnit
public MetricAlarm withUnit(String unit)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
unit
- The unit of the alarm's associated metric.
StandardUnit
public void setUnit(StandardUnit unit)
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
unit
- The unit of the alarm's associated metric.StandardUnit
public MetricAlarm withUnit(StandardUnit unit)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
unit
- The unit of the alarm's associated metric.
StandardUnit
public Integer getEvaluationPeriods()
Constraints:
Range: 1 -
public void setEvaluationPeriods(Integer evaluationPeriods)
Constraints:
Range: 1 -
evaluationPeriods
- The number of periods over which data is compared to the specified
threshold.public MetricAlarm withEvaluationPeriods(Integer evaluationPeriods)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
evaluationPeriods
- The number of periods over which data is compared to the specified
threshold.
public Double getThreshold()
public void setThreshold(Double threshold)
threshold
- The value against which the specified statistic is compared.public MetricAlarm withThreshold(Double threshold)
Returns a reference to this object so that method calls can be chained together.
threshold
- The value against which the specified statistic is compared.
public String getComparisonOperator()
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
Constraints:
Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
public void setComparisonOperator(String comparisonOperator)
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
Constraints:
Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
public MetricAlarm withComparisonOperator(String comparisonOperator)
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
ComparisonOperator
public void setComparisonOperator(ComparisonOperator comparisonOperator)
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
Constraints:
Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
public MetricAlarm withComparisonOperator(ComparisonOperator comparisonOperator)
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
ComparisonOperator
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |