public class MetricAlarm
extends java.lang.Object
implements java.io.Serializable
The MetricAlarm data type represents an alarm. You can use PutMetricAlarm to create or update an alarm.
Constructor and Description |
---|
MetricAlarm() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getActionsEnabled()
Indicates whether actions should be executed during any changes to the
alarm's state.
|
java.util.List<java.lang.String> |
getAlarmActions()
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
java.lang.String |
getAlarmArn()
The Amazon Resource Name (ARN) of the alarm.
|
java.util.Date |
getAlarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
|
java.lang.String |
getAlarmDescription()
The description for the alarm.
|
java.lang.String |
getAlarmName()
The name of the alarm.
|
java.lang.String |
getComparisonOperator()
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
java.util.List<Dimension> |
getDimensions()
The list of dimensions associated with the alarm's associated metric.
|
java.lang.Integer |
getEvaluationPeriods()
The number of periods over which data is compared to the specified
threshold.
|
java.util.List<java.lang.String> |
getInsufficientDataActions()
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
java.lang.String |
getMetricName()
The name of the alarm's metric.
|
java.lang.String |
getNamespace()
The namespace of alarm's associated metric.
|
java.util.List<java.lang.String> |
getOKActions()
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
java.lang.Integer |
getPeriod()
The period in seconds over which the statistic is applied.
|
java.lang.String |
getStateReason()
A human-readable explanation for the alarm's state.
|
java.lang.String |
getStateReasonData()
An explanation for the alarm's state in machine-readable JSON format
|
java.util.Date |
getStateUpdatedTimestamp()
The time stamp of the last update to the alarm's state.
|
java.lang.String |
getStateValue()
The state value for the alarm.
|
java.lang.String |
getStatistic()
The statistic to apply to the alarm's associated metric.
|
java.lang.Double |
getThreshold()
The value against which the specified statistic is compared.
|
java.lang.String |
getUnit()
The unit of the alarm's associated metric.
|
int |
hashCode() |
java.lang.Boolean |
isActionsEnabled()
Indicates whether actions should be executed during any changes to the
alarm's state.
|
void |
setActionsEnabled(java.lang.Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the
alarm's state.
|
void |
setAlarmActions(java.util.Collection<java.lang.String> alarmActions)
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
void |
setAlarmArn(java.lang.String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
|
void |
setAlarmConfigurationUpdatedTimestamp(java.util.Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
|
void |
setAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
|
void |
setAlarmName(java.lang.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(java.lang.String comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
void |
setDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the alarm's associated metric.
|
void |
setEvaluationPeriods(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified
threshold.
|
void |
setInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
void |
setMetricName(java.lang.String metricName)
The name of the alarm's metric.
|
void |
setNamespace(java.lang.String namespace)
The namespace of alarm's associated metric.
|
void |
setOKActions(java.util.Collection<java.lang.String> oKActions)
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
void |
setPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
|
void |
setStateReason(java.lang.String stateReason)
A human-readable explanation for the alarm's state.
|
void |
setStateReasonData(java.lang.String stateReasonData)
An explanation for the alarm's state in machine-readable JSON format
|
void |
setStateUpdatedTimestamp(java.util.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(java.lang.String stateValue)
The state value for the alarm.
|
void |
setStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric.
|
void |
setStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
|
void |
setThreshold(java.lang.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(java.lang.String unit)
The unit of the alarm's associated metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricAlarm |
withActionsEnabled(java.lang.Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the
alarm's state.
|
MetricAlarm |
withAlarmActions(java.util.Collection<java.lang.String> alarmActions)
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
MetricAlarm |
withAlarmActions(java.lang.String... alarmActions)
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
MetricAlarm |
withAlarmArn(java.lang.String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
|
MetricAlarm |
withAlarmConfigurationUpdatedTimestamp(java.util.Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
|
MetricAlarm |
withAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
|
MetricAlarm |
withAlarmName(java.lang.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(java.lang.String comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
MetricAlarm |
withDimensions(java.util.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(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified
threshold.
|
MetricAlarm |
withInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
MetricAlarm |
withInsufficientDataActions(java.lang.String... insufficientDataActions)
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
MetricAlarm |
withMetricName(java.lang.String metricName)
The name of the alarm's metric.
|
MetricAlarm |
withNamespace(java.lang.String namespace)
The namespace of alarm's associated metric.
|
MetricAlarm |
withOKActions(java.util.Collection<java.lang.String> oKActions)
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
MetricAlarm |
withOKActions(java.lang.String... oKActions)
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
MetricAlarm |
withPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
|
MetricAlarm |
withStateReason(java.lang.String stateReason)
A human-readable explanation for the alarm's state.
|
MetricAlarm |
withStateReasonData(java.lang.String stateReasonData)
An explanation for the alarm's state in machine-readable JSON format
|
MetricAlarm |
withStateUpdatedTimestamp(java.util.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(java.lang.String stateValue)
The state value for the alarm.
|
MetricAlarm |
withStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric.
|
MetricAlarm |
withStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
|
MetricAlarm |
withThreshold(java.lang.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(java.lang.String unit)
The unit of the alarm's associated metric.
|
public java.lang.String getAlarmName()
The name of the alarm.
Constraints:
Length: 1 - 255
The name of the alarm.
public void setAlarmName(java.lang.String alarmName)
The name of the alarm.
Constraints:
Length: 1 - 255
alarmName
- The name of the alarm.
public MetricAlarm withAlarmName(java.lang.String alarmName)
The name of the alarm.
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 java.lang.String getAlarmArn()
The Amazon Resource Name (ARN) of the alarm.
Constraints:
Length: 1 - 1600
The Amazon Resource Name (ARN) of the alarm.
public void setAlarmArn(java.lang.String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
Constraints:
Length: 1 - 1600
alarmArn
- The Amazon Resource Name (ARN) of the alarm.
public MetricAlarm withAlarmArn(java.lang.String alarmArn)
The Amazon Resource Name (ARN) of the alarm.
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 java.lang.String getAlarmDescription()
The description for the alarm.
Constraints:
Length: 0 - 1024
The description for the alarm.
public void setAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
Constraints:
Length: 0 - 1024
alarmDescription
- The description for the alarm.
public MetricAlarm withAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
alarmDescription
- The description for the alarm.
public java.util.Date getAlarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
The time stamp of the last update to the alarm configuration.
public void setAlarmConfigurationUpdatedTimestamp(java.util.Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
alarmConfigurationUpdatedTimestamp
- The time stamp of the last update to the alarm configuration.
public MetricAlarm withAlarmConfigurationUpdatedTimestamp(java.util.Date alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
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 java.lang.Boolean isActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm's state.
Indicates whether actions should be executed during any changes to the alarm's state.
public java.lang.Boolean getActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm's state.
Indicates whether actions should be executed during any changes to the alarm's state.
public void setActionsEnabled(java.lang.Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm's state.
actionsEnabled
- Indicates whether actions should be executed during any changes to the alarm's state.
public MetricAlarm withActionsEnabled(java.lang.Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm's state.
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 java.util.List<java.lang.String> getOKActions()
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 Name (ARN).
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 Name (ARN).
public void setOKActions(java.util.Collection<java.lang.String> 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 Name (ARN).
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 Name (ARN).
public MetricAlarm withOKActions(java.lang.String... 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 Name (ARN).
Returns a reference to this object so that method calls can be chained together.
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 Name (ARN).
public MetricAlarm withOKActions(java.util.Collection<java.lang.String> 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 Name (ARN).
Returns a reference to this object so that method calls can be chained together.
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 Name (ARN).
public java.util.List<java.lang.String> getAlarmActions()
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 Name (ARN).
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 Name (ARN).
public void setAlarmActions(java.util.Collection<java.lang.String> 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 Name (ARN).
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 Name (ARN).
public MetricAlarm withAlarmActions(java.lang.String... 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 Name (ARN).
Returns a reference to this object so that method calls can be chained together.
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 Name (ARN).
public MetricAlarm withAlarmActions(java.util.Collection<java.lang.String> 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 Name (ARN).
Returns a reference to this object so that method calls can be chained together.
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 Name (ARN).
public java.util.List<java.lang.String> getInsufficientDataActions()
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 Name (ARN).
UnknownActions
.
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 Name (ARN).
UnknownActions
.public void setInsufficientDataActions(java.util.Collection<java.lang.String> 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 Name (ARN).
UnknownActions
.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 Name
(ARN).
UnknownActions
.public MetricAlarm withInsufficientDataActions(java.lang.String... 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 Name (ARN).
UnknownActions
.Returns a reference to this object so that method calls can be chained together.
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 Name
(ARN).
UnknownActions
.public MetricAlarm withInsufficientDataActions(java.util.Collection<java.lang.String> 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 Name (ARN).
UnknownActions
.Returns a reference to this object so that method calls can be chained together.
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 Name
(ARN).
UnknownActions
.public java.lang.String getStateValue()
The state value for the alarm.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
The state value for the alarm.
StateValue
public void setStateValue(java.lang.String stateValue)
The state value for the alarm.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value for the alarm.
StateValue
public MetricAlarm withStateValue(java.lang.String stateValue)
The state value for the alarm.
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)
The state value for the alarm.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value for the alarm.
StateValue
public MetricAlarm withStateValue(StateValue stateValue)
The state value for the alarm.
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 java.lang.String getStateReason()
A human-readable explanation for the alarm's state.
Constraints:
Length: 0 - 1023
A human-readable explanation for the alarm's state.
public void setStateReason(java.lang.String stateReason)
A human-readable explanation for the alarm's state.
Constraints:
Length: 0 - 1023
stateReason
- A human-readable explanation for the alarm's state.
public MetricAlarm withStateReason(java.lang.String stateReason)
A human-readable explanation for the alarm's state.
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 java.lang.String getStateReasonData()
An explanation for the alarm's state in machine-readable JSON format
Constraints:
Length: 0 - 4000
An explanation for the alarm's state in machine-readable JSON format
public void setStateReasonData(java.lang.String stateReasonData)
An explanation for the alarm's state in machine-readable JSON format
Constraints:
Length: 0 - 4000
stateReasonData
- An explanation for the alarm's state in machine-readable JSON format
public MetricAlarm withStateReasonData(java.lang.String stateReasonData)
An explanation for the alarm's state in machine-readable JSON format
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 java.util.Date getStateUpdatedTimestamp()
The time stamp of the last update to the alarm's state.
The time stamp of the last update to the alarm's state.
public void setStateUpdatedTimestamp(java.util.Date stateUpdatedTimestamp)
The time stamp of the last update to the alarm's state.
stateUpdatedTimestamp
- The time stamp of the last update to the alarm's state.
public MetricAlarm withStateUpdatedTimestamp(java.util.Date stateUpdatedTimestamp)
The time stamp of the last update to the alarm's state.
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 java.lang.String getMetricName()
The name of the alarm's metric.
Constraints:
Length: 1 - 255
The name of the alarm's metric.
public void setMetricName(java.lang.String metricName)
The name of the alarm's metric.
Constraints:
Length: 1 - 255
metricName
- The name of the alarm's metric.
public MetricAlarm withMetricName(java.lang.String metricName)
The name of the alarm's metric.
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 java.lang.String getNamespace()
The namespace of alarm's associated metric.
Constraints:
Length: 1 - 255
Pattern: [^:].*
The namespace of alarm's associated metric.
public void setNamespace(java.lang.String namespace)
The namespace of alarm's associated metric.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace of alarm's associated metric.
public MetricAlarm withNamespace(java.lang.String namespace)
The namespace of alarm's associated metric.
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 java.lang.String getStatistic()
The statistic to apply to the alarm's associated metric.
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
The statistic to apply to the alarm's associated metric.
Statistic
public void setStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
statistic
- The statistic to apply to the alarm's associated metric.
Statistic
public MetricAlarm withStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
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)
The statistic to apply to the alarm's associated metric.
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)
The statistic to apply to the alarm's associated metric.
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 java.util.List<Dimension> getDimensions()
The list of dimensions associated with the alarm's associated metric.
The list of dimensions associated with the alarm's associated metric.
public void setDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the alarm's associated metric.
dimensions
- The list of dimensions associated with the alarm's associated metric.
public MetricAlarm withDimensions(Dimension... dimensions)
The list of dimensions associated with the alarm's associated metric.
Returns a reference to this object so that method calls can be chained together.
dimensions
- The list of dimensions associated with the alarm's associated metric.
public MetricAlarm withDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the alarm's associated metric.
Returns a reference to this object so that method calls can be chained together.
dimensions
- The list of dimensions associated with the alarm's associated metric.
public java.lang.Integer getPeriod()
The period in seconds over which the statistic is applied.
Constraints:
Range: 60 -
The period in seconds over which the statistic is applied.
public void setPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
Constraints:
Range: 60 -
period
- The period in seconds over which the statistic is applied.
public MetricAlarm withPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
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 java.lang.String getUnit()
The unit of the alarm's associated metric.
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
The unit of the alarm's associated metric.
StandardUnit
public void setUnit(java.lang.String unit)
The unit of the alarm's associated metric.
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(java.lang.String unit)
The unit of the alarm's associated metric.
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)
The unit of the alarm's associated metric.
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)
The unit of the alarm's associated metric.
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 java.lang.Integer getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold.
Constraints:
Range: 1 -
The number of periods over which data is compared to the specified threshold.
public void setEvaluationPeriods(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
Constraints:
Range: 1 -
evaluationPeriods
- The number of periods over which data is compared to the specified threshold.
public MetricAlarm withEvaluationPeriods(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
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 java.lang.Double getThreshold()
The value against which the specified statistic is compared.
The value against which the specified statistic is compared.
public void setThreshold(java.lang.Double threshold)
The value against which the specified statistic is compared.
threshold
- The value against which the specified statistic is compared.
public MetricAlarm withThreshold(java.lang.Double threshold)
The value against which the specified statistic is compared.
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 java.lang.String getComparisonOperator()
The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
Constraints:
Allowed Values: GreaterThanOrEqualToThreshold,
GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold
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(java.lang.String comparisonOperator)
The arithmetic operation to use when comparing the specified
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(java.lang.String comparisonOperator)
The arithmetic operation to use when comparing the specified
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)
The arithmetic operation to use when comparing the specified
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)
The arithmetic operation to use when comparing the specified
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 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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.