add send time

This commit is contained in:
Ulric Qin 2021-12-15 19:16:39 +08:00
parent 0f3bbf6368
commit a4ef00fe3e
4 changed files with 13 additions and 3 deletions

View File

@ -3,4 +3,5 @@
规则备注: {{.RuleNote}}{{end}} 规则备注: {{.RuleNote}}{{end}}
监控指标: {{.TagsJSON}} 监控指标: {{.TagsJSON}}
{{if .IsRecovered}}恢复时间:{{timeformat .LastEvalTime}}{{else}}触发时间: {{timeformat .TriggerTime}} {{if .IsRecovered}}恢复时间:{{timeformat .LastEvalTime}}{{else}}触发时间: {{timeformat .TriggerTime}}
触发时值: {{.TriggerValue}}{{end}} 触发时值: {{.TriggerValue}}{{end}}
发送时间: {{.timestamp}}

View File

@ -3,4 +3,5 @@
规则备注: {{.RuleNote}}{{end}} 规则备注: {{.RuleNote}}{{end}}
监控指标: {{.TagsJSON}} 监控指标: {{.TagsJSON}}
{{if .IsRecovered}}恢复时间:{{timeformat .LastEvalTime}}{{else}}触发时间: {{timeformat .TriggerTime}} {{if .IsRecovered}}恢复时间:{{timeformat .LastEvalTime}}{{else}}触发时间: {{timeformat .TriggerTime}}
触发时值: {{.TriggerValue}}{{end}} 触发时值: {{.TriggerValue}}{{end}}
发送时间: {{.timestamp}}

View File

@ -181,6 +181,13 @@
</tr> </tr>
{{end}} {{end}}
<tr>
<th>发送时间:</th>
<td>
{{.timestamp}}
</td>
</tr>
<tr> <tr>
<th>PromQL</th> <th>PromQL</th>
<td> <td>

View File

@ -3,4 +3,5 @@
**规则备注**: {{.RuleNote}}{{end}} **规则备注**: {{.RuleNote}}{{end}}
**监控指标**: {{.TagsJSON}} **监控指标**: {{.TagsJSON}}
{{if .IsRecovered}}**恢复时间**{{timeformat .LastEvalTime}}{{else}}**触发时间**: {{timeformat .TriggerTime}} {{if .IsRecovered}}**恢复时间**{{timeformat .LastEvalTime}}{{else}}**触发时间**: {{timeformat .TriggerTime}}
**触发时值**: {{.TriggerValue}}{{end}} **触发时值**: {{.TriggerValue}}{{end}}
**发送时间**: {{.timestamp}}