add webhook provider and utils

This commit is contained in:
Alex Holliday committed 2026-01-18 16:59:38 +00:00
1 parent cff5508614
commit 391f42ee53
4 files changed
+111 -3

No files matched your search

@@ -1,7 +1,7 @@
import type { Monitor, Notification, Alert } from "@/types/index.js";
import type { Monitor, Notification, Alert, MonitorStatusResponse } from "@/types/index.js";
export interface IMessageProvider {
buildAlert: (monitor: Monitor) => Alert;
export interface INotificationProvider {
buildAlert: (monitor: Monitor, monitorStatusResponse: MonitorStatusResponse) => Alert;
sendAlert: (alert: Alert, notification: Notification) => Promise<boolean>;
sendTestAlert(notification: Notification): Promise<boolean>;
}