feat(ops): 集成实时流量API接口

- 添加实时流量handler处理逻辑
- 注册实时流量路由
- 扩展ops service接口定义
This commit is contained in:
IanShaw027
2026-01-12 14:17:58 +08:00
parent 5526f122b7
commit 62771583e7
3 changed files with 96 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ func registerOpsRoutes(admin *gin.RouterGroup, h *handler.Handlers) {
// Realtime ops signals
ops.GET("/concurrency", h.Admin.Ops.GetConcurrencyStats)
ops.GET("/account-availability", h.Admin.Ops.GetAccountAvailability)
ops.GET("/realtime-traffic", h.Admin.Ops.GetRealtimeTrafficSummary)
// Alerts (rules + events)
ops.GET("/alert-rules", h.Admin.Ops.ListAlertRules)