Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Document the -1 disk usage sentinel in the API reference

rcourtman12e6b74ae290
diff --git a/docs/API.md b/docs/API.md
index e1be789e50..578c53e86c 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -113,6 +113,8 @@ Query params:
Note: `GET /api/resources` is optimized for list views. Some large, platform-specific fields may be omitted from the list response and are only returned by `GET /api/resources/{id}`.
+Note: guest disk usage percentages use `-1` as an "unknown" sentinel — reported when a VM is stopped or its guest agent is unavailable, so there is no filesystem view to measure. Consumers should treat negative values as "no data", not as a percentage; the accompanying `diskStatusReason` field (e.g. `vm-stopped`, `agent-disabled`) says why.
+
`GET /api/resources/stats`
Returns aggregations (counts + health rollups).