{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-dev-prometheus-type-alert-decode",
  "title": "Prometheus Alert Decode",
  "section": "Library asset reference",
  "description": "Expand Prometheus Alert without losing unknown fields.",
  "kind": "node",
  "url": "/wiki/reference-dev-prometheus-type-alert-decode/",
  "markdown": "/wiki/reference-dev-prometheus-type-alert-decode/index.md",
  "json": "/wiki/reference-dev-prometheus-type-alert-decode/index.json",
  "headings": [
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "outputs",
      "title": "Outputs",
      "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": "prometheus",
  "pack": "pack_prometheus",
  "contract": {
    "key": "dev.prometheus.type.alert.decode",
    "slug": "dev-prometheus-type-alert-decode",
    "name": "Prometheus Alert Decode",
    "kind": "node",
    "family": "prometheus",
    "packId": "pack_prometheus",
    "category": "Developer integrations",
    "description": "Expand Prometheus Alert without losing unknown fields.",
    "inputs": [
      {
        "id": "exec",
        "name": "Execute",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value",
        "name": "Value",
        "type": "@dev.prometheus.type.alert",
        "typeName": "Prometheus Alert",
        "typeKey": "dev.prometheus.type.alert",
        "typeVersion": 1,
        "required": true
      }
    ],
    "outputs": [
      {
        "id": "next",
        "name": "Next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "labels",
        "name": "Labels",
        "type": "def_f9962f86c7f4",
        "typeName": "Named contract",
        "typeVersion": 1,
        "required": false
      },
      {
        "id": "annotations",
        "name": "Annotations",
        "type": "def_f9962f86c7f4",
        "typeName": "Named contract",
        "typeVersion": 1,
        "required": false
      },
      {
        "id": "state",
        "name": "State",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "activeAt",
        "name": "ActiveAt",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "value",
        "name": "Value",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "remainder",
        "name": "Remainder",
        "type": "def_f9962f86c7f4",
        "typeName": "Named contract",
        "typeVersion": 1,
        "required": true
      },
      {
        "id": "error",
        "name": "On error",
        "type": "control",
        "typeName": "Control",
        "required": false
      }
    ],
    "configSchema": {
      "type": "object",
      "properties": {},
      "additionalProperties": false
    },
    "documentation": "Expand Prometheus Alert without losing unknown fields.\n\nInputs: value (required). Outputs: labels, annotations, state, activeAt, value, remainder.\n\nPure transformation; no provider requests, persistent state or credentials. Record codecs reject remainder collisions with declared fields. Missing optional fields stay absent; explicit null follows the pinned schema. List codecs select/reinsert one item at index; an empty list omits item and requires index zero. Connect only optional outputs present for your case.\n\nUses the exact shared Prometheus Alert version. Encode output validates the complete resource schema; scalar codec ports do not weaken it.",
    "runtime": "javascript",
    "tags": [
      "codec",
      "developer-packs",
      "prometheus"
    ],
    "source": "developer-catalog"
  }
}
