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) <noreply@anthropic.com>
This commit is contained in:
xiaomiku01
2026-04-11 00:39:27 +08:00
parent f9feaf5343
commit ecba63c4bb

View File

@@ -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<string, { avg: number; min: number; max: number; loss: number }>
created: number // unix timestamp (ms) for Recharts xAxis
}