newrelic_workflow
: add (priority-)filter on destination block level
#2528
Labels
newrelic_workflow
: add (priority-)filter on destination block level
#2528
Feature Description
In a workflow, add the ability to set a filter for each channel so you can have alerts sent to different channels/destinations based on priority/severity of the alert.
Describe Alternatives
As alternative you can already just create another workflow so in the end you would have two workflows.
One for warnings and one for criticals.
You can do hacky payload stuff in your channels payload like adding:
To basically making the payload falsy and thus preventing the alert being sent.
But this is not as clean obviously.
Additional context
E.g. being able to have one workflow with multiple destinations.
One destination should be triggered when an alert with priority 'HIGH' (Warning) is incoming.
Another destination should trigger when an alert with priority 'CRITICAL' is incoming.
But 'warning' alerts should not be able to trigger the 'critical' destination.
Currently you can build a workflow like this and set priority filtering on a GLOBAL workflow level but that way you can either activate alerting for CRITICAL or WARNING or BOTH but not specify the channels.
Like this:
The proposal is to include a filter in the destination block area like this:
so basically the same way as
notification_triggers
attribute is already doing. see terraform registry.The text was updated successfully, but these errors were encountered: