feat: monitor chart

This commit is contained in:
hamster1963
2024-11-28 15:26:03 +08:00
parent 5f2e9fe38a
commit d7f0410dcd
13 changed files with 467 additions and 13 deletions

View File

@@ -70,3 +70,25 @@ export interface LoginUserResponse {
updated_at: string;
};
}
export interface MonitorResponse {
success: boolean;
data: NezhaMonitor[];
}
export type ServerMonitorChart = {
[key: string]: {
created_at: number;
avg_delay: number;
}[];
};
export interface NezhaMonitor {
monitor_id: number;
monitor_name: string;
server_id: number;
server_name: string;
created_at: number[];
avg_delay: number[];
}