# MetricsConfigProperty

The metrics configuration for your event source.

Use this configuration object to define which metrics you want your event source mapping to produce.

- Source: Generated code
- Type last changed: v2.168.0 · 20 Nov 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const metricsConfigProperty: lambda.CfnEventSourceMapping.MetricsConfigProperty = {
  metrics: ['metrics'],
};
```

## Properties

- `metrics`: string[] — The metrics you want your event source mapping to produce.

  Include `EventCount` to receive event source mapping metrics related to the number of events processed by your event source mapping. For more information about these metrics, see [Event source mapping metrics](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics) .
