Filtering notifications

To filter notification alerts on a more detailed level than topic and object type, use the extra_compare field on the rule object. Use any field in the triggering message body to filter on this field.

To configure any notification rule for email, SNMP, or HTTP, you can add keys and values to the extra_compare field. Each key/value pair represents an equality condition that must be met for the outbound notification to trigger.

Some examples:

  • The default has no conditions set:

    "extra_compare": "{}"
  • To only send alerts on critical alarms on bp.ra.v1.alarms:

    "extra_compare": "{\"severity\": \"CRITICAL\"}"
  • To send only alerts on critical alarms on a specific resource:

    "extra_compare": "{\"severity\": \"CRITICAL\", \"alarm.resource\": \"SPECIFIC_RESOURCE\"}"

Reference any field on the message as mentioned. If a field is not present, the condition is interpreted as false, and no outbound alert is sent.

results matching ""

    No results matching ""