{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-ad-hoc-command-event-schema.json",
  "title": "AdHocCommandEvent",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-ad-hoc-command-events-api-openapi.yml#/components/schemas/AdHocCommandEvent",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "type": {
      "type": "string",
      "readOnly": true
    },
    "url": {
      "type": "string",
      "readOnly": true
    },
    "related": {
      "type": "string",
      "readOnly": true
    },
    "summary_fields": {
      "type": "string",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "readOnly": true
    },
    "modified": {
      "type": "string",
      "readOnly": true
    },
    "ad_hoc_command": {
      "type": "integer",
      "readOnly": true
    },
    "event": {
      "enum": [
        "runner_on_failed",
        "runner_on_ok",
        "runner_on_unreachable",
        "runner_on_skipped",
        "debug",
        "verbose",
        "deprecated",
        "warning",
        "system_warning",
        "error",
        null
      ],
      "type": [
        "string",
        "null"
      ],
      "description": "* `runner_on_failed` - Host Failed\n* `runner_on_ok` - Host OK\n* `runner_on_unreachable` - Host Unreachable\n* `runner_on_skipped` - Host Skipped\n* `debug` - Debug\n* `verbose` - Verbose\n* `deprecated` - Deprecated\n* `warning` - Warning\n* `system_warning` - System Warning\n* `error` - Error",
      "x-spec-enum-id": "3c8188cd2c554d8a"
    },
    "counter": {
      "type": "integer",
      "minimum": 0,
      "readOnly": true
    },
    "event_display": {
      "type": "string",
      "readOnly": true
    },
    "event_data": {
      "default": {}
    },
    "failed": {
      "type": "boolean",
      "readOnly": true
    },
    "changed": {
      "type": "boolean",
      "readOnly": true
    },
    "uuid": {
      "type": "string",
      "readOnly": true
    },
    "host": {
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true
    },
    "host_name": {
      "type": "string",
      "readOnly": true
    },
    "stdout": {
      "type": "string",
      "readOnly": true
    },
    "start_line": {
      "type": "integer",
      "minimum": 0,
      "readOnly": true
    },
    "end_line": {
      "type": "integer",
      "minimum": 0,
      "readOnly": true
    },
    "verbosity": {
      "type": "integer",
      "minimum": 0,
      "readOnly": true
    }
  },
  "required": [
    "event"
  ]
}