Builder

class Builder

Properties

Link copied to clipboard

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

Link copied to clipboard

The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an ALARM state from any other state.

Link copied to clipboard

The 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. If you don't specify a name, CloudFront generates a unique physical ID and uses that ID for the alarm name.

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 datapoints 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

The percentile statistic for the metric associated with the alarm.

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

Link copied to clipboard

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.

Link copied to clipboard

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.

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

Link copied to clipboard
var period: Int?

The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.

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

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.

Link copied to clipboard

Sets how this alarm is to handle missing data points.

Link copied to clipboard
var unit: String?

The unit of the metric associated with the alarm.