From b159e118b7a9d662125bbf714cd2dfb993587bef Mon Sep 17 00:00:00 2001 From: April <80976002+Aprilswind@users.noreply.github.com> Date: Tue, 18 Jul 2023 16:25:52 +0530 Subject: [PATCH] No data alert (#121) * add logs * new alert template * name for each alerts * add annotations and labels * add no data check * 0 for prod * default alert template * email template changes * email template status padding * test * using inbuilt approaches for no data alerts * a tags for annotations * no data alert match bug * remove spew * send alerts individually * merge like alerts * revert alert templates * reference bug fix * seperate urls from labels and annotations * replace ref_id with parameters --------- Co-authored-by: Priyankg101 <39451634+Priyankg101@users.noreply.github.com> --- public/emails/no_data_alert.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/emails/no_data_alert.html b/public/emails/no_data_alert.html index 3b7d9d9efc..12983787ab 100644 --- a/public/emails/no_data_alert.html +++ b/public/emails/no_data_alert.html @@ -130,7 +130,14 @@

Labels:

{{ range $key, $val := .Labels }} - + {{if eq $key "ref_id" }} + + {{else}} + + {{end}} + + + {{end}} {{end}}
{{$key}} parameters {{$key}}{{$val}}
{{$val}}