The Statistics page (top bar) shows what Netlens knows, in groups: History (devices online per hour or day, devices over time, events per day), What is on the network (by type, group, vendor, operating system, subnet, wired versus Wi-Fi and clients per mesh node when a router plugin is on), How well Netlens knows its devices (devices of unknown type, with a private address, without manufacturer, name or operating system, set by hand or scanned gently, and what passive listening has heard), Availability (network uptime 24 h/7 d/30 d, least and most reliable devices, flapping devices, who has been offline longest, slowest responders), Ports and services (counts only: open ports, most common ports and services, devices with the most open ports, newly opened ports), Network structure (depth, busiest parents, where the hierarchy comes from, guests per hypervisor host), Scans (counts, median/95th percentile/longest duration per kind, hosts found per scan, host timeouts), Events and System (version, database and schema, manufacturer registry, backups, DHCP servers, plugin health). A row of buttons under the title jumps to every group (it stays in view while you scroll and highlights where you are), and a refresh keeps your place on the page. The period buttons (24 hours to 90 days) set the window of the history, scan and event groups and are remembered per browser; the page refreshes itself every minute.
The history charts use the uptime checks (kept 90 days) and a daily snapshot (devices, online, new devices, open ports, events, scans) that Netlens stores after every scan and keeps for 400 days, so “devices over time” fills in as the days go by. The data comes from GET /api/stats?range=7d (24h, 7d, 30d or 90d). GET /api/stats/summary is a small, versioned document (api: 1) with the headline numbers, scan state, plugin health, a problem flag and a compact device list; it is what the Home Assistant integration polls (it also carries flapping devices, the identification counts, the backup result, DHCP servers, DNS registration, container health and passive listening). Both answers are cached for 30 seconds. GET /api/events?since_id=<id> returns only events newer than an id.
Traffic by category, traffic flow and roaming
When a router plugin counts traffic, Statistics → Network groups it by category and draws the traffic flow and the roaming of Wi-Fi clients: see Traffic by category, traffic flow and roaming.