add webhook

This commit is contained in:
Alex Holliday committed 2026-02-16 20:55:00 +00:00
1 parent d2d75cd035
commit e18681606c
4 files changed
+132 -21

No files matched your search

@@ -1,5 +1,6 @@
import type { Monitor, Notification, Alert, MonitorStatusResponse } from "@/types/index.js";
import type { MonitorActionDecision } from "@/service/infrastructure/SuperSimpleQueue/SuperSimpleQueueHelper.js";
import type { NotificationMessage } from "@/types/notificationMessage.js";
export interface INotificationProvider {
sendAlert: (
@@ -9,5 +10,6 @@ export interface INotificationProvider {
decision: MonitorActionDecision,
clientHost: string
) => Promise<boolean>;
sendMessage?: (notification: Notification, message: NotificationMessage) => Promise<boolean>;
sendTestAlert(notification: Notification): Promise<boolean>;
}