Skip to content
v2.274.0

MetricDefinition Struct ​

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

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 ​

namestringnamestrnameStringNamestringName*stringrequired#
Name of the metric.
regexstringregexstrregexStringRegexstringRegex*stringrequired#
Regular expression that searches the output of a training job and gets the value of the metric.