{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hookpulse/json-schema/hookpulse-monitor-github-schema.json",
  "title": "MonitorGithub",
  "description": "The monitor of a GitHub Actions job, as the Action shows it in the job summary. It never carries the monitor ID: whoever has the ID pings it and silences the alarm, and a public repository's log is public.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hookpulse-github-api-openapi.yml#/components/schemas/MonitorGithub",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "`owner/repo/workflow.yml#job`, up to 80 characters."
    },
    "state": {
      "type": "string",
      "description": "One word for the state: `ok`, `waiting`, `late`, `paused` or `inactive`."
    },
    "cron": {
      "type": [
        "string",
        "null"
      ],
      "description": "The schedule the monitor expects, in UTC."
    },
    "grace_sec": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Tolerance after each scheduled time."
    },
    "next_expected_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Deadline of the next run, before the grace (UTC)."
    },
    "alert": {
      "type": "string",
      "description": "Where a miss goes: `url` (the `alert_url`), `account_email` (the verified e-mail of the key's account) or `none`."
    },
    "status_page": {
      "type": "string",
      "description": "Public read-only status page of the repository's monitors. Only when the repository owns the monitor."
    },
    "badge": {
      "type": "string",
      "description": "SVG badge of this monitor for the README. Same condition."
    },
    "dashboard": {
      "type": "string",
      "description": "Where the key's owner manages the monitor. Only with `X-Ingest-Key`."
    }
  },
  "required": [
    "name",
    "state",
    "cron",
    "grace_sec",
    "next_expected_at",
    "alert"
  ]
}