{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-managed-instance-query-statistics-schema.json",
  "title": "ManagedInstanceQueryStatistics",
  "description": "Execution statistics for one particular query",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-manageddatabasequeries-api-openapi.yml#/components/schemas/ManagedInstanceQueryStatistics",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The QueryStatistics items on this page",
      "items": {
        "$ref": "#/$defs/QueryStatistics"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "QueryMetricInterval": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "QueryStatistics": {
      "type": "object",
      "properties": {
        "properties": {
          "$ref": "#/$defs/QueryStatisticsProperties",
          "description": "Resource properties.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "QueryStatisticsProperties": {
      "type": "object",
      "description": "Properties of a query execution statistics.",
      "properties": {
        "databaseName": {
          "type": "string",
          "description": "Database name of the database in which this query was executed.",
          "readOnly": true
        },
        "queryId": {
          "type": "string",
          "description": "Unique query id (unique within one database).",
          "readOnly": true
        },
        "startTime": {
          "type": "string",
          "description": "The start time for the metric (ISO-8601 format).",
          "readOnly": true
        },
        "endTime": {
          "type": "string",
          "description": "The end time for the metric (ISO-8601 format).",
          "readOnly": true
        },
        "intervals": {
          "type": "array",
          "description": "List of intervals with appropriate metric data",
          "items": {
            "$ref": "#/$defs/QueryMetricInterval"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}