{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-circuit-breaker-config-response-schema.json",
  "title": "CircuitBreakerConfigResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-circuit-breaker-api-openapi.yml#/components/schemas/CircuitBreakerConfigResponse",
  "type": "object",
  "properties": {
    "source": {
      "type": "string",
      "enum": [
        "global",
        "tenant"
      ],
      "description": "Whether config is global defaults or tenant-specific"
    },
    "error_threshold": {
      "type": "integer",
      "description": "Number of errors in window to trigger auto-trip"
    },
    "violation_threshold": {
      "type": "integer",
      "description": "Number of policy violations in window to trigger auto-trip"
    },
    "window_seconds": {
      "type": "integer",
      "description": "Sliding window duration for counting events"
    },
    "default_timeout_seconds": {
      "type": "integer",
      "description": "How long a circuit stays open before auto-recovery"
    },
    "max_timeout_seconds": {
      "type": "integer",
      "description": "Maximum allowed circuit timeout"
    },
    "enable_auto_recovery": {
      "type": "boolean",
      "description": "Whether open circuits automatically close after timeout"
    },
    "tenant_id": {
      "type": "string",
      "description": "Tenant ID (present when source is tenant)"
    },
    "overrides": {
      "type": "object",
      "description": "Tenant-specific override values (present when source is tenant)"
    }
  }
}