2026-01-18 16:59:38 +00:00
|
|
|
import type { Monitor, Notification, Alert, MonitorStatusResponse } from "@/types/index.js";
|
2026-02-15 18:35:54 +00:00
|
|
|
import type { MonitorActionDecision } from "@/service/infrastructure/SuperSimpleQueue/SuperSimpleQueueHelper.js";
|
2026-01-18 06:02:07 +00:00
|
|
|
|
2026-01-18 16:59:38 +00:00
|
|
|
export interface INotificationProvider {
|
2026-02-15 18:35:54 +00:00
|
|
|
sendAlert: (
|
|
|
|
|
notification: Notification,
|
|
|
|
|
monitor: Monitor,
|
|
|
|
|
monitorStatusResponse: MonitorStatusResponse,
|
2026-02-16 00:39:34 +00:00
|
|
|
decision: MonitorActionDecision,
|
|
|
|
|
clientHost: string
|
2026-02-15 18:35:54 +00:00
|
|
|
) => Promise<boolean>;
|
2026-01-18 16:34:20 +00:00
|
|
|
sendTestAlert(notification: Notification): Promise<boolean>;
|
|
|
|
|
}
|