This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::CloudWatch::Alarm Metric
The Metric property type represents a specific metric. Metric is a property of the
MetricStat property type.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Dimensions" :[ Dimension, ... ], "MetricName" :String, "Namespace" :String}
YAML
Dimensions:- DimensionMetricName:StringNamespace:String
Properties
Dimensions-
The metric dimensions that you want to be used for the metric that the alarm will watch.
Required: No
Type: Array of Dimension
Maximum:
30Update requires: No interruption
MetricName-
The name of the metric that you want the alarm to watch. This is a required field.
Required: No
Type: String
Minimum:
1Maximum:
255Update requires: No interruption
Namespace-
The namespace of the metric that the alarm will watch.
Required: No
Type: String
Pattern:
[^:].*Minimum:
1Maximum:
255Update requires: No interruption