Skip to main content

Health

Check the health status of PolarGrid edge services.

Health Check

GET /health
Check service health and available features.

Example

curl https://api.ymq-01.edge.polargrid.ai:55111/health \
  -H "Authorization: Bearer pg_your_api_key"

Response

{
  "status": "healthy",
  "service": "polargrid-edge-gateway",
  "runtime": "python",
  "timestamp": "2025-01-29T12:00:00Z",
  "features": {
    "text_inference": true,
    "voice": true,
    "dynamic_loading": true,
    "streaming": true
  },
  "backend": {
    "url": "http://localhost:8001",
    "healthy": true,
    "info": {
      "models_loaded": 2,
      "gpu_available": true
    }
  }
}

Status Values

StatusDescription
healthyAll systems operational
degradedPartial functionality available
unhealthyService unavailable

Features

FeatureDescription
text_inferenceChat and text completions
voiceTTS and STT
dynamic_loadingModel load/unload
streamingStreaming responses

CLI Health Check

You can also check health via the CLI:
# Check all regions
polargrid test health

# Check specific region
polargrid test health --region ymq-01