notificationsService

This commit is contained in:
Alex Holliday committed 2026-01-18 22:52:59 +00:00
1 parent 391f42ee53
commit 4e9839e2e5
6 files changed
+46 -52

No files matched your search

@@ -1,4 +1,11 @@
import type { Monitor } from "@/types/index.js";
interface INotificationSerivce {
handleNotifications: (moniotr: Monitor) => Promise<void>;
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));
};
}