Add a rolling short-window view alongside the since-start totals. metrics.py
keeps per-minute buckets (epoch-minute -> {key: count}) for inbound categories
and outbound sources, summed over the last 10 minutes on snapshot() and exposed
as inbound_recent / outbound_recent / window_minutes. Cheap and bounded — at most
WINDOW+1 tiny dicts, pruned as minutes roll off; self-polling still excluded.
The dashboard's TRAFFIC section now renders that count as a dim column next to
each row's total (header reads "total · last 10m"); idle sources show "-".
|
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_api.py | ||
| test_api_accounts.py | ||
| test_climate.py | ||
| test_content.py | ||
| test_grading.py | ||
| test_grid.py | ||
| test_metrics.py | ||
| test_notify.py | ||
| test_places.py | ||
| test_store.py | ||
| test_views.py | ||