nightingale/etc/template/dingtalk.tpl

12 lines
606 B
Smarty
Raw Normal View History

2021-12-17 12:11:15 +08:00
#### {{if .IsRecovered}}<font color="#008800">S{{.Severity}} - Recovered - {{.RuleName}}</font>{{else}}<font color="#FF0000">S{{.Severity}} - Triggered - {{.RuleName}}</font>{{end}}
2021-12-17 12:05:41 +08:00
2021-12-17 12:24:24 +08:00
---
2021-12-17 13:04:39 +08:00
- **规则标题**: {{.RuleName}}{{if .RuleNote}}
- **规则备注**: {{.RuleNote}}{{end}}
{{if not .IsRecovered}}- **触发时值**: {{.TriggerValue}}{{end}}
{{if .TargetIdent}}- **监控对象**: {{.TargetIdent}}{{end}}
2021-12-17 13:04:39 +08:00
- **监控指标**: {{.TagsJSON}}
- {{if .IsRecovered}}**恢复时间**: {{timeformat .LastEvalTime}}{{else}}**触发时间**: {{timeformat .TriggerTime}}{{end}}
2021-12-17 13:04:39 +08:00
- **发送时间**: {{timestamp}}