@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsCloudWatchAlarmDetails extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an alarm and associates it with the specified metric or metric math expression.
Constructor and Description |
---|
AwsCloudWatchAlarmDetails() |
Modifier and Type | Method and Description |
---|---|
AwsCloudWatchAlarmDetails |
clone() |
boolean |
equals(Object obj) |
Boolean |
getActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
|
List<String> |
getAlarmActions()
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM state from any other state. |
String |
getAlarmArn()
The ARN of the alarm.
|
String |
getAlarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
|
String |
getAlarmDescription()
The description of the alarm.
|
String |
getAlarmName()
The name of the alarm.
|
String |
getComparisonOperator()
The arithmetic operation to use when comparing the specified statistic and threshold.
|
Integer |
getDatapointsToAlarm()
The number of datapoints that must be breaching to trigger the alarm.
|
List<AwsCloudWatchAlarmDimensionsDetails> |
getDimensions()
The dimensions for the metric associated with the alarm.
|
String |
getEvaluateLowSampleCountPercentile()
Used only for alarms based on percentiles.
|
Integer |
getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold.
|
String |
getExtendedStatistic()
The percentile statistic for the metric associated with the alarm.
|
List<String> |
getInsufficientDataActions()
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA state from any other
state. |
String |
getMetricName()
The name of the metric associated with the alarm.
|
String |
getNamespace()
The namespace of the metric associated with the alarm.
|
List<String> |
getOkActions()
The actions to execute when this alarm transitions to the
OK state from any other state. |
Integer |
getPeriod()
The period, in seconds, over which the statistic is applied.
|
String |
getStatistic()
The statistic for the metric associated with the alarm, other than percentile.
|
Double |
getThreshold()
The value to compare with the specified statistic.
|
String |
getThresholdMetricId()
n an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm. |
String |
getTreatMissingData()
Sets how this alarm is to handle missing data points.
|
String |
getUnit()
The unit of the metric associated with the alarm.
|
int |
hashCode() |
Boolean |
isActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state.
|
void |
setAlarmActions(Collection<String> alarmActions)
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM state from any other state. |
void |
setAlarmArn(String alarmArn)
The ARN of the alarm.
|
void |
setAlarmConfigurationUpdatedTimestamp(String alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
|
void |
setAlarmDescription(String alarmDescription)
The description of the alarm.
|
void |
setAlarmName(String alarmName)
The name of the alarm.
|
void |
setComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified statistic and threshold.
|
void |
setDatapointsToAlarm(Integer datapointsToAlarm)
The number of datapoints that must be breaching to trigger the alarm.
|
void |
setDimensions(Collection<AwsCloudWatchAlarmDimensionsDetails> dimensions)
The dimensions for the metric associated with the alarm.
|
void |
setEvaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile)
Used only for alarms based on percentiles.
|
void |
setEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
|
void |
setExtendedStatistic(String extendedStatistic)
The percentile statistic for the metric associated with the alarm.
|
void |
setInsufficientDataActions(Collection<String> insufficientDataActions)
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA state from any other
state. |
void |
setMetricName(String metricName)
The name of the metric associated with the alarm.
|
void |
setNamespace(String namespace)
The namespace of the metric associated with the alarm.
|
void |
setOkActions(Collection<String> okActions)
The actions to execute when this alarm transitions to the
OK state from any other state. |
void |
setPeriod(Integer period)
The period, in seconds, over which the statistic is applied.
|
void |
setStatistic(String statistic)
The statistic for the metric associated with the alarm, other than percentile.
|
void |
setThreshold(Double threshold)
The value to compare with the specified statistic.
|
void |
setThresholdMetricId(String thresholdMetricId)
n an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm. |
void |
setTreatMissingData(String treatMissingData)
Sets how this alarm is to handle missing data points.
|
void |
setUnit(String unit)
The unit of the metric associated with the alarm.
|
String |
toString()
Returns a string representation of this object.
|
AwsCloudWatchAlarmDetails |
withActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state.
|
AwsCloudWatchAlarmDetails |
withAlarmActions(Collection<String> alarmActions)
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM state from any other state. |
AwsCloudWatchAlarmDetails |
withAlarmActions(String... alarmActions)
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM state from any other state. |
AwsCloudWatchAlarmDetails |
withAlarmArn(String alarmArn)
The ARN of the alarm.
|
AwsCloudWatchAlarmDetails |
withAlarmConfigurationUpdatedTimestamp(String alarmConfigurationUpdatedTimestamp)
The time stamp of the last update to the alarm configuration.
|
AwsCloudWatchAlarmDetails |
withAlarmDescription(String alarmDescription)
The description of the alarm.
|
AwsCloudWatchAlarmDetails |
withAlarmName(String alarmName)
The name of the alarm.
|
AwsCloudWatchAlarmDetails |
withComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified statistic and threshold.
|
AwsCloudWatchAlarmDetails |
withDatapointsToAlarm(Integer datapointsToAlarm)
The number of datapoints that must be breaching to trigger the alarm.
|
AwsCloudWatchAlarmDetails |
withDimensions(AwsCloudWatchAlarmDimensionsDetails... dimensions)
The dimensions for the metric associated with the alarm.
|
AwsCloudWatchAlarmDetails |
withDimensions(Collection<AwsCloudWatchAlarmDimensionsDetails> dimensions)
The dimensions for the metric associated with the alarm.
|
AwsCloudWatchAlarmDetails |
withEvaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile)
Used only for alarms based on percentiles.
|
AwsCloudWatchAlarmDetails |
withEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
|
AwsCloudWatchAlarmDetails |
withExtendedStatistic(String extendedStatistic)
The percentile statistic for the metric associated with the alarm.
|
AwsCloudWatchAlarmDetails |
withInsufficientDataActions(Collection<String> insufficientDataActions)
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA state from any other
state. |
AwsCloudWatchAlarmDetails |
withInsufficientDataActions(String... insufficientDataActions)
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA state from any other
state. |
AwsCloudWatchAlarmDetails |
withMetricName(String metricName)
The name of the metric associated with the alarm.
|
AwsCloudWatchAlarmDetails |
withNamespace(String namespace)
The namespace of the metric associated with the alarm.
|
AwsCloudWatchAlarmDetails |
withOkActions(Collection<String> okActions)
The actions to execute when this alarm transitions to the
OK state from any other state. |
AwsCloudWatchAlarmDetails |
withOkActions(String... okActions)
The actions to execute when this alarm transitions to the
OK state from any other state. |
AwsCloudWatchAlarmDetails |
withPeriod(Integer period)
The period, in seconds, over which the statistic is applied.
|
AwsCloudWatchAlarmDetails |
withStatistic(String statistic)
The statistic for the metric associated with the alarm, other than percentile.
|
AwsCloudWatchAlarmDetails |
withThreshold(Double threshold)
The value to compare with the specified statistic.
|
AwsCloudWatchAlarmDetails |
withThresholdMetricId(String thresholdMetricId)
n an alarm based on an anomaly detection model, this is the ID of the
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm. |
AwsCloudWatchAlarmDetails |
withTreatMissingData(String treatMissingData)
Sets how this alarm is to handle missing data points.
|
AwsCloudWatchAlarmDetails |
withUnit(String unit)
The unit of the metric associated with the alarm.
|
public void setActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state.
actionsEnabled
- Indicates whether actions should be executed during any changes to the alarm state.public Boolean getActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
public AwsCloudWatchAlarmDetails withActionsEnabled(Boolean actionsEnabled)
Indicates whether actions should be executed during any changes to the alarm state.
actionsEnabled
- Indicates whether actions should be executed during any changes to the alarm state.public Boolean isActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
public List<String> getAlarmActions()
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM
state from any other state.
ALARM
state from any other state.public void setAlarmActions(Collection<String> alarmActions)
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM
state from any other state.
alarmActions
- The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into
an ALARM
state from any other state.public AwsCloudWatchAlarmDetails withAlarmActions(String... alarmActions)
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM
state from any other state.
NOTE: This method appends the values to the existing list (if any). Use
setAlarmActions(java.util.Collection)
or withAlarmActions(java.util.Collection)
if you want to
override the existing values.
alarmActions
- The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into
an ALARM
state from any other state.public AwsCloudWatchAlarmDetails withAlarmActions(Collection<String> alarmActions)
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an
ALARM
state from any other state.
alarmActions
- The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into
an ALARM
state from any other state.public void setAlarmArn(String alarmArn)
The ARN of the alarm.
alarmArn
- The ARN of the alarm.public String getAlarmArn()
The ARN of the alarm.
public AwsCloudWatchAlarmDetails withAlarmArn(String alarmArn)
The ARN of the alarm.
alarmArn
- The ARN of the alarm.public void setAlarmConfigurationUpdatedTimestamp(String 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 String getAlarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
public AwsCloudWatchAlarmDetails withAlarmConfigurationUpdatedTimestamp(String 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 void setAlarmDescription(String alarmDescription)
The description of the alarm.
alarmDescription
- The description of the alarm.public String getAlarmDescription()
The description of the alarm.
public AwsCloudWatchAlarmDetails withAlarmDescription(String alarmDescription)
The description of the alarm.
alarmDescription
- The description of the alarm.public void setAlarmName(String alarmName)
The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses that ID for the alarm name.
alarmName
- The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses
that ID for the alarm name.public String getAlarmName()
The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses that ID for the alarm name.
public AwsCloudWatchAlarmDetails withAlarmName(String alarmName)
The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses that ID for the alarm name.
alarmName
- The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses
that ID for the alarm name.public void setComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
comparisonOperator
- The arithmetic operation to use when comparing the specified statistic and threshold. The specified
statistic value is used as the first operand.public String getComparisonOperator()
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
public AwsCloudWatchAlarmDetails withComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
comparisonOperator
- The arithmetic operation to use when comparing the specified statistic and threshold. The specified
statistic value is used as the first operand.public void setDatapointsToAlarm(Integer datapointsToAlarm)
The number of datapoints that must be breaching to trigger the alarm.
datapointsToAlarm
- The number of datapoints that must be breaching to trigger the alarm.public Integer getDatapointsToAlarm()
The number of datapoints that must be breaching to trigger the alarm.
public AwsCloudWatchAlarmDetails withDatapointsToAlarm(Integer datapointsToAlarm)
The number of datapoints that must be breaching to trigger the alarm.
datapointsToAlarm
- The number of datapoints that must be breaching to trigger the alarm.public List<AwsCloudWatchAlarmDimensionsDetails> getDimensions()
The dimensions for the metric associated with the alarm.
public void setDimensions(Collection<AwsCloudWatchAlarmDimensionsDetails> dimensions)
The dimensions for the metric associated with the alarm.
dimensions
- The dimensions for the metric associated with the alarm.public AwsCloudWatchAlarmDetails withDimensions(AwsCloudWatchAlarmDimensionsDetails... dimensions)
The dimensions for the metric associated with the alarm.
NOTE: This method appends the values to the existing list (if any). Use
setDimensions(java.util.Collection)
or withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- The dimensions for the metric associated with the alarm.public AwsCloudWatchAlarmDetails withDimensions(Collection<AwsCloudWatchAlarmDimensionsDetails> dimensions)
The dimensions for the metric associated with the alarm.
dimensions
- The dimensions for the metric associated with the alarm.public void setEvaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile)
Used only for alarms based on percentiles. If ignore
, the alarm state does not change during periods
with too few data points to be statistically significant. If evaluate
or this parameter is not used,
the alarm is always evaluated and possibly changes state no matter how many data points are available.
evaluateLowSampleCountPercentile
- Used only for alarms based on percentiles. If ignore
, the alarm state does not change during
periods with too few data points to be statistically significant. If evaluate
or this
parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data
points are available.public String getEvaluateLowSampleCountPercentile()
Used only for alarms based on percentiles. If ignore
, the alarm state does not change during periods
with too few data points to be statistically significant. If evaluate
or this parameter is not used,
the alarm is always evaluated and possibly changes state no matter how many data points are available.
ignore
, the alarm state does not change during
periods with too few data points to be statistically significant. If evaluate
or this
parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data
points are available.public AwsCloudWatchAlarmDetails withEvaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile)
Used only for alarms based on percentiles. If ignore
, the alarm state does not change during periods
with too few data points to be statistically significant. If evaluate
or this parameter is not used,
the alarm is always evaluated and possibly changes state no matter how many data points are available.
evaluateLowSampleCountPercentile
- Used only for alarms based on percentiles. If ignore
, the alarm state does not change during
periods with too few data points to be statistically significant. If evaluate
or this
parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data
points are available.public void setEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods
- The number of periods over which data is compared to the specified threshold.public Integer getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold.
public AwsCloudWatchAlarmDetails withEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods
- The number of periods over which data is compared to the specified threshold.public void setExtendedStatistic(String extendedStatistic)
The percentile statistic for the metric associated with the alarm.
extendedStatistic
- The percentile statistic for the metric associated with the alarm.public String getExtendedStatistic()
The percentile statistic for the metric associated with the alarm.
public AwsCloudWatchAlarmDetails withExtendedStatistic(String extendedStatistic)
The percentile statistic for the metric associated with the alarm.
extendedStatistic
- The percentile statistic for the metric associated with the alarm.public List<String> getInsufficientDataActions()
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any other
state. Each action is specified as an ARN.
INSUFFICIENT_DATA
state from any
other state. Each action is specified as an ARN.public void setInsufficientDataActions(Collection<String> insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any other
state. Each action is specified as an ARN.
insufficientDataActions
- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any
other state. Each action is specified as an ARN.public AwsCloudWatchAlarmDetails withInsufficientDataActions(String... insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any other
state. Each action is specified as an ARN.
NOTE: This method appends the values to the existing list (if any). Use
setInsufficientDataActions(java.util.Collection)
or
withInsufficientDataActions(java.util.Collection)
if you want to override the existing values.
insufficientDataActions
- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any
other state. Each action is specified as an ARN.public AwsCloudWatchAlarmDetails withInsufficientDataActions(Collection<String> insufficientDataActions)
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any other
state. Each action is specified as an ARN.
insufficientDataActions
- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any
other state. Each action is specified as an ARN.public void setMetricName(String metricName)
The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm
based on a math expression, you use Metrics
instead and you can't specify MetricName
.
metricName
- The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an
alarm based on a math expression, you use Metrics
instead and you can't specify
MetricName
.public String getMetricName()
The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm
based on a math expression, you use Metrics
instead and you can't specify MetricName
.
Metrics
instead and you can't specify
MetricName
.public AwsCloudWatchAlarmDetails withMetricName(String metricName)
The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm
based on a math expression, you use Metrics
instead and you can't specify MetricName
.
metricName
- The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an
alarm based on a math expression, you use Metrics
instead and you can't specify
MetricName
.public void setNamespace(String namespace)
The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an
alarm based on a math expression, you can't specify Namespace
and you use Metrics
instead.
namespace
- The namespace of the metric associated with the alarm. This is required for an alarm based on a metric.
For an alarm based on a math expression, you can't specify Namespace
and you use
Metrics
instead.public String getNamespace()
The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an
alarm based on a math expression, you can't specify Namespace
and you use Metrics
instead.
Namespace
and you use
Metrics
instead.public AwsCloudWatchAlarmDetails withNamespace(String namespace)
The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an
alarm based on a math expression, you can't specify Namespace
and you use Metrics
instead.
namespace
- The namespace of the metric associated with the alarm. This is required for an alarm based on a metric.
For an alarm based on a math expression, you can't specify Namespace
and you use
Metrics
instead.public List<String> getOkActions()
The actions to execute when this alarm transitions to the OK
state from any other state. Each action
is specified as an ARN.
OK
state from any other state.
Each action is specified as an ARN.public void setOkActions(Collection<String> okActions)
The actions to execute when this alarm transitions to the OK
state from any other state. Each action
is specified as an ARN.
okActions
- The actions to execute when this alarm transitions to the OK
state from any other state. Each
action is specified as an ARN.public AwsCloudWatchAlarmDetails withOkActions(String... okActions)
The actions to execute when this alarm transitions to the OK
state from any other state. Each action
is specified as an ARN.
NOTE: This method appends the values to the existing list (if any). Use
setOkActions(java.util.Collection)
or withOkActions(java.util.Collection)
if you want to
override the existing values.
okActions
- The actions to execute when this alarm transitions to the OK
state from any other state. Each
action is specified as an ARN.public AwsCloudWatchAlarmDetails withOkActions(Collection<String> okActions)
The actions to execute when this alarm transitions to the OK
state from any other state. Each action
is specified as an ARN.
okActions
- The actions to execute when this alarm transitions to the OK
state from any other state. Each
action is specified as an ARN.public void setPeriod(Integer period)
The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.
period
- The period, in seconds, over which the statistic is applied. This is required for an alarm based on a
metric.public Integer getPeriod()
The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.
public AwsCloudWatchAlarmDetails withPeriod(Integer period)
The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.
period
- The period, in seconds, over which the statistic is applied. This is required for an alarm based on a
metric.public void setStatistic(String statistic)
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
.
For an alarm based on a metric, you must specify either Statistic
or ExtendedStatistic
but not both.
For an alarm based on a math expression, you can't specify Statistic
. Instead, you use
Metrics
.
statistic
- The statistic for the metric associated with the alarm, other than percentile. For percentile statistics,
use ExtendedStatistic
.
For an alarm based on a metric, you must specify either Statistic
or
ExtendedStatistic
but not both.
For an alarm based on a math expression, you can't specify Statistic
. Instead, you use
Metrics
.
public String getStatistic()
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
.
For an alarm based on a metric, you must specify either Statistic
or ExtendedStatistic
but not both.
For an alarm based on a math expression, you can't specify Statistic
. Instead, you use
Metrics
.
ExtendedStatistic
.
For an alarm based on a metric, you must specify either Statistic
or
ExtendedStatistic
but not both.
For an alarm based on a math expression, you can't specify Statistic
. Instead, you use
Metrics
.
public AwsCloudWatchAlarmDetails withStatistic(String statistic)
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use
ExtendedStatistic
.
For an alarm based on a metric, you must specify either Statistic
or ExtendedStatistic
but not both.
For an alarm based on a math expression, you can't specify Statistic
. Instead, you use
Metrics
.
statistic
- The statistic for the metric associated with the alarm, other than percentile. For percentile statistics,
use ExtendedStatistic
.
For an alarm based on a metric, you must specify either Statistic
or
ExtendedStatistic
but not both.
For an alarm based on a math expression, you can't specify Statistic
. Instead, you use
Metrics
.
public void setThreshold(Double threshold)
The value to compare with the specified statistic.
threshold
- The value to compare with the specified statistic.public Double getThreshold()
The value to compare with the specified statistic.
public AwsCloudWatchAlarmDetails withThreshold(Double threshold)
The value to compare with the specified statistic.
threshold
- The value to compare with the specified statistic.public void setThresholdMetricId(String thresholdMetricId)
n an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.
thresholdMetricId
- n an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.public String getThresholdMetricId()
n an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.public AwsCloudWatchAlarmDetails withThresholdMetricId(String thresholdMetricId)
n an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.
thresholdMetricId
- n an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.public void setTreatMissingData(String treatMissingData)
Sets how this alarm is to handle missing data points.
treatMissingData
- Sets how this alarm is to handle missing data points.public String getTreatMissingData()
Sets how this alarm is to handle missing data points.
public AwsCloudWatchAlarmDetails withTreatMissingData(String treatMissingData)
Sets how this alarm is to handle missing data points.
treatMissingData
- Sets how this alarm is to handle missing data points.public void setUnit(String unit)
The unit of the metric associated with the alarm.
unit
- The unit of the metric associated with the alarm.public String getUnit()
The unit of the metric associated with the alarm.
public AwsCloudWatchAlarmDetails withUnit(String unit)
The unit of the metric associated with the alarm.
unit
- The unit of the metric associated with the alarm.public String toString()
toString
in class Object
Object.toString()
public AwsCloudWatchAlarmDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.