Add ping and TCP monitor types

Adds ping and TCP monitor creation APIs, worker collectors, network checks UI, dashboard monitor status support, and progress documentation.
This commit is contained in:
Keith Smith
2026-05-23 15:01:57 -06:00
parent 597ff18c2a
commit 16932957b2
13 changed files with 577 additions and 35 deletions
+12
View File
@@ -6,6 +6,8 @@ import type {
NotificationChannel,
NotificationChannelCreate,
NotificationChannelUpdate,
PingMonitorCreate,
TcpMonitorCreate,
User,
WebsiteMonitorCreate,
} from "../types/api";
@@ -61,6 +63,16 @@ export const api = {
method: "POST",
body: JSON.stringify(payload),
}),
createPingMonitor: (token: string, payload: PingMonitorCreate) =>
request<Monitor>("/monitors/ping", token, {
method: "POST",
body: JSON.stringify(payload),
}),
createTcpMonitor: (token: string, payload: TcpMonitorCreate) =>
request<Monitor>("/monitors/tcp", token, {
method: "POST",
body: JSON.stringify(payload),
}),
updateMonitor: (token: string, monitorId: number, payload: MonitorUpdate) =>
request<Monitor>(`/monitors/${monitorId}`, token, {
method: "PATCH",