REST API
Create a key under Settings → API keys. Send it as a bearer token:
curl -H "Authorization: Bearer snk_..." https://sqlnirvana.pyrogroup.com/api/v1/servers
Endpoints
GET /api/v1/servers- every server with score, QPS, latency and open alertsGET /api/v1/servers/ID- checks and recommendationsGET /api/v1/servers/ID/metrics?range=24h- time series (1h, 6h, 24h, 7d, 30d)GET /api/v1/alerts?state=open- alertsPOST /api/v1/servers/ID/mutewithminutes- needs a write keyGET /api/v1/prometheus- Prometheus text format (see Prometheus and Grafana)
Limit: 120 requests a minute per key.