{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "health_watch.schema.json",
  "title": "health_watch",
  "description": "Run system_health and decide whether to alert: prints a message only on a new problem, a problem that has persisted past the re-alert window, or a recovery. Silent when healthy, so it is safe as a no_agent cron job. Returns: {action: silent|alert|recovery, overall, message, previous, state_file}.",
  "type": "object",
  "properties": {
    "state_file": {
      "type": "string",
      "description": "Where to remember the last status. Defaults to ~/.hermes/cron/state_system_health.json."
    },
    "realert_hours": {
      "type": "number",
      "description": "Re-announce a problem that is still present after this many hours.",
      "default": 12
    },
    "quiet_on_first_run": {
      "type": "boolean",
      "description": "Stay silent on the very first run even if the host is already unhealthy, so installing the watchdog never fires an instant alarm.",
      "default": true
    }
  },
  "additionalProperties": false
}
