interface TargetTrackingMetricProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ApplicationAutoScaling.CfnScalingPolicy.TargetTrackingMetricProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationautoscaling#CfnScalingPolicy_TargetTrackingMetricProperty |
![]() | software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.TargetTrackingMetricProperty |
![]() | aws_cdk.aws_applicationautoscaling.CfnScalingPolicy.TargetTrackingMetricProperty |
![]() | aws-cdk-lib » aws_applicationautoscaling » CfnScalingPolicy » 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 { aws_applicationautoscaling as appscaling } from 'aws-cdk-lib';
const targetTrackingMetricProperty: appscaling.CfnScalingPolicy.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 .