Skip to content

get_gateway_stats

Report gateway resource stats: CPU, memory, temperature, throughput.

Side effects: None (read-only).

Returns a single record for the gateway (UCG/UDM) with cpu_pct, mem_pct, temperatures (a list of {name, type, value} in degrees C), uptime (seconds), tx_bytes/rx_bytes, num_sta, last_wan_ip, and speedtest_status. Returns {} if no gateway device is adopted on this controller.

get_gateway_stats(controller="default")
ParameterTypeRequiredDefaultDescription
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".