mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 18:19:13 +08:00
fix: add v4 to default alert objects to fix the issue of incorrect query response due to v3 endpoint
This commit is contained in:
parent
c206f4fa5c
commit
975f141604
@ -104,6 +104,7 @@ export const anamolyAlertDefaults: AlertDef = {
|
|||||||
|
|
||||||
export const logAlertDefaults: AlertDef = {
|
export const logAlertDefaults: AlertDef = {
|
||||||
alertType: AlertTypes.LOGS_BASED_ALERT,
|
alertType: AlertTypes.LOGS_BASED_ALERT,
|
||||||
|
version: ENTITY_VERSION_V4,
|
||||||
condition: {
|
condition: {
|
||||||
compositeQuery: {
|
compositeQuery: {
|
||||||
builderQueries: {
|
builderQueries: {
|
||||||
@ -134,6 +135,7 @@ export const logAlertDefaults: AlertDef = {
|
|||||||
|
|
||||||
export const traceAlertDefaults: AlertDef = {
|
export const traceAlertDefaults: AlertDef = {
|
||||||
alertType: AlertTypes.TRACES_BASED_ALERT,
|
alertType: AlertTypes.TRACES_BASED_ALERT,
|
||||||
|
version: ENTITY_VERSION_V4,
|
||||||
condition: {
|
condition: {
|
||||||
compositeQuery: {
|
compositeQuery: {
|
||||||
builderQueries: {
|
builderQueries: {
|
||||||
@ -164,6 +166,7 @@ export const traceAlertDefaults: AlertDef = {
|
|||||||
|
|
||||||
export const exceptionAlertDefaults: AlertDef = {
|
export const exceptionAlertDefaults: AlertDef = {
|
||||||
alertType: AlertTypes.EXCEPTIONS_BASED_ALERT,
|
alertType: AlertTypes.EXCEPTIONS_BASED_ALERT,
|
||||||
|
version: ENTITY_VERSION_V4,
|
||||||
condition: {
|
condition: {
|
||||||
compositeQuery: {
|
compositeQuery: {
|
||||||
builderQueries: {
|
builderQueries: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user