Create an alert rule configuration for Microsoft Teams
Create a configuration to associate with an alert rule for a service or integration. Notifications are sent during specific events in a service to a channel in the Microsoft Teams messaging service.
Antes de Iniciar
Role required: sro_admin, sro_manager, or sro_user
Procedimento
- Navigate to All > Site Reliability Operations > Site Reliability Ops Workspace.
-
On the Services Overview page (
), open a service.
- Click the Alert Rules tab.
- Select an alert that you want to create a configuration for.
-
Click the more UI actions icon (
) that appears next to the Save button, and then select Create Configuration.
-
On the form, fill in the fields.
Tabela 1. Configuration form Field Description Name Unique name for the configuration. For example, Alerts notification Microsoft Teams. Attach to Table Table on which the action is performed. Select Action.
Attach to Document Action to be executed on the selected table. Click Search. The Select the document form appears.
To select a document, complete the following steps:- In the Table name field, select Action.
- In the Document field, search for and select Post MS Teams Message.
- Click OK.
-
Right-click the header, and click Save.
The Configuration Variables related list is created.
- Under Configuration Variables, click New.
-
On the form, fill in the fields.
Tabela 2. Configuration Variable form Field Description Configuration Name of the configuration that you are creating the configuration variable for.
This field is auto-populated.
Name Name of the configuration variable.
Enter the value as ah_webhook_url.
Type Type of the configuration variable.
Select Scalar.
Value Webhook URL obtained when creating the connector in Microsoft Teams messaging service.
Paste the URL.
For more information about creating a webhook URL, see Create a Webhook URL for a channel in Microsoft Teams.
- Click Submit.