{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnautical-com/json-schema/arcnautical-com-vessel-monitor-schema.json",
  "title": "VesselMonitor",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnautical-com-vessel-monitors-api-openapi.yml#/components/schemas/VesselMonitor",
  "type": "object",
  "required": [
    "id",
    "imo",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "imo": {
      "type": "string"
    },
    "vessel_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "deleted"
      ]
    },
    "customer_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "baseline_verdict": {
      "type": [
        "object",
        "null"
      ],
      "description": "The verdict changes are measured against. Null until the first run. Keys are snake_case (sanctions.coverage_complete, sanctions.coverage_gaps); the camelCase twins (coverageComplete, coverageGaps) are deprecated and will be removed after the notice on /developers/stability/."
    },
    "previous_verdict": {
      "type": [
        "object",
        "null"
      ],
      "description": "The verdict the baseline replaced at the last confirmed change. Same keys as baseline_verdict; the vessel_risk.changed webhook carries it in this shape too."
    },
    "verdict_changed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "degraded": {
      "type": "boolean",
      "description": "True when the last screen came back INCOMPLETE. While degraded the baseline is deliberately NOT updated, and silence means \"we could not see\", not \"nothing changed\"."
    },
    "last_screening_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "last_run_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "next_run_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}