Overview
Create a channel to send notifications on, and then add a rule for which notifications are sent on that channel. This recipe uses a Slack channel and a rule that matches on the severity of the incident. A rule can also match on other conditions, such as tags.When you create, update, or delete an object, you use a
mutation operation instead of a query.Steps
1
Create a channel
Create a Slack channel, which sends notifications to Slack based on rules. The channel is linked to an existing Slack integration through
integrationId.2
Create a notification rule
Create a notification rule on the channel. For the available severities and conditions, see the API documentation.
Full code sample
Python