# MetricExpressionConfig

Properties for a concrete metric.

- Source: [`aws-cloudwatch/lib/metric-types.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudwatch/lib/metric-types.ts#L352)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';

declare const metric: cloudwatch.Metric;
const metricExpressionConfig: cloudwatch.MetricExpressionConfig = {
  expression: 'expression',
  period: 123,
  usingMetrics: {
    usingMetricsKey: metric,
  },

  // the properties below are optional
  searchAccount: 'searchAccount',
  searchRegion: 'searchRegion',
};
```

## Properties

- `expression`: string (required) — Math expression for the metric.

- `period`: number (required) — How many seconds to aggregate over.

- `searchAccount`: string — Account to evaluate search expressions within.

  **Default:** Deployment account.

- `searchRegion`: string — Region to evaluate search expressions within.

  **Default:** Deployment region.

- `usingMetrics`: { [key: string]: [IMetric](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.IMetric.html) } (required) — Metrics used in the math expression.
