Skip to content

Commit

Permalink
No data alert (#121)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
useEffects and Priyankg101 authored Jul 18, 2023
1 parent f763dd3 commit b159e11
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion public/emails/no_data_alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,14 @@ <h4>Labels:</h4>
<table>
{{ range $key, $val := .Labels }}
<tr>
<td>{{$key}}</td>
{{if eq $key "ref_id" }}
<td> parameters </td>
{{else}}
<td>{{$key}}</td>
{{end}}
<td>{{$val}}</td>
</tr>
{{end}}
<td>{{$val}}</td>
</tr>
{{end}}
Expand Down

0 comments on commit b159e11

Please sign in to comment.