feat(rate-limits): use 3-minute trend buckets

Rate-limit analysis requests overview with bucket_minutes=3; RPS uses
count/180. Overview still defaults to 60-minute buckets.
This commit is contained in:
ryan
2026-07-19 20:30:20 +08:00
parent abe8fb8268
commit 20249d917c
5 changed files with 7 additions and 7 deletions
@@ -22,7 +22,7 @@ import (
// @Param host query string false "请求 Host(单域名)"
// @Param hosts query []string false "请求 Host 列表(多域名精确匹配)"
// @Param hours query int false "统计时间范围(小时)"
// @Param bucket_minutes query int false "趋势桶分钟数(1、5 或 60,默认 60)"
// @Param bucket_minutes query int false "趋势桶分钟数(1、3、5 或 60,默认 60)"
// @Success 200 {object} response.Any{data=observability.AccessLogOverview} "访问日志概览"
// @Failure 400 {object} response.Any "参数错误"
// @Failure 401 {object} response.Any "未登录"