{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/placestack-com/json-schema/placestack-com-monitor-schema.json",
  "title": "Monitor",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/placestack-com-monitor-api-openapi.yml#/components/schemas/Monitor",
  "properties": {
    "object": {
      "type": "string",
      "const": "monitor",
      "title": "Object",
      "description": "The object's type. Always `monitor`.",
      "default": "monitor"
    },
    "id": {
      "type": "string",
      "pattern": "^mon_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "title": "Id",
      "description": "Unique identifier for the object."
    },
    "list": {
      "type": "string",
      "pattern": "^lst_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "title": "List",
      "description": "The id of the list watched."
    },
    "active": {
      "type": "boolean",
      "title": "Active",
      "description": "Whether the monitor produces events."
    },
    "event_type": {
      "items": {
        "type": "string",
        "enum": [
          "permit.created",
          "case.created"
        ]
      },
      "type": "array",
      "title": "Event Type",
      "description": "The event types the monitor reports. Any of `permit.created` and `case.created`."
    },
    "email_recipient": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Email Recipient",
      "description": "Email addresses of the members who receive a daily summary of the monitor's events. Empty when no one does."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "Time at which the object was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At",
      "description": "Time at which the object was last updated."
    },
    "href": {
      "type": "string",
      "title": "Href",
      "description": "The object's path in the API."
    }
  },
  "type": "object",
  "required": [
    "object",
    "id",
    "list",
    "active",
    "event_type",
    "email_recipient",
    "created_at",
    "updated_at",
    "href"
  ]
}