interface MonitoringConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.CfnService.MonitoringConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnService_MonitoringConfigurationProperty |
Java | software.amazon.awscdk.services.ecs.CfnService.MonitoringConfigurationProperty |
Python | aws_cdk.aws_ecs.CfnService.MonitoringConfigurationProperty |
TypeScript | aws-cdk-lib » aws_ecs » CfnService » MonitoringConfigurationProperty |
The optional monitoring configuration for a service, which defines the resolution for the service-level CPUUtilization and MemoryUtilization Amazon CloudWatch metrics.
When not specified, Amazon ECS uses the default resolution of 60 seconds.
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 monitoringConfigurationProperty: ecs.CfnService.MonitoringConfigurationProperty = {
metricConfigurations: [{
metricNames: ['metricNames'],
resolutionSeconds: 123,
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| metric | IResolvable | (IResolvable | Metric)[] | The list of metric configurations for the service monitoring. |
metricConfigurations
Type:
IResolvable | (IResolvable | Metric)[]
The list of metric configurations for the service monitoring.

.NET
Go
Java
Python
TypeScript