Initial MVP commit
This commit is contained in:
20
templates/alerts_active.txt.tmpl
Normal file
20
templates/alerts_active.txt.tmpl
Normal file
@@ -0,0 +1,20 @@
|
||||
{{- if .Data -}}
|
||||
Active Alerts
|
||||
As Of: {{.Data.AsOf}}
|
||||
Alerts: {{len .Data.Alerts}}
|
||||
{{- range $i, $alert := .Data.Alerts}}
|
||||
|
||||
[{{$i}}] {{$alert.ID}}
|
||||
{{- if $alert.Headline}}
|
||||
Headline: {{$alert.Headline}}
|
||||
{{- end}}
|
||||
{{- if $alert.Severity}}
|
||||
Severity: {{$alert.Severity}}
|
||||
{{- end}}
|
||||
{{- if $alert.Expires}}
|
||||
Expires: {{$alert.Expires}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- else -}}
|
||||
No active alerts data available.
|
||||
{{- end}}
|
||||
Reference in New Issue
Block a user