{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-log-analytics/json-schema/azure-log-analytics-log-analytics-query-pack-query-schema.json",
  "title": "LogAnalyticsQueryPackQuery",
  "description": "A Log Analytics QueryPack-Query definition.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-log-analytics-subscriptions-api-openapi.yml#/components/schemas/LogAnalyticsQueryPackQuery",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/LogAnalyticsQueryPackQueryProperties",
      "description": "Properties that define an Log Analytics QueryPack-Query resource.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "LogAnalyticsQueryPackQueryProperties": {
      "type": "object",
      "description": "Properties that define an Log Analytics QueryPack-Query resource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique ID of your application. This field cannot be changed.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Unique display name for your query within the Query Pack."
        },
        "timeCreated": {
          "type": "string",
          "format": "date-time",
          "description": "Creation Date for the Log Analytics Query, in ISO 8601 format.",
          "readOnly": true
        },
        "timeModified": {
          "type": "string",
          "format": "date-time",
          "description": "Last modified date of the Log Analytics Query, in ISO 8601 format.",
          "readOnly": true
        },
        "author": {
          "type": "string",
          "description": "Object Id of user creating the query.",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "description": "Description of the query."
        },
        "body": {
          "type": "string",
          "description": "Body of the query."
        },
        "related": {
          "$ref": "#/$defs/LogAnalyticsQueryPackQueryPropertiesRelated",
          "description": "The related metadata items for the function."
        },
        "tags": {
          "type": "object",
          "description": "Tags associated with the query.",
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "properties": {
          "description": "Additional properties that can be set for the query."
        }
      },
      "required": [
        "displayName",
        "body"
      ]
    },
    "LogAnalyticsQueryPackQueryPropertiesRelated": {
      "type": "object",
      "description": "The related metadata items for the function.",
      "properties": {
        "categories": {
          "type": "array",
          "description": "The related categories for the function.",
          "items": {
            "type": "string"
          }
        },
        "resourceTypes": {
          "type": "array",
          "description": "The related resource types for the function.",
          "items": {
            "type": "string"
          }
        },
        "solutions": {
          "type": "array",
          "description": "The related Log Analytics solutions for the function.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "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"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    }
  }
}