{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/placestack-com/json-schema/placestack-com-collection-monitor-schema.json",
  "title": "Collection[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/Collection_Monitor_",
  "properties": {
    "object": {
      "type": "string",
      "const": "list",
      "title": "Object",
      "description": "The object's type. Always `list`.",
      "default": "list"
    },
    "data": {
      "items": {
        "$ref": "#/$defs/Monitor"
      },
      "type": "array",
      "title": "Data",
      "description": "The results on this page."
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More",
      "description": "Whether there are more results after this page."
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Cursor",
      "description": "The cursor for the next page. Send it as `cursor`. Null on the last page."
    },
    "suppressed": {
      "type": "integer",
      "title": "Suppressed",
      "description": "The number of matching results withheld because the plan does not include them.",
      "default": 0
    },
    "total": {
      "anyOf": [
        {
          "$ref": "#/$defs/Total"
        },
        {
          "type": "null"
        }
      ],
      "description": "The number of matching results. Only on the first page, when `total=true` is sent. Null otherwise."
    }
  },
  "type": "object",
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor",
    "suppressed",
    "total"
  ],
  "$defs": {
    "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"
      ],
      "title": "Monitor"
    },
    "Total": {
      "properties": {
        "value": {
          "type": "integer",
          "title": "Value",
          "description": "The number of matching results."
        },
        "relation": {
          "type": "string",
          "enum": [
            "eq",
            "gte"
          ],
          "title": "Relation",
          "description": "One of `eq` (exact) or `gte` (at least `value`). Counts above 10,000 are `gte`."
        }
      },
      "type": "object",
      "required": [
        "value",
        "relation"
      ],
      "title": "Total",
      "description": "The number of matching results."
    }
  }
}