AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon 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: - Dimension MetricName: String Namespace: String

Properties

Dimensions

The dimensions for the metric. You can specify a maximum of 10 items.

Required: No

Type: List of Dimension property types

Update requires: No interruption

MetricName

The name of the metric.

Required: No

Type: String

Length constraints: Minimum of 1. Maximum of 255.

Update requires: No interruption

Namespace

The namespace of the metric.

Required: No

Type: String

Length constraints: Minimum of 1. Maximum of 255.

Update requires: No interruption

See Also

  • Metric in the Amazon CloudWatch API Reference

On this page: