{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xn--82czbx2bczd4fl8a.online/agent-observability/logs-schema.json",
  "title": "Agent Log (OTLP-compatible)",
  "type": "object",
  "required": [
    "timeUnixNano",
    "severityNumber",
    "body"
  ],
  "properties": {
    "timeUnixNano": {
      "type": "string"
    },
    "severityNumber": {
      "type": "integer",
      "minimum": 1,
      "maximum": 24
    },
    "severityText": {
      "enum": [
        "TRACE",
        "DEBUG",
        "INFO",
        "WARN",
        "ERROR",
        "FATAL"
      ]
    },
    "body": {
      "type": "string"
    },
    "traceId": {
      "type": "string"
    },
    "spanId": {
      "type": "string"
    },
    "attributes": {
      "type": "object"
    },
    "resource": {
      "type": "object",
      "properties": {
        "service.name": {
          "const": "agent-gateway"
        }
      }
    }
  }
}