unifi_get_device_statistics
Retrieve real-time device health metrics: uptime, CPU/memory usage, uplink rates, and AP radio statistics for monitoring and troubleshooting.
Instructions
Get latest live statistics for a device. Returns: uptimeSec, lastHeartbeatAt, nextHeartbeatAt, loadAverage1/5/15Min, cpuUtilizationPct, memoryUtilizationPct, uplink (txRateBps, rxRateBps), interfaces.radios[] for APs ({frequencyGHz, txRetriesPct}). NOTE: verified against 10.5.43 — the Integration API does NOT expose per-switch-port byte/error/PoE-power counters here; port-level live stats are unavailable. Use for: device health and AP radio metrics. For config (channel, power, port assignment), use unifi_get_device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site ID | |
| deviceId | Yes | Device ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uplink | No | ||
| uptimeSec | No | ||
| interfaces | No | ||
| lastHeartbeatAt | No | ||
| loadAverage1Min | No | ||
| loadAverage5Min | No | ||
| nextHeartbeatAt | No | ||
| loadAverage15Min | No | ||
| cpuUtilizationPct | No | ||
| memoryUtilizationPct | No |