Amazon CloudWatch · JSON Structure

Cloudwatch Get Metric Data Response Structure

Response from the GetMetricData action

Type: object Properties: 2
CloudWatchMonitoringObservabilityMetricsLogs

GetMetricDataResponse is a JSON Structure definition published by Amazon CloudWatch, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

metricDataResults nextToken

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-cloudwatch/refs/heads/main/json-structure/cloudwatch-get-metric-data-response-structure.json",
  "name": "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"
    }
  }
}