Amazon EC2 Auto Scaling · JSON Structure

Ec2 Auto Scaling Metric Structure

Represents a specific metric.

Type: object Properties: 3 Required: 2
Amazon Web ServicesAuto ScalingComputeEC2High AvailabilityScaling

Metric is a JSON Structure definition published by Amazon EC2 Auto Scaling, describing 3 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

Namespace MetricName Dimensions

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$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-metric-structure.json",
  "name": "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"
  ]
}