feat: cycleTransferStats

This commit is contained in:
hamster1963
2024-11-29 10:00:48 +08:00
parent 2462dfc21b
commit 6e676022e9
6 changed files with 198 additions and 16 deletions
+22
View File
@@ -98,6 +98,7 @@ export interface ServiceResponse {
services: {
[key: string]: ServiceData;
};
cycle_transfer_stats: CycleTransferStats;
};
}
@@ -127,3 +128,24 @@ export interface ServiceData {
up: number[];
down: number[];
}
export interface CycleTransferStats {
[key: string]: CycleTransferData;
}
export interface CycleTransferData {
name: string;
from: string;
to: string;
max: number;
min: number;
server_name: {
[key: string]: string;
};
transfer: {
[key: string]: number;
};
next_update: {
[key: string]: string;
};
}