2026-01-18 22:52:59 +00:00
|
|
|
import type { Monitor, MonitorStatusResponse } from "@/types/index.js";
|
|
|
|
|
export interface INotificationsService {
|
|
|
|
|
handleNotifications: (monitor: Monitor, monitorStatusResponse: MonitorStatusResponse) => Promise<void>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class NotificationsService implements INotificationsService {
|
|
|
|
|
handleNotifications = async (monitor: Monitor, monitorStatusResponse: MonitorStatusResponse) => {
|
|
|
|
|
console.log(JSON.stringify(monitor, null, 2));
|
|
|
|
|
console.log(JSON.stringify(monitorStatusResponse, null, 2));
|
|
|
|
|
};
|
2026-01-18 06:02:07 +00:00
|
|
|
}
|