Clients UI: show several sessions of one user
- API: /api/v1/stats returns sessions_count and sessions per client - UI: badge "xN", "N devices", expandable session list, Active Sessions KPI - deploy/ui-dist rebuilt, docs: plan, summary, API reference, UI architecture Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4815821f17
commit
1bbf9b7cc1
24 files changed
+229
-19
No files matched your search
@@ -142,6 +142,7 @@ Returns a snapshot of all known clients.
|
||||
Field notes (a user with several simultaneous sessions is one record):
|
||||
- `current_recv_rate_mbps` / `current_sent_rate_mbps`: peak over the last 30 seconds of the **sum of the rates of all sessions** of the user at one tick (not the rate of a single session).
|
||||
- `real_address`: the address of the session with the latest start. `last_bytes_received/sent` (table `clients`): the sum of the current counters of all active sessions. Per-session values are in `GET /sessions`.
|
||||
- `sessions_count` and `sessions`: the active sessions of the user from `active_sessions` (`real_address`, `connected_since` in UTC, `bytes_received`, `bytes_sent`, `received_mb`, `sent_mb`). `0` and `[]` for a disconnected client or when the table is absent. The Clients page uses them for the "×N" badge and the list of devices.
|
||||
- In `GET /stats/<common_name>` the history of every interval has the volume and the rate summed over the user's sessions (rate: `MAX` over the interval of the per-tick sum).
|
||||
|
||||
#### Example Response
|
||||
|
||||
Reference in new issue
Block a user