MetricAlarmConfig

class aws_cdk.aws_cloudwatch.MetricAlarmConfig(*, metric_name, namespace, period, dimensions=None, extended_statistic=None, statistic=None, unit=None)

Bases: object

__init__(*, metric_name, namespace, period, dimensions=None, extended_statistic=None, statistic=None, unit=None)

Properties used to construct the Metric identifying part of an Alarm.

Parameters
  • metric_name (str) – Name of the metric.

  • namespace (str) – Namespace of the metric.

  • period (Union[int, float]) – How many seconds to aggregate over.

  • dimensions (Optional[List[Dimension]]) – The dimensions to apply to the alarm.

  • extended_statistic (Optional[str]) – Percentile aggregation function to use.

  • statistic (Optional[Statistic]) – Simple aggregation function to use.

  • unit (Optional[Unit]) – The unit of the alarm.

Attributes

dimensions

The dimensions to apply to the alarm.

Return type

Optional[List[Dimension]]

extended_statistic

Percentile aggregation function to use.

Return type

Optional[str]

metric_name

Name of the metric.

Return type

str

namespace

Namespace of the metric.

Return type

str

period

How many seconds to aggregate over.

Return type

Union[int, float]

statistic

Simple aggregation function to use.

Return type

Optional[Statistic]

unit

The unit of the alarm.

Return type

Optional[Unit]