add webhook provider and utils
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user