MetricAlarmConfig

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

Bases: object

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

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

  • namespace (str) – (deprecated) Namespace of the metric.

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

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

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

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

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

Deprecated

Replaced by MetricConfig

Stability

deprecated

Attributes

dimensions

(deprecated) The dimensions to apply to the alarm.

Stability

deprecated

Return type

Optional[List[Dimension]]

extended_statistic

(deprecated) Percentile aggregation function to use.

Stability

deprecated

Return type

Optional[str]

metric_name

(deprecated) Name of the metric.

Stability

deprecated

Return type

str

namespace

(deprecated) Namespace of the metric.

Stability

deprecated

Return type

str

period

(deprecated) How many seconds to aggregate over.

Stability

deprecated

Return type

Union[int, float]

statistic

(deprecated) Simple aggregation function to use.

Stability

deprecated

Return type

Optional[Statistic]

unit

(deprecated) The unit of the alarm.

Stability

deprecated

Return type

Optional[Unit]