initial commit

This commit is contained in:
Alex Holliday committed 2025-11-13 13:47:26 -08:00
1 parent 7cb985116e
commit 75acf7b38f
955 files changed
+37333 -87054

No files matched your search

@@ -0,0 +1,27 @@
import {
IMonitor,
INotificationChannel,
IIncident,
ResolutionType,
} from "@/db/models/index.js";
export interface IAlert {
name: string;
url: string;
status: string;
resolved: boolean;
resolutionType: ResolutionType | undefined;
resolvedBy?: string | undefined;
resolutionNote?: string | undefined;
details?: Record<string, string>;
checkTime: Date | null;
alertTime: Date;
}
export interface IMessageService {
buildAlert: (monitor: IMonitor, incident: IIncident) => IAlert;
sendMessage: (
alert: IAlert,
channel: INotificationChannel
) => Promise<boolean>;
testMessage: (channel: INotificationChannel) => Promise<boolean>;
}