{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wordis-bond-com/json-schema/wordis-bond-com-monitor-input-schema.json",
  "title": "MonitorInput",
  "description": "A production monitor. `scenarioGoal` (+ optional `assertions` / `rubric`) is what the judge scores each call against — the same inputs a test suite uses. `sampleRate` and the plan monthly cap bound cost.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wordis-bond-com-openapi.json#/components/schemas/MonitorInput",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "scenarioGoal": {
      "type": "string"
    },
    "assertions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional natural-language checks the agent must satisfy."
    },
    "rubric": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional free-text rubric appended to the judge instructions."
    },
    "language": {
      "type": "string",
      "default": "en"
    },
    "enabled": {
      "type": "boolean",
      "default": true
    },
    "sampleRate": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "default": 1,
      "description": "Fraction of ingested calls to score."
    },
    "baselineWindow": {
      "type": "integer",
      "minimum": 2,
      "maximum": 500,
      "default": 20,
      "description": "Rolling-window size for the health baseline."
    },
    "minBaseline": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 5,
      "description": "Scored events required before drift can fire."
    },
    "alertEmail": {
      "type": "boolean",
      "default": true
    },
    "alertWebhookUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Optional signed outbound alert webhook. Public https, SSRF-validated at set time."
    }
  },
  "required": [
    "name",
    "scenarioGoal"
  ]
}