IMetric

class aws_cdk.aws_cloudwatch.IMetric(*args, **kwargs)

Bases: typing_extensions.Protocol

Interface for metrics.

__init__(*args, **kwargs)

Methods

to_alarm_config()

Turn this metric object into an alarm configuration.

deprecated :deprecated: Use toMetricsConfig() instead.

stability :stability: deprecated

Return type

MetricAlarmConfig

to_graph_config()

Turn this metric object into a graph configuration.

deprecated :deprecated: Use toMetricsConfig() instead.

stability :stability: deprecated

Return type

MetricGraphConfig

to_metric_config()

Inspect the details of the metric object.

Return type

MetricConfig