aitting opened a new issue, #2815:
URL: https://github.com/apache/hertzbeat/issues/2815
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
The notification template cannot implement line wrapping. How to wrap can
cause errors in the JSON data submitted when pushing the webhook.
this is my notification template text:
```
content: Event【 ${title} 】
id: {id}
```
This is the JSON data push format after line wrapping:
```json
{
"target": "hedou_service_esc.event-detail.title",
"alarmId": 447211236329472,
"thresholdId": 87,
"priority": 1,
"content": "content: Event【 my event title 】
id: 30d0b4e5-fbe6-be07-0d18-3a163b7d36da",
"status": 0,
"times": 1,
"triggerTime": "2024-11-15T16:27:10",
"tags": {
"app": "hedou_service_esc",
"monitorId": "447172690212864",
"thresholdId": "87",
"monitorHost": "192.168.3.24"
},
"extraProperties": {}
}
```
### Expected Behavior
Correct format:
```json
{
"target": "hedou_service_esc.event-detail.title",
"alarmId": 447211236329472,
"thresholdId": 87,
"priority": 1,
"content": "content: Event【 my event title 】 \r\n id:
30d0b4e5-fbe6-be07-0d18-3a163b7d36da",
"status": 0,
"times": 1,
"triggerTime": "2024-11-15T16:27:10",
"tags": {
"app": "hedou_service_esc",
"monitorId": "447172690212864",
"thresholdId": "87",
"monitorHost": "192.168.3.24"
},
"extraProperties": {}
}
```
### Steps To Reproduce
_No response_
### Environment
```markdown
HertzBeat version(s):1.5.0
```
### Debug logs
_No response_
### Anything else?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]