Get device statistics
unifi_get_device_statisticsRetrieve live device statistics to monitor UniFi device health, uptime, CPU, memory, uplink rates, and AP radio metrics.
Instructions
Get latest live statistics for a device. Returns: uptimeSec, lastHeartbeatAt, nextHeartbeatAt, loadAverage1/5/15Min, cpuUtilizationPct, memoryUtilizationPct, uplink (txRateBps, rxRateBps; absent on e.g. the ISP modem), interfaces.radios[] for APs ({frequencyGHz, txRetriesPct}; interfaces is {} for non-AP devices). NOTE: verified against 11.0.83 — 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 |