HomeClusterLabs Projects

Feature: libcrmcommon, libpe_status: New enabled meta attr for alerts

Description

Feature: libcrmcommon, libpe_status: New enabled meta attr for alerts

An <alert> element or an individual <recipient> element can now contain
a boolean "enabled" meta attribute. The default value is "true". If
"enabled" is set to "false", the alert or recipient will not be used.

If "enabled" is set to "false" at the <alert> level, all of the alert's
recipients are disabled, regardless of the recipients' "enabled" value.

If "enabled" is set to "true" or is unset at the <alert> level, the
alert's recipients are enabled or disabled based on their respective
values of the "enabled" meta attribute.

Setting "enabled" to "false" can be useful to avoid spamming alert
recipients during planned maintenance, for example.

Ref T379

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 15 2023, 6:16 PM
Parents
rPcab604c41def: Refactor: libcrmcommon: Move some XML constants to better location
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task