The legacy /stat/stadpi and /stat/sitedpi endpoints return empty data on UniFi Network 9.1+ (issue #834). The v2 /traffic endpoint already existed in the unifi library and in the collector, but was only called when both SaveTraffic and SaveDPI were enabled — most users only set SaveDPI=true and never saw any data. - Remove the SaveTraffic gate on GetClientTraffic; call it whenever SaveDPI is enabled, treating it as a DPI data source - Downgrade GetClientTraffic errors to debug-log so old firmware that lacks the v2 endpoint continues to use the legacy API without error - Add convertToSiteDPI to aggregate per-client v2 data into per-site DPITable entries, filling SitesDPI when the legacy endpoint is empty - Legacy API results are preserved; v2 data only supplements sites not already covered, so old-firmware users are unaffected Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| datadogunifi | ||
| influxunifi | ||
| inputunifi | ||
| lokiunifi | ||
| mysqlunifi | ||
| otelunifi | ||
| poller | ||
| promunifi | ||
| unittest | ||
| webserver | ||