{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "insights/v1/events/honeybadger-ruby/perform.sidekiq.json",
  "title": "Sidekiq: perform",
  "description": "A Sidekiq job ran.",
  "x-hb": {
    "notifiers": [
      "honeybadger-ruby"
    ],
    "category": "jobs",
    "component": "Sidekiq"
  },
  "type": "object",
  "properties": {
    "event_type": {
      "type": "string",
      "const": "perform.sidekiq"
    },
    "jid": {
      "type": "string",
      "description": "Sidekiq job ID.",
      "examples": [
        "8f0c1d2e3a4b5c6d7e8f9a0b"
      ]
    },
    "worker": {
      "type": "string",
      "description": "Worker class name.",
      "examples": [
        "WelcomeEmailWorker"
      ]
    },
    "queue": {
      "type": "string",
      "description": "Queue the job ran on.",
      "examples": [
        "default"
      ]
    },
    "status": {
      "type": "string",
      "description": "Job execution outcome: 'success' if completed without exception, 'failure' if an exception was raised.",
      "examples": [
        "success"
      ]
    },
    "duration": {
      "type": "number",
      "description": "Execution duration in milliseconds.",
      "examples": [
        487.32
      ]
    },
    "request_id": {
      "type": "string",
      "description": "Rails request UUID from the active web request context, if any. Merged globally by the Honeybadger agent.",
      "examples": [
        "0f5e4bb2-3c46-4b1c-91d5-2f4e8a6b9c01"
      ]
    },
    "hostname": {
      "type": "string",
      "description": "Server hostname. Attached to every event by default (events.attach_hostname).",
      "examples": [
        "worker-1.example.com"
      ]
    },
    "environment": {
      "type": "string",
      "description": "Application environment, e.g. \"production\". Attached to every event by default (events.attach_environment).",
      "examples": [
        "production"
      ]
    }
  },
  "required": [
    "event_type",
    "jid",
    "worker",
    "queue"
  ]
}
