interface MetricConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.CfnService.MetricConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnService_MetricConfigurationProperty |
Java | software.amazon.awscdk.services.ecs.CfnService.MetricConfigurationProperty |
Python | aws_cdk.aws_ecs.CfnService.MetricConfigurationProperty |
TypeScript | aws-cdk-lib » aws_ecs » CfnService » MetricConfigurationProperty |
The configuration for a specific set of metrics to collect for a service.
Example
// 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
| Name | Type | Description |
|---|---|---|
| metric | string[] | The list of metric names to configure. |
| resolution | number | The resolution, in seconds, at which to collect the metrics. |
metricNames
Type:
string[]
The list of metric names to configure.
The supported metric names are CPUUtilization and MemoryUtilization.
resolutionSeconds
Type:
number
The resolution, in seconds, at which to collect the metrics.
The valid values are 20 and 60.

.NET
Go
Java
Python
TypeScript