-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] <title>webhook send alter message error #2524
Comments
!equals(status,"UP") |
sorry,Reply wrong |
Why no one replied |
Hi, this should be a problem caused by inserting special content into the json template. We will fix it by escaping it later. |
好的 |
Is there an existing issue for this?
Current Behavior
During alarm recovery, sending a message containing a threshold expression causes the content field to contain special characters
for example:
{
"alarmId": 76456,
"target": "${target}",
"thresholdId": 33455,
"priority": 0,
"content": "alert **** , status("up")",
"status": 0,
"times": 1,
"triggerTime": "2022-02-25T13:32:13",
"tags": {
"app": "windows",
"monitorId": "180427708350720",
"metrics": "availability",
"code": "UN_CONNECTABLE",
"thresholdId": "112",
"monitorName": "WINDOWS_192.168.124.12"
}
}
"content" is not a valid JSON format and has not been escaped
Expected Behavior
No response
Steps To Reproduce
No response
Environment
Debug logs
no logs
Anything else?
No response
The text was updated successfully, but these errors were encountered: