OG T
411880842f
refactor(router): R4 #129 AlertAnalyzer 遷移至 services 層
ADR-024 Router 層瘦身 R4: 將業務邏輯從 Router 移出至正確層次。
變更:
- 新增 src/models/webhook.py: AlertPayload + AlertResponse 移至 models 層
- 新增 src/services/alert_analyzer_service.py: AlertAnalyzer (141行) 移至 services 層
- RISK_MAPPING / ACTION_MAPPING / BLAST_RADIUS_MAPPING 對應表
- analyze() 方法含 K8s 資源名稱正規化 (ADR-016)
- webhooks.py: 移除重複定義,改為 import,-243行
Router 層 webhooks.py 已符合 ADR-024 禁止清單規範:
AlertAnalyzer 不再存在於 Router 層。
R4 狀態: #127✅ #128✅ #129✅ #130✅ (全部完成)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 09:27:23 +08:00
..
2026-03-26 16:06:20 +08:00
2026-03-26 16:06:20 +08:00
2026-03-29 21:16:50 +08:00
2026-04-01 09:27:23 +08:00
2026-03-31 16:25:00 +08:00
2026-03-22 18:57:44 +08:00
2026-03-22 18:57:44 +08:00
2026-03-31 14:03:34 +08:00
2026-03-29 15:27:49 +08:00
2026-03-31 13:57:10 +08:00
2026-03-29 17:05:20 +08:00
2026-03-22 18:57:44 +08:00
2026-03-26 00:32:19 +08:00