IMetric

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

Bases: typing_extensions.Protocol

Interface for metrics.

Methods

to_alarm_config()

(deprecated) Turn this metric object into an alarm configuration.

Deprecated

Use toMetricsConfig() instead.

Stability

deprecated

Return type

MetricAlarmConfig

to_graph_config()

(deprecated) Turn this metric object into a graph configuration.

Deprecated

Use toMetricsConfig() instead.

Stability

deprecated

Return type

MetricGraphConfig

to_metric_config()

Inspect the details of the metric object.

Return type

MetricConfig