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
+2 -2
View File
@@ -31,12 +31,12 @@ function RateLimitsPageContent() {
const [hosts, setHosts] = useState<string[]>([]);
const overviewQuery = useQuery({
queryKey: ['openflare', 'rate-limits', 'overview', hours, hosts, 5],
queryKey: ['openflare', 'rate-limits', 'overview', hours, hosts, 1],
queryFn: () =>
AccessLogService.getOverview({
hours,
hosts: hosts.length > 0 ? hosts : undefined,
bucket_minutes: 5,
bucket_minutes: 1,
}),
enabled: !!user?.is_admin && tab === 'analysis',
});