Amazon CloudWatch · Schema

GetMetricDataResponse

Response from the GetMetricData action

CloudWatchMonitoringObservabilityMetricsLogs

Properties

Name Type Description
metricDataResults array The metrics that are returned
nextToken string Token for the next page of results
View JSON Schema on GitHub

JSON Schema

cloudwatch-get-metric-data-response-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-get-metric-data-response-schema.json",
  "title": "GetMetricDataResponse",
  "description": "Response from the GetMetricData action",
  "type": "object",
  "properties": {
    "metricDataResults": {
      "type": "array",
      "description": "The metrics that are returned",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The short name specified in the query"
          },
          "label": {
            "type": "string",
            "description": "The human-readable label for the metric"
          },
          "timestamps": {
            "type": "array",
            "description": "The timestamps for the data points",
            "items": {
              "type": "string",
              "format": "date-time"
            }
          },
          "values": {
            "type": "array",
            "description": "The data point values",
            "items": {
              "type": "number"
            }
          },
          "statusCode": {
            "type": "string",
            "description": "The status of the returned data",
            "enum": [
              "Complete",
              "InternalError",
              "PartialData",
              "Forbidden"
            ]
          }
        }
      }
    },
    "nextToken": {
      "type": "string",
      "description": "Token for the next page of results"
    }
  }
}