hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[Question] can we modify the content of the recovered alert?

Open loong95 opened this issue 1 year ago • 3 comments

I have set up some alert rules, and they can correctly trigger the start and recovery notifications. However, the content of the recovery notifications always shows the rule expression. I would like to change it to display the content from the start of the alert instead. Is this possible?

image

I want the content of the recovery notification to be:

Alert Resolved Notice: 服务器连接异常, test.endpoint无法连接

loong95 avatar Aug 22 '24 03:08 loong95

hi, can not currently.

tomsun28 avatar Aug 22 '24 14:08 tomsun28

Hi, @tomsun28. I reviewed the code and found that only a small modification is needed to use the description from the starting alert as the description for the recovered alert. May I make this change and submit a PR?

loong95 avatar Aug 24 '24 08:08 loong95

@loong95 hi welcome 👍

tomsun28 avatar Aug 24 '24 09:08 tomsun28