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.

Return type

MetricAlarmConfig

to_graph_config()

Turn this metric object into a graph configuration.

Return type

MetricGraphConfig