mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-27 03:02:30 +00:00
Add stub
This commit is contained in:
19
server/lib/alerts/events/healthCheckEvents.ts
Normal file
19
server/lib/alerts/events/healthCheckEvents.ts
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// stub
|
||||||
|
|
||||||
|
export async function fireHealthCheckHealthyAlert(
|
||||||
|
orgId: string,
|
||||||
|
healthCheckId: number,
|
||||||
|
healthCheckName?: string,
|
||||||
|
extra?: Record<string, unknown>
|
||||||
|
): Promise<void> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function fireHealthCheckNotHealthyAlert(
|
||||||
|
orgId: string,
|
||||||
|
healthCheckId: number,
|
||||||
|
healthCheckName?: string,
|
||||||
|
extra?: Record<string, unknown>
|
||||||
|
): Promise<void> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
19
server/lib/alerts/events/siteEvents.ts
Normal file
19
server/lib/alerts/events/siteEvents.ts
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// stub
|
||||||
|
|
||||||
|
export async function fireSiteOnlineAlert(
|
||||||
|
orgId: string,
|
||||||
|
siteId: number,
|
||||||
|
siteName?: string,
|
||||||
|
extra?: Record<string, unknown>
|
||||||
|
): Promise<void> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function fireSiteOfflineAlert(
|
||||||
|
orgId: string,
|
||||||
|
siteId: number,
|
||||||
|
siteName?: string,
|
||||||
|
extra?: Record<string, unknown>
|
||||||
|
): Promise<void> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
2
server/lib/alerts/index.ts
Normal file
2
server/lib/alerts/index.ts
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export * from "./events/siteEvents";
|
||||||
|
export * from "./events/healthCheckEvents";
|
||||||
Reference in New Issue
Block a user