{ "$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-customized-metric-specification-structure.json", "name": "CustomizedMetricSpecification", "description": "

Represents a CloudWatch metric of your choosing for a target tracking scaling policy to use with Amazon EC2 Auto Scaling.

To create your customized metric specification:

For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts.

Each individual service provides information about the metrics, namespace, and dimensions they use. For more information, see Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

", "type": "object", "properties": { "MetricName": { "allOf": [ { "$ref": "#/components/schemas/MetricName" }, { "description": "The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics." } ] }, "Namespace": { "allOf": [ { "$ref": "#/components/schemas/MetricNamespace" }, { "description": "The namespace of the metric." } ] }, "Dimensions": { "allOf": [ { "$ref": "#/components/schemas/MetricDimensions" }, { "description": "

The dimensions of the metric.

Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

" } ] }, "Statistic": { "allOf": [ { "$ref": "#/components/schemas/MetricStatistic" }, { "description": "The statistic of the metric." } ] }, "Unit": { "allOf": [ { "$ref": "#/components/schemas/MetricUnit" }, { "description": "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." } ] }, "Metrics": { "allOf": [ { "$ref": "#/components/schemas/TargetTrackingMetricDataQueries" }, { "description": "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." } ] } } }