Alarm
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 などがあります。
AlarmActions
Webマネジメントコンソールから EC2 の CloudWatch Alarm に設定できるアクションは以下のようなものがあります。
- 通知(SNS)
- Auto Scaling
- EC2 アクション
- System Manager
アクションの画像
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.
Dimensions
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.