mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-05 07:26:36 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user