Recovery Messages

HI, you can use the following

{{if eq .Level “OK”}} show your OK message {{else if .eq Level “WARNING”}} display the warning message {{else}} display critical message{{end}}

The order of the evaluations doesn’t really matter. so you could include the warning/critical messages first then as the final {{else}} part you can add the OK message.

The syntax might be slightly off. There is a topic covering this on here somewhere I’ll try and find some docs.

Hope that helps

Edit: Template syntax

Edit 2: String templates, just after example 8
Kapacitor Doc

1 Like