MetricConfigurationProperty Struct
The configuration for a specific set of metrics to collect for a service.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const metricConfigurationProperty: ecs.CfnService.MetricConfigurationProperty = {
metricNames: ['metricNames'],
resolutionSeconds: 123,
};
Properties
metricNamesstring[]metric_namestyping.List[str]metricNamesList<String>MetricNamesstring[]MetricNames*[]*stringrequired#The list of metric names to configure.
The supported metric names are CPUUtilization and MemoryUtilization.
resolutionSecondsnumberresolution_secondsint | floatresolutionSecondsNumberResolutionSecondsdoubleResolutionSeconds*float64required#The resolution, in seconds, at which to collect the metrics.
The valid values are 20 and 60.