# IMetric

Interface for metrics.

Extends: IMetric
Implemented by: MathExpression, Metric, SearchExpression

- Source: [`aws-cloudwatch/lib/metric-types.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-cloudwatch/lib/metric-types.ts#L6)
- Type last changed: v2.93.0 · 23 Aug 2023

## Properties

- `warnings`: string[] = None — - use warningsV2

  Should be attached to the consuming construct.

- `warningsV2`: { [key: string]: string } = None — Any warnings related to this metric.

  Should be attached to the consuming construct.

## Methods

- `toMetricConfig(): MetricConfig` — Inspect the details of the metric object.
