{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-describe-queries-response-schema.json",
  "title": "DescribeQueriesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-query-api-openapi.yml#/components/schemas/DescribeQueriesResponse",
  "type": "object",
  "properties": {
    "queries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/QueryInfo"
      },
      "description": "The list of queries that match the request."
    },
    "nextToken": {
      "type": "string"
    }
  },
  "$defs": {
    "QueryInfo": {
      "type": "object",
      "properties": {
        "queryLanguage": {
          "type": "string",
          "enum": [
            "CWLI",
            "SQL",
            "PPL"
          ],
          "description": "The query language used for this query. For more information about the query languages that CloudWatch Logs supports, see Supported query languages."
        },
        "queryId": {
          "type": "string",
          "description": "The unique ID number of this query."
        },
        "queryString": {
          "type": "string",
          "description": "The query string used in this query."
        },
        "status": {
          "type": "string",
          "enum": [
            "Scheduled",
            "Running",
            "Complete",
            "Failed",
            "Cancelled",
            "Timeout",
            "Unknown"
          ],
          "description": "The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown."
        },
        "createTime": {
          "type": "integer",
          "description": "The date and time that this query was created."
        },
        "logGroupName": {
          "type": "string",
          "description": "The name of the log group scanned by this query."
        },
        "queryDuration": {
          "type": "integer",
          "description": "The duration in milliseconds that the query took to execute."
        },
        "bytesScanned": {
          "type": "number",
          "description": "The total number of bytes scanned by the query. This indicates the cost associated with the query."
        },
        "userIdentity": {
          "type": "string",
          "description": "The ARN of the user who ran the query."
        }
      }
    }
  }
}