CustomizedMetricSpecification
¶
Source code in docs_src/capo_application_auto_scaling/types/customized_metric_specification.py
dimensions
instance-attribute
¶
dimensions: NotRequired[MetricDimensions]
The dimensions of the metric.
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[MetricName]
The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metric object that's returned by a call to ListMetrics.
metrics
instance-attribute
¶
metrics: NotRequired[TargetTrackingMetricDataQueries]
The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.
unit
instance-attribute
¶
unit: NotRequired[MetricUnit]
The unit of the metric. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.