{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-dev-loki-type-query-result",
  "title": "Loki Query Result",
  "section": "Library asset reference",
  "description": "Reusable Loki Query Result contract.",
  "kind": "type",
  "url": "/wiki/reference-dev-loki-type-query-result/",
  "markdown": "/wiki/reference-dev-loki-type-query-result/index.md",
  "json": "/wiki/reference-dev-loki-type-query-result/index.json",
  "headings": [
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "configuration-schema",
      "title": "Configuration schema",
      "depth": 2
    },
    {
      "id": "source-and-installed-versions",
      "title": "Source and installed versions",
      "depth": 2
    }
  ],
  "sources": [
    "../OpenNodeFlow-Library/work/catalog-all.mjs",
    "../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs",
    "../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs",
    "shared/seed.ts",
    "shared/storage-library.ts",
    "shared/variable-library.ts",
    "shared/control-flow.ts",
    "shared/remote-routes.ts",
    "server/runtime-library.ts",
    "shared/error-library.ts",
    "shared/storage-model.ts",
    "shared/builtin-documentation.ts"
  ],
  "family": "loki",
  "pack": "pack_loki",
  "contract": {
    "key": "dev.loki.type.query-result",
    "slug": "dev-loki-type-query-result",
    "name": "Loki Query Result",
    "kind": "type",
    "family": "loki",
    "packId": "pack_loki",
    "category": "Developer integrations",
    "description": "Reusable Loki Query Result contract.",
    "inputs": [],
    "outputs": [],
    "configSchema": {
      "type": "object",
      "properties": {},
      "additionalProperties": false
    },
    "documentation": "Loki Query Result preserves known provider fields and explicit JSON extensions. It is shared across the Loki operations that use this resource. Optional absence and explicit null are distinct.\n\nSchema:\n\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"resultType\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"streams\",\n        \"vector\",\n        \"matrix\",\n        \"scalar\"\n      ]\n    },\n    \"result\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/ONFJsonValue\"\n      }\n    },\n    \"stats\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/ONFJsonValue\"\n      }\n    }\n  },\n  \"additionalProperties\": {\n    \"$ref\": \"#/definitions/ONFJsonValue\"\n  },\n  \"definitions\": {\n    \"ONFJsonValue\": {\n      \"anyOf\": [\n        {\n          \"type\": \"null\"\n        },\n        {\n          \"type\": \"string\"\n        },\n        {\n          \"type\": \"number\"\n        },\n        {\n          \"type\": \"boolean\"\n        },\n        {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/definitions/ONFJsonValue\"\n          }\n        },\n        {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/ONFJsonValue\"\n          }\n        }\n      ]\n    }\n  }\n}\n```\n\nSource: https://grafana.com/docs/loki/latest/reference/loki-http-api/\n\nPure type; no credentials or external effects.",
    "schema": {
      "type": "object",
      "properties": {
        "resultType": {
          "type": "string",
          "enum": [
            "streams",
            "vector",
            "matrix",
            "scalar"
          ]
        },
        "result": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ONFJsonValue"
          }
        },
        "stats": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/ONFJsonValue"
          }
        }
      },
      "additionalProperties": {
        "$ref": "#/definitions/ONFJsonValue"
      },
      "definitions": {
        "ONFJsonValue": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ONFJsonValue"
              }
            },
            {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/definitions/ONFJsonValue"
              }
            }
          ]
        }
      }
    },
    "runtime": "javascript",
    "tags": [
      "developer-packs",
      "loki",
      "type"
    ],
    "source": "developer-catalog"
  }
}
