mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-28 03:32:20 +00:00
Fix oss build issues
This commit is contained in:
@@ -6,6 +6,7 @@ export async function fireHealthCheckHealthyAlert(
|
|||||||
healthCheckName?: string,
|
healthCheckName?: string,
|
||||||
healthCheckTargetId?: number | null,
|
healthCheckTargetId?: number | null,
|
||||||
extra?: Record<string, unknown>,
|
extra?: Record<string, unknown>,
|
||||||
|
send: boolean = true,
|
||||||
trx?: unknown
|
trx?: unknown
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return;
|
return;
|
||||||
@@ -17,6 +18,7 @@ export async function fireHealthCheckUnhealthyAlert(
|
|||||||
healthCheckName?: string,
|
healthCheckName?: string,
|
||||||
healthCheckTargetId?: number | null,
|
healthCheckTargetId?: number | null,
|
||||||
extra?: Record<string, unknown>,
|
extra?: Record<string, unknown>,
|
||||||
|
send: boolean = true,
|
||||||
trx?: unknown
|
trx?: unknown
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return;
|
return;
|
||||||
@@ -28,6 +30,7 @@ export async function fireHealthCheckUnknownAlert(
|
|||||||
healthCheckName?: string | null,
|
healthCheckName?: string | null,
|
||||||
healthCheckTargetId?: number | null,
|
healthCheckTargetId?: number | null,
|
||||||
extra?: Record<string, unknown>,
|
extra?: Record<string, unknown>,
|
||||||
|
send: boolean = true,
|
||||||
trx?: unknown
|
trx?: unknown
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ export async function fireResourceHealthyAlert(
|
|||||||
resourceId: number,
|
resourceId: number,
|
||||||
resourceName?: string | null,
|
resourceName?: string | null,
|
||||||
extra?: Record<string, unknown>,
|
extra?: Record<string, unknown>,
|
||||||
|
send: boolean = true,
|
||||||
trx?: unknown
|
trx?: unknown
|
||||||
): Promise<void> {}
|
): Promise<void> {}
|
||||||
|
|
||||||
@@ -11,6 +12,7 @@ export async function fireResourceUnhealthyAlert(
|
|||||||
resourceId: number,
|
resourceId: number,
|
||||||
resourceName?: string | null,
|
resourceName?: string | null,
|
||||||
extra?: Record<string, unknown>,
|
extra?: Record<string, unknown>,
|
||||||
|
send: boolean = true,
|
||||||
trx?: unknown
|
trx?: unknown
|
||||||
): Promise<void> {}
|
): Promise<void> {}
|
||||||
|
|
||||||
@@ -19,5 +21,6 @@ export async function fireResourceToggleAlert(
|
|||||||
resourceId: number,
|
resourceId: number,
|
||||||
resourceName?: string | null,
|
resourceName?: string | null,
|
||||||
extra?: Record<string, unknown>,
|
extra?: Record<string, unknown>,
|
||||||
|
send: boolean = true,
|
||||||
trx?: unknown
|
trx?: unknown
|
||||||
): Promise<void> {}
|
): Promise<void> {}
|
||||||
@@ -266,7 +266,7 @@ export async function createTarget(
|
|||||||
await fireHealthCheckUnhealthyAlert(
|
await fireHealthCheckUnhealthyAlert(
|
||||||
healthCheck[0].orgId,
|
healthCheck[0].orgId,
|
||||||
healthCheck[0].targetHealthCheckId,
|
healthCheck[0].targetHealthCheckId,
|
||||||
healthCheck[0].name,
|
healthCheck[0].name || "",
|
||||||
healthCheck[0].targetId,
|
healthCheck[0].targetId,
|
||||||
undefined,
|
undefined,
|
||||||
false, // dont send the alert because we just want to create the alert, not notify users yet
|
false, // dont send the alert because we just want to create the alert, not notify users yet
|
||||||
@@ -287,7 +287,7 @@ export async function createTarget(
|
|||||||
await fireHealthCheckHealthyAlert(
|
await fireHealthCheckHealthyAlert(
|
||||||
healthCheck[0].orgId,
|
healthCheck[0].orgId,
|
||||||
healthCheck[0].targetHealthCheckId,
|
healthCheck[0].targetHealthCheckId,
|
||||||
healthCheck[0].name,
|
healthCheck[0].name || "",
|
||||||
healthCheck[0].targetId,
|
healthCheck[0].targetId,
|
||||||
undefined,
|
undefined,
|
||||||
false, // dont send the alert because we just want to create the alert, not notify users yet
|
false, // dont send the alert because we just want to create the alert, not notify users yet
|
||||||
|
|||||||
Reference in New Issue
Block a user