mirror of
https://github.com/henrygd/beszel.git
synced 2026-04-21 12:11:49 +02:00
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:
15
internal/site/src/types.d.ts
vendored
15
internal/site/src/types.d.ts
vendored
@@ -545,3 +545,18 @@ export interface UpdateInfo {
|
|||||||
v: string // new version
|
v: string // new version
|
||||||
url: string // url to 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
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user