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