Amazon CloudWatch · Schema

Metric

Represents a specific metric

CloudWatchMonitoringObservabilityMetricsLogs

Properties

Name Type Description
namespace string The namespace of the metric
metricName string The name of the metric
dimensions array The dimensions for the metric
View JSON Schema on GitHub

JSON Schema

cloudwatch-metric-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-cloudwatch/refs/heads/main/json-schema/cloudwatch-metric-schema.json",
  "title": "Metric",
  "description": "Represents a specific metric",
  "type": "object",
  "properties": {
    "namespace": {
      "type": "string",
      "description": "The namespace of the metric"
    },
    "metricName": {
      "type": "string",
      "description": "The name of the metric"
    },
    "dimensions": {
      "type": "array",
      "description": "The dimensions for the metric",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the dimension"
          },
          "value": {
            "type": "string",
            "description": "The value of the dimension"
          }
        }
      }
    }
  }
}