feat(rate-limits): add RPS analysis tab with dual-axis chart

Split rate-limits into analysis/config tabs; reuse access-log overview
filters; chart hourly RPS vs visits with dataZoom; rank top hosts/IPs
by window-average RPS.
This commit is contained in:
ryan
2026-07-19 19:09:01 +08:00
parent f783a1e6fa
commit 86d2d6b0ad
8 changed files with 1141 additions and 601 deletions
+3
View File
@@ -18,6 +18,7 @@ type RankCardProps = {
description: string;
items: RankCardItem[];
color?: string;
valueFormatter?: (value: number) => string;
};
export function RankCard({
@@ -25,6 +26,7 @@ export function RankCard({
description,
items,
color = '#3b82f6',
valueFormatter,
}: RankCardProps) {
return (
<Card className='border-dashed shadow-none'>
@@ -40,6 +42,7 @@ export function RankCard({
<RankChart
items={items}
color={color}
valueFormatter={valueFormatter}
emptyMessage={`暂无 ${title} 数据`}
/>
</CardContent>