我正在尝试使用以下 CloudFormation 模板基于异常检测模型创建警报并收到错误:
有人可以帮我弄这个吗。
"Resources": {
"CPUUtilizationAlarm": {
"Type": "AWS::CloudWatch::Alarm",
"Properties": {
"AlarmDescription": "Alarm Triggered",
"AlarmName": "CPUUtilizationAlarm",
"ComparisonOperator": "GreaterThanUpperThreshold",
"EvaluationPeriods": 1,
"Dimensions": [],
"Metrics": [
{
"Expression": "ANOMALY_DETECTION_BAND(m1, 10)",
"Id": "ad1"
},
{
"Id": "m1",
"MetricStat": {
"Metric": {
"MetricName": "CPUUtilization",
"Namespace": "AWS/EC2",
"Dimensions": [
{
"value": "i-05157fe1be36d52bd",
"name": "InstanceId"
}
],
},
"Period": 60,
"Stat": "Average"
}
}
],
"ThresholdMetricId": "ad1",
"TreatMissingData": "breaching",
}
}
}