Skip to content

TargetTrackingMetric

Source code in docs_src/capo_application_auto_scaling/types/target_tracking_metric.py
class TargetTrackingMetric(TypedDict, closed=True):
    dimensions: NotRequired[
        "capo_application_auto_scaling.types.target_tracking_metric_dimensions.TargetTrackingMetricDimensions"
    ]
    """<p>The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon Web Services services that publish CloudWatch metrics </a> in the <i>Amazon CloudWatch User Guide</i>. </p> <p>Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.</p>"""
    metric_name: NotRequired[
        "capo_application_auto_scaling.types.target_tracking_metric_name.TargetTrackingMetricName"
    ]
    """<p>The name of the metric.</p>"""
    namespace: NotRequired[
        "capo_application_auto_scaling.types.target_tracking_metric_namespace.TargetTrackingMetricNamespace"
    ]
    """<p>The namespace of the metric. For more information, see the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon Web Services services that publish CloudWatch metrics </a> in the <i>Amazon CloudWatch User Guide</i>.</p>"""

dimensions instance-attribute

dimensions: NotRequired[TargetTrackingMetricDimensions]

The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services 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.

metric_name instance-attribute

metric_name: NotRequired[TargetTrackingMetricName]

The name of the metric.

namespace instance-attribute

namespace: NotRequired[TargetTrackingMetricNamespace]

The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.