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

@@ -17,6 +17,8 @@ type OpsRepository interface {
// Lightweight window stats (for realtime WS / quick sampling).
GetWindowStats(ctx context.Context, filter *OpsDashboardFilter) (*OpsWindowStats, error)
// Lightweight realtime traffic summary (for the Ops dashboard header card).
GetRealtimeTrafficSummary(ctx context.Context, filter *OpsDashboardFilter) (*OpsRealtimeTrafficSummary, error)
GetDashboardOverview(ctx context.Context, filter *OpsDashboardFilter) (*OpsDashboardOverview, error)
GetThroughputTrend(ctx context.Context, filter *OpsDashboardFilter, bucketSeconds int) (*OpsThroughputTrendResponse, error)