# MetricDefinition

Specifies the metric name and regular expressions used to parse algorithm logs.

- Source: [`aws-stepfunctions-tasks/lib/sagemaker/base-types.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts#L259)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const metricDefinition: stepfunctions_tasks.MetricDefinition = {
  name: 'name',
  regex: 'regex',
};
```

## Properties

- `name`: string (required) — Name of the metric.

- `regex`: string (required) — Regular expression that searches the output of a training job and gets the value of the metric.
