{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-ec2-auto-scaling/refs/heads/main/json-structure/ec2-auto-scaling-enable-metrics-collection-query-structure.json", "name": "EnableMetricsCollectionQuery", "description": "EnableMetricsCollectionQuery schema from Auto Scaling", "type": "object", "properties": { "AutoScalingGroupName": { "allOf": [ { "$ref": "#/components/schemas/XmlStringMaxLen255" }, { "description": "The name of the Auto Scaling group." } ] }, "Metrics": { "allOf": [ { "$ref": "#/components/schemas/Metrics" }, { "description": "

Identifies the metrics to enable.

You can specify one or more of the following metrics:

If you specify Granularity and don't specify any metrics, all metrics are enabled.

For more information, see Auto Scaling group metrics in the Amazon EC2 Auto Scaling User Guide.

" } ] }, "Granularity": { "allOf": [ { "$ref": "#/components/schemas/XmlStringMaxLen255" }, { "description": "The frequency at which Amazon EC2 Auto Scaling sends aggregated data to CloudWatch. The only valid value is 1Minute." } ] } }, "required": [ "AutoScalingGroupName", "Granularity" ] }