EnableMetricsCollectionQuery
¶
Source code in docs_src/capo_auto_scaling/types/enable_metrics_collection_query.py
auto_scaling_group_name
instance-attribute
¶
auto_scaling_group_name: NotRequired[XmlStringMaxLen255]
The name of the Auto Scaling group.
granularity
instance-attribute
¶
granularity: NotRequired[XmlStringMaxLen255]
The frequency at which Amazon EC2 Auto Scaling sends aggregated data to CloudWatch. The only valid value is 1Minute.
metrics
instance-attribute
¶
metrics: NotRequired[Metrics]
Identifies the metrics to enable.
You can specify one or more of the following metrics:
-
GroupMinSize -
GroupMaxSize -
GroupDesiredCapacity -
GroupInServiceInstances -
GroupPendingInstances -
GroupStandbyInstances -
GroupTerminatingInstances -
GroupTotalInstances -
GroupInServiceCapacity -
GroupPendingCapacity -
GroupStandbyCapacity -
GroupTerminatingCapacity -
GroupTotalCapacity -
WarmPoolDesiredCapacity -
WarmPoolWarmedCapacity -
WarmPoolPendingCapacity -
WarmPoolTerminatingCapacity -
WarmPoolTotalCapacity -
GroupAndWarmPoolDesiredCapacity -
GroupAndWarmPoolTotalCapacity
If you specify Granularity and don't specify any metrics, all metrics are enabled.
For more information, see Amazon CloudWatch metrics for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.