refactor dingtalk.tpl

master
Ulric Qin 3 years ago
parent 7bcb6acb03
commit c3c1aa5aff

@ -1,5 +1,7 @@
#### {{if .IsRecovered}}<font color="#008800">S{{.Severity}} - Recovered - {{.RuleName}}</font>{{else}}<font color="#FF0000">S{{.Severity}} - Triggered - {{.RuleName}}</font>{{end}} #### {{if .IsRecovered}}<font color="#008800">S{{.Severity}} - Recovered - {{.RuleName}}</font>{{else}}<font color="#FF0000">S{{.Severity}} - Triggered - {{.RuleName}}</font>{{end}}
---
> - **规则标题**: {{.RuleName}}{{if .RuleNote}} > - **规则标题**: {{.RuleName}}{{if .RuleNote}}
> - **规则备注**: {{.RuleNote}}{{end}} > - **规则备注**: {{.RuleNote}}{{end}}
> - **监控指标**: {{.TagsJSON}} > - **监控指标**: {{.TagsJSON}}
@ -7,3 +9,5 @@
> - **触发时值**: {{.TriggerValue}}{{end}} > - **触发时值**: {{.TriggerValue}}{{end}}
> - **发送时间**: {{timestamp}} > - **发送时间**: {{timestamp}}
---

Loading…
Cancel
Save