Optional
alarmOptional
annotationsA single metric widget can have up to one alarm, and multiple horizontal and vertical annotations.
An alarm annotation is required only when metrics is not specified. A horizontal or vertical annotation is not required.
Instances of this interface include [aws.cloudwatch.Alarm], [AlarmAnnotation], [HorizontalAnnotation] and [VerticalAnnotation].
At least one of [alarm], [annotations] or [metrics] must be supplied.
Optional
extendedThe percentile statistic for the metric associated with the alarm. Specify a value between [0.0] and [100].
Optional
heightThe height of the widget in grid units. The default is 6.
Valid Values: 1–1000
Optional
metricsSpecify a metrics array to include one or more metrics (without alarms), math expressions, or search expressions. One metrics array can include 0–100 metrics and expressions.
See [ExpressionWidgetMetric] and [Metric] to create instances that can be added to this array.
At least one of [alarm], [annotations] or [metrics] must be supplied.
Optional
periodThe default period, in seconds, for all metrics in this widget. The period is the length of time represented by one data point on the graph. This default can be overridden within each metric definition. The default is 300.
Optional
regionThe region of the metric. Defaults to the region of the stack if not specified.
Optional
statisticThe default statistic to be displayed for each metric in the array. This default can be overridden within the definition of each individual metric in the metrics array.
Optional
titleThe title to be displayed for the graph or number.
Optional
widthThe width of the widget in grid units (in a 24-column grid). The default is 6.
Valid Values: 1–24
Generated using TypeDoc
Used to show a graph of a single alarm. If, instead, you want to place horizontal lines in graphs to show the trigger point of an alarm, then add the alarm to [annotations] instead.
At least one of [alarm], [annotations] or [metrics] must be supplied.