

# TargetTrackingMetric


Represents a specific metric.

Metric is a property of the [TargetTrackingMetricStat](API_TargetTrackingMetricStat.md) object.

## Contents


 ** Dimensions **   <a name="autoscaling-Type-TargetTrackingMetric-Dimensions"></a>
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 ](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html) in the *Amazon CloudWatch User Guide*.   
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.  
Type: Array of [TargetTrackingMetricDimension](API_TargetTrackingMetricDimension.md) objects  
Required: No

 ** MetricName **   <a name="autoscaling-Type-TargetTrackingMetric-MetricName"></a>
The name of the metric.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*`   
Required: No

 ** Namespace **   <a name="autoscaling-Type-TargetTrackingMetric-Namespace"></a>
The namespace of the metric. For more information, see the table in [AWS services that publish CloudWatch metrics ](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html) in the *Amazon CloudWatch User Guide*.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*`   
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/application-autoscaling-2016-02-06/TargetTrackingMetric) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/application-autoscaling-2016-02-06/TargetTrackingMetric) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/application-autoscaling-2016-02-06/TargetTrackingMetric) 