MetricAlarm

The details about a metric alarm.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Indicates whether actions should be executed during any changes to the alarm state.

Link copied to clipboard

The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Link copied to clipboard

The Amazon Resource Name (ARN) of the alarm.

Link copied to clipboard

The time stamp of the last update to the alarm configuration.

Link copied to clipboard

The description of the alarm.

Link copied to clipboard

The name of the alarm.

Link copied to clipboard

The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

Link copied to clipboard

The number of data points that must be breaching to trigger the alarm.

Link copied to clipboard

The dimensions for the metric associated with the alarm.

Link copied to clipboard

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.

Link copied to clipboard

The number of periods over which data is compared to the specified threshold.

Link copied to clipboard

If the value of this field is PARTIAL_DATA, the alarm is being evaluated based on only partial data. This happens if the query used for the alarm returns more than 10,000 metrics. For more information, see Create alarms on Metrics Insights queries.

Link copied to clipboard

The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.

Link copied to clipboard

The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Link copied to clipboard

The name of the metric associated with the alarm, if this is an alarm based on a single metric.

Link copied to clipboard

An array of MetricDataQuery structures, used in an alarm based on a metric math expression. Each structure either retrieves a metric or performs a math expression. One item in the Metrics array is the math expression that the alarm watches. This expression by designated by having ReturnData set to true.

Link copied to clipboard

The namespace of the metric associated with the alarm.

Link copied to clipboard

The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Link copied to clipboard
val period: Int?

The period, in seconds, over which the statistic is applied.

Link copied to clipboard

An explanation for the alarm state, in text format.

Link copied to clipboard

An explanation for the alarm state, in JSON format.

Link copied to clipboard

The date and time that the alarm's StateValue most recently changed.

Link copied to clipboard

The time stamp of the last update to the value of either the StateValue or EvaluationState parameters.

Link copied to clipboard

The state value for the alarm.

Link copied to clipboard

The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic.

Link copied to clipboard

The value to compare with the specified statistic.

Link copied to clipboard

In 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.

Link copied to clipboard

Sets how this alarm is to handle missing data points. The valid values are breaching, notBreaching, ignore, and missing. For more information, see Configuring how CloudWatch alarms treat missing data.

Link copied to clipboard

The unit of the metric associated with the alarm.

Functions

Link copied to clipboard
inline fun copy(block: MetricAlarm.Builder.() -> Unit = {}): MetricAlarm
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String