{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/puzaricloud-in/json-schema/puzaricloud-in-monitor-out-schema.json",
  "title": "MonitorOut",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/puzaricloud-in-openapi.json#/components/schemas/MonitorOut",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "url": {
      "type": "string",
      "title": "Url"
    },
    "mode": {
      "type": "string",
      "title": "Mode"
    },
    "tags": {
      "items": {},
      "type": "array",
      "title": "Tags"
    },
    "selector": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Selector"
    },
    "keyword": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Keyword"
    },
    "interval_minutes": {
      "type": "integer",
      "title": "Interval Minutes"
    },
    "active": {
      "type": "boolean",
      "title": "Active"
    },
    "is_up": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Up"
    },
    "last_checked_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Checked At"
    },
    "last_changed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Changed At"
    },
    "last_status_code": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Status Code"
    },
    "last_latency_ms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Latency Ms"
    },
    "last_value": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Value"
    },
    "last_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Error"
    },
    "change_count": {
      "type": "integer",
      "title": "Change Count"
    },
    "ping_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ping Url"
    },
    "ssl_expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Expires At"
    },
    "domain_expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Domain Expires At"
    },
    "security_grade": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Security Grade"
    },
    "last_indicator": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Indicator"
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id"
    },
    "slo_target": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Slo Target"
    },
    "anomaly_alerts": {
      "type": "boolean",
      "title": "Anomaly Alerts",
      "default": false
    },
    "hb_value_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hb Value Min"
    },
    "hb_value_max": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hb Value Max"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "url",
    "mode",
    "tags",
    "selector",
    "keyword",
    "interval_minutes",
    "active",
    "is_up",
    "last_checked_at",
    "last_changed_at",
    "last_status_code",
    "last_latency_ms",
    "last_value",
    "last_error",
    "change_count"
  ]
}