Lukas
9242b4709a
Add GET /api/dashboard/bans/trend endpoint
Implement time-bucketed ban aggregation for dashboard trend charts:
- Add BanTrendBucket / BanTrendResponse Pydantic models and
BUCKET_SECONDS / BUCKET_SIZE_LABEL / bucket_count helpers to ban.py
- Add ban_service.ban_trend(): queries fail2ban DB with SQL bucket
grouping, fills zero-count buckets, respects origin filter
- Add GET /api/dashboard/bans/trend route in dashboard.py
- 20 new tests (10 service, 10 router); 480 total pass, 83% coverage
- ruff + mypy --strict clean
2026-03-11 16:38:19 +01:00
..
2026-03-06 20:33:42 +01:00
2026-03-10 19:16:00 +01:00
2026-03-07 20:03:43 +01:00
2026-03-06 18:59:36 +01:00
2026-03-11 16:38:19 +01:00
2026-03-03 20:38:32 +01:00
2026-03-07 20:03:43 +01:00
2026-03-01 19:21:30 +01:00