mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-11-04 17:10:20 +00:00
feat: monitor chart
This commit is contained in:
1 parent
5f2e9fe38a
commit
d7f0410dcd
13 files changed
+467
-13
No files matched your search
@@ -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[];
|
||||
}
|
||||
Reference in new issue
Block a user