From 975f141604c71666af37df6f95239ad6b400373c Mon Sep 17 00:00:00 2001 From: ahmadshaheer Date: Thu, 17 Oct 2024 14:36:30 +0430 Subject: [PATCH] fix: add v4 to default alert objects to fix the issue of incorrect query response due to v3 endpoint --- frontend/src/container/CreateAlertRule/defaults.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/container/CreateAlertRule/defaults.ts b/frontend/src/container/CreateAlertRule/defaults.ts index 23e6b3f77d..44dee01d31 100644 --- a/frontend/src/container/CreateAlertRule/defaults.ts +++ b/frontend/src/container/CreateAlertRule/defaults.ts @@ -104,6 +104,7 @@ export const anamolyAlertDefaults: AlertDef = { export const logAlertDefaults: AlertDef = { alertType: AlertTypes.LOGS_BASED_ALERT, + version: ENTITY_VERSION_V4, condition: { compositeQuery: { builderQueries: { @@ -134,6 +135,7 @@ export const logAlertDefaults: AlertDef = { export const traceAlertDefaults: AlertDef = { alertType: AlertTypes.TRACES_BASED_ALERT, + version: ENTITY_VERSION_V4, condition: { compositeQuery: { builderQueries: { @@ -164,6 +166,7 @@ export const traceAlertDefaults: AlertDef = { export const exceptionAlertDefaults: AlertDef = { alertType: AlertTypes.EXCEPTIONS_BASED_ALERT, + version: ENTITY_VERSION_V4, condition: { compositeQuery: { builderQueries: {