v1.17
Changes
datafield can now be a single string template that renders to a dictionary. These new semantics are in addition to previous semantics. Sodatacan alternatively still be a dictionary with templates inside it. Also, an alert'sdatafield can still override parts of adatafield set in thedefaultssection. An example of the new config syntax is:
alerts:
- domain: test
name: foo
data: >
{% if notify_reason == "Fire" %} { "a": "some val" } {% else %} { "a": "other val" } {% endif %}