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

Amazon CloudWatch Alarm MetricStat

The MetricStat property type defines the metric to be returned, along with the statistics, period, and units.

MetricStat is a property of the MetricDataQuery property type.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Metric" : Metric, "Period" : Integer, "Stat" : String, "Unit" : String }

YAML

Metric: Metric Period: Integer Stat: String Unit: String

Properties

Metric

The metric to return, including the metric name, namespace, and dimensions.

Required: Yes

Type: Metric

Update requires: No interruption

Period

The period, in seconds, to use when retrieving the metric. Minimum value of 1.

Required: Yes

Type: Integer

Update requires: No interruption

Stat

The statistic to return. It can include any CloudWatch statistic or extended statistic.

Required: Yes

Type: String

Update requires: No interruption

Unit

The unit to use for the returned data points.

Required: No

Type: String

Valid values: Seconds | Microseconds | Milliseconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | Gigabits/Second | Terabits/Second | Count/Second | None

Update requires: No interruption

See Also

  • MetricStat in the Amazon CloudWatch API Reference

On this page: