Type: AWS::CloudWatch::Alarm
Properties:
ActionsEnabled: Boolean
AlarmActions:
- String
AlarmDescription: String
AlarmName: String
ComparisonOperator: String
DatapointsToAlarm: Integer
Dimensions:
- Dimension
EvaluateLowSampleCountPercentile: String
EvaluationPeriods: Integer
ExtendedStatistic: String
InsufficientDataActions:
- String
MetricName: String
Metrics:
- MetricDataQuery
Namespace: String
OKActions:
- String
Period: Integer
Statistic: String
Threshold: Double
ThresholdMetricId: String
TreatMissingData: String
Unit: String
MetricsNameで指定されたメトリックスがTreshhold(閾値)を超えたらAlarmActions
に指定されたアクションを実行する。
AlarmActionの例としてAWS::ApplicationAutoScaling::ScalingPolicy
などがある。
WebマネジメントコンソールからEC2のCloudWatch Alarmに設定できるアクションは以下のようなものがある。
The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutMetricAlarm in the Amazon CloudWatch API Reference.
Dimension is an embedded property of the AWS::CloudWatch::Alarm type. Dimensions are name/value pairs that can be associated with a CloudWatch metric. You can specify a maximum of 10 dimensions for a given metric.