Amazon EC2 Auto Scaling · Schema
Metric
Represents a specific metric.
Amazon Web ServicesAuto ScalingComputeEC2High AvailabilityScaling
Properties
| Name | Type | Description |
|---|---|---|
| Namespace | object | |
| MetricName | object | |
| Dimensions | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-ec2-auto-scaling/refs/heads/main/json-schema/ec2-auto-scaling-metric-schema.json",
"title": "Metric",
"description": "Represents a specific metric. ",
"type": "object",
"properties": {
"Namespace": {
"allOf": [
{
"$ref": "#/components/schemas/MetricNamespace"
},
{
"description": "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>."
}
]
},
"MetricName": {
"allOf": [
{
"$ref": "#/components/schemas/MetricName"
},
{
"description": "The name of the metric."
}
]
},
"Dimensions": {
"allOf": [
{
"$ref": "#/components/schemas/MetricDimensions"
},
{
"description": "<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>"
}
]
}
},
"required": [
"Namespace",
"MetricName"
]
}