{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-get-query-results-response-schema.json",
  "title": "GetQueryResultsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-operations-api-openapi.yml#/components/schemas/GetQueryResultsResponse",
  "type": "object",
  "properties": {
    "columnInfo": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ColumnInformation"
      },
      "description": "A list of column metadata for the query results. Each entry contains the column name and data type. Present when the query status is COMPLETED."
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "The result rows. Each row is a list of string column values, positional to match the columnInfo order. Present when the query status is COMPLETED."
    },
    "nextToken": {
      "type": "string",
      "description": "The token for the next set of results, or null if there are no additional results."
    }
  },
  "$defs": {
    "ColumnInformation": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the column."
        },
        "type": {
          "type": "string",
          "description": "The data type of the column. Valid values are STRING, DOUBLE, BOOLEAN, INTEGER, TIMESTAMP, and VARIANT."
        }
      },
      "required": [
        "name",
        "type"
      ]
    }
  }
}