Files
Checkmate/server/src/service/infrastructure/notificationProviders/INotificationProvider.ts
T

7 lines
363 B
TypeScript
Raw Normal View History

2026-01-18 16:59:38 +00:00
import type { Monitor, Notification, Alert, MonitorStatusResponse } from "@/types/index.js";
2026-01-18 06:02:07 +00:00
2026-01-18 16:59:38 +00:00
export interface INotificationProvider {
buildAlert: (monitor: Monitor, monitorStatusResponse: MonitorStatusResponse) => Alert;
2026-01-18 16:34:20 +00:00
sendAlert: (alert: Alert, notification: Notification) => Promise<boolean>;
sendTestAlert(notification: Notification): Promise<boolean>;
}