{
  "$defs": {
    "HealthState": {
      "description": "Health states for a provider endpoint.",
      "enum": [
        "up",
        "down",
        "unconfigured"
      ],
      "title": "HealthState",
      "type": "string"
    }
  },
  "description": "Result of a provider health probe.\n\nAttributes:\n    provider: The adapter/provider name.\n    state: One of :class:`HealthState`.\n    detail: Human-readable explanation.\n    fix: Actionable remediation when ``state`` is not :attr:`HealthState.UP`.\n    latency_ms: Round-trip latency of the probe, if a call was made.",
  "properties": {
    "provider": {
      "title": "Provider",
      "type": "string"
    },
    "state": {
      "$ref": "#/$defs/HealthState"
    },
    "detail": {
      "default": "",
      "title": "Detail",
      "type": "string"
    },
    "fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Fix"
    },
    "latency_ms": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Latency Ms"
    }
  },
  "required": [
    "provider",
    "state"
  ],
  "title": "HealthStatus",
  "type": "object"
}
