feat(rate-limits): use 1m buckets and 24h/3d ranges

Allow overview bucket_minutes=1; rate-limit analysis uses 1-minute
buckets and replaces 7d preset with 3 days.
This commit is contained in:
ryan
2026-07-19 19:20:59 +08:00
parent b56290d79d
commit 72962beb0f
6 changed files with 12 additions and 12 deletions
@@ -9,8 +9,8 @@ export type SearchDraft = {
export type OverviewRangeHours = 24 | 168 | 360 | 720;
/** 限流分析等短窗口场景:仅 24 小时 / 7 天 */
export type RateLimitRangeHours = 24 | 168;
/** 限流分析等短窗口场景:仅 24 小时 / 3 天 */
export type RateLimitRangeHours = 24 | 72;
export const PAGE_SIZE_OPTIONS = [20, 50, 100, 200];
@@ -29,7 +29,7 @@ export const RATE_LIMIT_RANGE_OPTIONS: {
label: string;
}[] = [
{ value: 24, label: '24 小时' },
{ value: 168, label: '7 天' },
{ value: 72, label: '3 天' },
];
export const DETAIL_SORT_OPTIONS = [