From a4ef00fe3e2bdd0d826b5d59276d1fd9e8e1de6e Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Wed, 15 Dec 2021 19:16:39 +0800 Subject: [PATCH] add send time --- etc/template/dingtalk.tpl | 3 ++- etc/template/feishu.tpl | 3 ++- etc/template/mailbody.tpl | 7 +++++++ etc/template/wecom.tpl | 3 ++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/etc/template/dingtalk.tpl b/etc/template/dingtalk.tpl index 59ece247..094c6247 100644 --- a/etc/template/dingtalk.tpl +++ b/etc/template/dingtalk.tpl @@ -3,4 +3,5 @@ 规则备注: {{.RuleNote}}{{end}} 监控指标: {{.TagsJSON}} {{if .IsRecovered}}恢复时间:{{timeformat .LastEvalTime}}{{else}}触发时间: {{timeformat .TriggerTime}} -触发时值: {{.TriggerValue}}{{end}} \ No newline at end of file +触发时值: {{.TriggerValue}}{{end}} +发送时间: {{.timestamp}} \ No newline at end of file diff --git a/etc/template/feishu.tpl b/etc/template/feishu.tpl index 59ece247..094c6247 100644 --- a/etc/template/feishu.tpl +++ b/etc/template/feishu.tpl @@ -3,4 +3,5 @@ 规则备注: {{.RuleNote}}{{end}} 监控指标: {{.TagsJSON}} {{if .IsRecovered}}恢复时间:{{timeformat .LastEvalTime}}{{else}}触发时间: {{timeformat .TriggerTime}} -触发时值: {{.TriggerValue}}{{end}} \ No newline at end of file +触发时值: {{.TriggerValue}}{{end}} +发送时间: {{.timestamp}} \ No newline at end of file diff --git a/etc/template/mailbody.tpl b/etc/template/mailbody.tpl index fa5e2d64..2763d143 100644 --- a/etc/template/mailbody.tpl +++ b/etc/template/mailbody.tpl @@ -181,6 +181,13 @@ {{end}} + + 发送时间: + + {{.timestamp}} + + + PromQL: diff --git a/etc/template/wecom.tpl b/etc/template/wecom.tpl index d1c7410a..c3374b54 100644 --- a/etc/template/wecom.tpl +++ b/etc/template/wecom.tpl @@ -3,4 +3,5 @@ **规则备注**: {{.RuleNote}}{{end}} **监控指标**: {{.TagsJSON}} {{if .IsRecovered}}**恢复时间**:{{timeformat .LastEvalTime}}{{else}}**触发时间**: {{timeformat .TriggerTime}} -**触发时值**: {{.TriggerValue}}{{end}} \ No newline at end of file +**触发时值**: {{.TriggerValue}}{{end}} +**发送时间**: {{.timestamp}} \ No newline at end of file