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
+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, 1],
queryKey: ['openflare', 'rate-limits', 'overview', hours, hosts, 3],
queryFn: () =>
AccessLogService.getOverview({
hours,
hosts: hosts.length > 0 ? hosts : undefined,
bucket_minutes: 1,
bucket_minutes: 3,
}),
enabled: !!user?.is_admin && tab === 'analysis',
});