Kong · Schema

ProduceFailureMode

Describes how to handle a failure in a policy applied to produced records. * `reject` - rejects the record batch. * `passthrough` - passes the record silently to the backend cluster even though policy execution failed. * `mark` - passes the record to the backend cluster but marks it with a `kong/policy-failure-` header whose value is the reason for the policy failure (truncated to 512 characters).

API GatewayAI GatewayAI ConnectivityAgent GatewayEvent GatewayMCP RegistryService MeshLLMKafkaKonnectOpen Source
View JSON Schema on GitHub

JSON Schema

kong-producefailuremode-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ProduceFailureMode",
  "title": "ProduceFailureMode",
  "description": "Describes how to handle a failure in a policy applied to produced records.\n* `reject` - rejects the record batch.\n* `passthrough` - passes the record silently to the backend cluster even though policy execution failed.\n* `mark` - passes the record to the backend cluster but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).\n",
  "type": "string",
  "enum": [
    "reject",
    "passthrough",
    "mark"
  ],
  "x-speakeasy-unknown-values": "allow"
}