{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.connectsoft.ai/reference/schemas/blueprint-observability.schema.json",
  "title": "Observability Blueprint (blueprint-observability-v1)",
  "description": "Descriptor document of the Observability Blueprint kind (BC-02). Validated by BlueprintService; metadata per blueprint-common.schema.json; generation outputs and validation rules per model/blueprints.yaml.",
  "type": "object",
  "required": [
    "metadata",
    "telemetry",
    "healthChecks",
    "objectives"
  ],
  "additionalProperties": false,
  "properties": {
    "metadata": {
      "$ref": "blueprint-common.schema.json#/$defs/Metadata"
    },
    "telemetry": {
      "type": "object",
      "required": [
        "traces",
        "metrics",
        "logs"
      ],
      "properties": {
        "traces": {
          "type": "boolean"
        },
        "metrics": {
          "type": "boolean"
        },
        "logs": {
          "type": "boolean"
        },
        "genAiConventions": {
          "type": "boolean"
        },
        "rawPromptLogging": {
          "enum": [
            "off"
          ]
        }
      },
      "additionalProperties": false
    },
    "healthChecks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "kind"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "liveness",
              "readiness",
              "dependency"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "objectives": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "kind",
          "target",
          "window"
        ],
        "properties": {
          "kind": {
            "type": "string"
          },
          "target": {
            "type": "number"
          },
          "window": {
            "type": "string"
          },
          "editionFloor": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "dashboards": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
