@Generated(value="software.amazon.awssdk:codegen") public final class AwsCloudWatchAlarmDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsCloudWatchAlarmDetails.Builder,AwsCloudWatchAlarmDetails>
Specifies an alarm and associates it with the specified metric or metric math expression.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsCloudWatchAlarmDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
actionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
|
List<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. |
String |
alarmArn()
The ARN of the alarm.
|
String |
alarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
|
String |
alarmDescription()
The description of the alarm.
|
String |
alarmName()
The name of the alarm.
|
static AwsCloudWatchAlarmDetails.Builder |
builder() |
String |
comparisonOperator()
The arithmetic operation to use when comparing the specified statistic and threshold.
|
Integer |
datapointsToAlarm()
The number of datapoints that must be breaching to trigger the alarm.
|
List<AwsCloudWatchAlarmDimensionsDetails> |
dimensions()
The dimensions for the metric associated with the alarm.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
evaluateLowSampleCountPercentile()
Used only for alarms based on percentiles.
|
Integer |
evaluationPeriods()
The number of periods over which data is compared to the specified threshold.
|
String |
extendedStatistic()
The percentile statistic for the metric associated with the alarm.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAlarmActions()
For responses, this returns true if the service returned a value for the AlarmActions property.
|
boolean |
hasDimensions()
For responses, this returns true if the service returned a value for the Dimensions property.
|
int |
hashCode() |
boolean |
hasInsufficientDataActions()
For responses, this returns true if the service returned a value for the InsufficientDataActions property.
|
boolean |
hasOkActions()
For responses, this returns true if the service returned a value for the OkActions property.
|
List<String> |
insufficientDataActions()
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATA state from any other
state. |
String |
metricName()
The name of the metric associated with the alarm.
|
String |
namespace()
The namespace of the metric associated with the alarm.
|
List<String> |
okActions()
The actions to execute when this alarm transitions to the
OK state from any other state. |
Integer |
period()
The period, in seconds, over which the statistic is applied.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsCloudWatchAlarmDetails.Builder> |
serializableBuilderClass() |
String |
statistic()
The statistic for the metric associated with the alarm, other than percentile.
|
Double |
threshold()
The value to compare with the specified statistic.
|
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.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
treatMissingData()
Sets how this alarm is to handle missing data points.
|
String |
unit()
The unit of the metric associated with the alarm.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean actionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state.
public final boolean hasAlarmActions()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAlarmActions() method.
ALARM state from any other state.public final String alarmArn()
The ARN of the alarm.
public final String alarmConfigurationUpdatedTimestamp()
The time stamp of the last update to the alarm configuration.
public final String alarmDescription()
The description of the alarm.
public final 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.
public final String comparisonOperator()
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
public final Integer datapointsToAlarm()
The number of datapoints that must be breaching to trigger the alarm.
public final boolean hasDimensions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<AwsCloudWatchAlarmDimensionsDetails> dimensions()
The dimensions for the metric associated with the alarm.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDimensions() method.
public final 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.
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 final Integer evaluationPeriods()
The number of periods over which data is compared to the specified threshold.
public final String extendedStatistic()
The percentile statistic for the metric associated with the alarm.
public final boolean hasInsufficientDataActions()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInsufficientDataActions() method.
INSUFFICIENT_DATA state from any
other state. Each action is specified as an ARN.public final 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.
Metrics instead and you can't specify
MetricName.public final 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 and you use
Metrics instead.public final boolean hasOkActions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOkActions() method.
OK state from any other state.
Each action is specified as an ARN.public final Integer period()
The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.
public final 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.
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 final Double threshold()
The value to compare with the specified statistic.
public final 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.
ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.public final String treatMissingData()
Sets how this alarm is to handle missing data points.
public final String unit()
The unit of the metric associated with the alarm.
public AwsCloudWatchAlarmDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsCloudWatchAlarmDetails.Builder,AwsCloudWatchAlarmDetails>public static AwsCloudWatchAlarmDetails.Builder builder()
public static Class<? extends AwsCloudWatchAlarmDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.