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

13 lines
505 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-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,
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>;
}