Enhance Mihomo traffic and memory handling with health check support
Publish telemt-api gateway Docker image / test (push) Successful in 27s
Publish telemt-api gateway Docker image / build-and-push (push) Successful in 2m19s

- Updated `GATEWAY_RUN.md` to clarify the use of HTTP GET requests for traffic and memory metrics, ensuring compatibility with upstream services.
- Added `testUrl` property to `MihomoProxyEntry` type for health check configuration.
- Refactored Svelte component to implement a delay query function, improving error handling and stability during data retrieval.
- Renamed functions for clarity and improved the polling mechanism for traffic and memory data, enhancing overall performance.
This commit is contained in:
Denozordec
2026-03-31 01:33:22 +07:00
parent 50fe3df7e6
commit f951e7ef8d
3 changed files with 111 additions and 40 deletions
+2
View File
@@ -8,6 +8,8 @@ export type MihomoProxyEntry = {
name?: string;
now?: string;
all?: string[];
/** URL для healthcheck / GET …/delay (если задан в конфиге группы). */
testUrl?: string;
history?: { time: string; delay: number }[];
udp?: boolean;
[key: string]: unknown;