tomsun28 commented on issue #3290:
URL: https://github.com/apache/hertzbeat/issues/3290#issuecomment-2823398787
now the dingding notice template is
```
## 🔔 HertzBeat Alert Notification
### Alert Summary
> - Status: ${status}
<#if commonLabels??>
<#if commonLabels.severity??>
> - Severity: ${commonLabels.severity?switch("critical", "❤️ Critical",
"warning", "💛 Warning", "info", "💚 Info", "Unknown")}
</#if>
<#if commonLabels.alertname??>
> - Alert Name: ${commonLabels.alertname}
</#if>
</#if>
### Alert Details
<#list alerts as alert>
#### Alert ${alert?index + 1}
<#if alert.labels??>
<#list alert.labels?keys as key>
> - ${key}: ${alert.labels[key]}
</#list>
</#if>
<#if alert.content?? && alert.content != "">
> - Content: ${alert.content}
</#if>
> - Trigger Count: ${alert.triggerTimes}
> - Start Time: ${(alert.startAt?number_to_datetime)?string('yyyy-MM-dd
HH:mm:ss')}
<#if alert.activeAt??>
> - Active Time: ${(alert.activeAt?number_to_datetime)?string('yyyy-MM-dd
HH:mm:ss')}
</#if>
<#if alert.endAt??>
> - End Time: ${(alert.endAt?number_to_datetime)?string('yyyy-MM-dd
HH:mm:ss')}
</#if>
<#if alert.annotations?? && alert.annotations?size gt 0>
##### Additional Information
<#list alert.annotations?keys as key>
> - ${key}: ${alert.annotations[key]}
</#list>
</#if>
</#list>
<#if commonAnnotations?? && commonAnnotations?size gt 0>
### Common Information
<#list commonAnnotations?keys as key>
> - ${key}: ${commonAnnotations[key]}
</#list>
</#if>
```
--
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]