{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grepr/json-schema/grepr-external-trigger-payload-schema.json",
  "title": "ExternalTriggerPayload",
  "description": "Payload that define attributes that will fire an external source trigger.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grepr-external-triggers-api-openapi.yml#/components/schemas/ExternalTriggerPayload",
  "properties": {
    "jobId": {
      "description": "ID of the job that the trigger is meant for.",
      "type": "string"
    },
    "logsRuleEngineName": {
      "description": "Name of the rule engine that will process the trigger. This must exist in the corresponding Grepr job graph.",
      "type": "string"
    },
    "triggerId": {
      "description": "ID of the external source trigger that should be triggered. This must exist in the Logs Rule Engine configuration of the corresponding job",
      "type": "string"
    },
    "variables": {
      "additionalProperties": {
        "$ref": "#/$defs/Any"
      },
      "description": "Variables needed by the conditions that get activated when the corresponding triggers gets fired. ",
      "type": "object"
    }
  },
  "required": [
    "jobId",
    "logsRuleEngineName",
    "triggerId"
  ],
  "type": "object",
  "$defs": {
    "Any": {
      "description": "A value that can be a primitive (String or number), a list, or a map."
    }
  }
}