{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/isovalent/json-schema/isovalent-health-status-response-schema.json",
  "title": "HealthStatusResponse",
  "description": "Connectivity status to other daemons",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/isovalent-connectivity-api-openapi.yml#/components/schemas/HealthStatusResponse",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "string"
    },
    "probeInterval": {
      "description": "Interval in seconds between probes",
      "type": "string"
    },
    "local": {
      "description": "Description of the local node",
      "$ref": "#/$defs/SelfStatus"
    },
    "nodes": {
      "description": "Connectivity status to each other node",
      "type": "array",
      "items": {
        "$ref": "#/$defs/NodeStatus"
      }
    }
  },
  "$defs": {
    "ConnectivityStatus": {
      "description": "Connectivity status of a path",
      "type": "object",
      "properties": {
        "latency": {
          "description": "Round trip time to node in nanoseconds",
          "type": "integer"
        },
        "status": {
          "type": "string",
          "description": "Human readable status/error/warning message"
        },
        "lastProbed": {
          "description": "Timestamp of last probe completion",
          "type": "string"
        }
      }
    },
    "EndpointStatus": {
      "description": "Connectivity status to host cilium-health endpoints via different paths\n",
      "properties": {
        "primary-address": {
          "$ref": "#/$defs/PathStatus"
        },
        "secondary-addresses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PathStatus"
          }
        }
      }
    },
    "HostStatus": {
      "description": "Connectivity status to host cilium-health instance via different paths,\nprobing via all known IP addresses\n",
      "properties": {
        "primary-address": {
          "$ref": "#/$defs/PathStatus"
        },
        "secondary-addresses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PathStatus"
          }
        }
      }
    },
    "NodeStatus": {
      "description": "Connectivity status of a remote cilium-health instance",
      "type": "object",
      "properties": {
        "name": {
          "description": "Identifying name for the node",
          "type": "string"
        },
        "host": {
          "description": "Connectivity status to cilium-health instance on node IP",
          "$ref": "#/$defs/HostStatus"
        },
        "health-endpoint": {
          "description": "Connectivity status to simulated endpoint on the node",
          "$ref": "#/$defs/EndpointStatus"
        },
        "endpoint": {
          "description": "DEPRECATED: Please use the health-endpoint field instead, which\nsupports reporting the status of different addresses for the endpoint\n",
          "$ref": "#/$defs/PathStatus"
        }
      }
    },
    "PathStatus": {
      "description": "Connectivity status via different paths, for example using different\npolicies or service redirection\n",
      "type": "object",
      "properties": {
        "ip": {
          "description": "IP address queried for the connectivity status",
          "type": "string"
        },
        "icmp": {
          "description": "Basic ping connectivity status to node IP",
          "$ref": "#/$defs/ConnectivityStatus"
        },
        "http": {
          "description": "Connectivity status without policy applied",
          "$ref": "#/$defs/ConnectivityStatus"
        }
      }
    },
    "SelfStatus": {
      "description": "Description of the cilium-health node",
      "type": "object",
      "properties": {
        "name": {
          "description": "Name associated with this node",
          "type": "string"
        }
      }
    }
  }
}