interface TargetTrackingMetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApplicationAutoScaling.Mixins.CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapplicationautoscaling/mixins#CfnScalingPolicyPropsMixin_TargetTrackingMetricProperty |
Java | software.amazon.awscdk.mixins.preview.services.applicationautoscaling.mixins.CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty |
Python | aws_cdk.mixins_preview.aws_applicationautoscaling.mixins.CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty |
TypeScript | @aws-cdk/mixins-preview » aws_applicationautoscaling » mixins » CfnScalingPolicyPropsMixin » TargetTrackingMetricProperty |
Represents a specific metric for a target tracking scaling policy for Application Auto Scaling.
Metric is a property of the AWS::ApplicationAutoScaling::ScalingPolicy TargetTrackingMetricStat property type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as applicationautoscaling_mixins } from '@aws-cdk/mixins-preview/aws-applicationautoscaling';
const targetTrackingMetricProperty: applicationautoscaling_mixins.CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty = {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
};
Properties
| Name | Type | Description |
|---|---|---|
| dimensions? | IResolvable | (IResolvable | Target)[] | The dimensions for the metric. |
| metric | string | The name of the metric. |
| namespace? | string | The namespace of the metric. |
dimensions?
Type:
IResolvable | (IResolvable | Target)[]
(optional)
The dimensions for the metric.
For the list of available dimensions, see the AWS documentation available from the table in AWS services that publish CloudWatch metrics in the Amazon CloudWatch User Guide .
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
metricName?
Type:
string
(optional)
The name of the metric.
namespace?
Type:
string
(optional)
The namespace of the metric.
For more information, see the table in AWS services that publish CloudWatch metrics in the Amazon CloudWatch User Guide .

.NET
Go
Java
Python
TypeScript