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

@@ -0,0 +1,15 @@
import type { Monitor, Alert, Notification, MonitorStatusResponse } from "@/types/index.js";
import { INotificationProvider } from "@/service/index.js";
export class WebhookProvider implements INotificationProvider {
buildAlert = (monitor: Monitor, monitorStatusResponse: MonitorStatusResponse) => {
return null;
};
sendAlert = async (alert: Alert) => {
return false;
};
sendTestAlert(notification: Notification): Promise<boolean> {
return false;
}
}