From ecba63c4bb0e56e0c90986dc0dfe4dd0307fa654 Mon Sep 17 00:00:00 2001 From: xiaomiku01 Date: Sat, 11 Apr 2026 00:39:27 +0800 Subject: [PATCH] feat(ui): add NetworkProbeRecord and NetworkProbeStatsRecord types Add TypeScript interfaces for the network probes feature API responses. Co-Authored-By: Claude Opus 4.6 (1M context) --- internal/site/src/types.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/internal/site/src/types.d.ts b/internal/site/src/types.d.ts index 9ad3ecf7..e9f67418 100644 --- a/internal/site/src/types.d.ts +++ b/internal/site/src/types.d.ts @@ -545,3 +545,18 @@ export interface UpdateInfo { v: string // new version url: string // url to new version } + +export interface NetworkProbeRecord { + id: string + name: string + target: string + protocol: "icmp" | "tcp" | "http" + port: number + interval: number + enabled: boolean +} + +export interface NetworkProbeStatsRecord { + stats: Record + created: number // unix timestamp (ms) for Recharts xAxis +}