interface MetricConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.ECS.CfnServicePropsMixin.MetricConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsecs#CfnServicePropsMixin_MetricConfigurationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnServicePropsMixin.MetricConfigurationProperty |
Python | aws_cdk.cfn_property_mixins.aws_ecs.CfnServicePropsMixin.MetricConfigurationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ecs » CfnServicePropsMixin » 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/cfn-property-mixins';
const metricConfigurationProperty: ecs.CfnServicePropsMixin.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[]
(optional)
The list of metric names to configure.
The supported metric names are CPUUtilization and MemoryUtilization.
resolutionSeconds?
Type:
number
(optional)
The resolution, in seconds, at which to collect the metrics.
The valid values are 20 and 60.

.NET
Go
Java
Python
TypeScript