Files
Nexus/docs/changelog/2026-06-09-fleet-trend-alerts.md
T
Nexus Agent 7209f53af9 feat: 子机离线 Telegram 告警与仪表盘统计/趋势增强
离线边沿检测推送一次 Telegram(设置开关 notify_alert_offline);对齐仪表盘与服务器页统计卡、舰队趋势交互与告警叠加。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 17:16:48 +08:00

876 B

2026-06-09 — 舰队趋势图叠加告警与 10 分钟时间精度

变更摘要

/servers/fleet-metrics 各采样点附带 10 分钟窗口内 alert_logs;趋势图红色图钉标告警,悬停 tooltip 显示告警明细与时间(MM-DD HH:mm);时间轴最小粒度 10 分钟。

动机

趋势图缺告警上下文;悬停时间仅小时级、与 10 分钟采样不对齐。

涉及文件

  • server/utils/fleet_alert_buckets.py
  • server/api/servers.py
  • frontend/src/components/dashboard/FleetTrendEChart.vue
  • frontend/src/utils/fleetTrendAnalytics.ts
  • frontend/src/components/dashboard/DashboardFleetTrends.vue
  • tests/test_fleet_alert_buckets.py

迁移 / 重启

  • 需重启 API;前端 vite build

验证

pytest tests/test_fleet_alert_buckets.py tests/test_fleet_metrics.py -q
cd frontend && npm run type-check