# Notification Rules

## General

Storware Backup & Recovery allows a Notification Rules feature to create a semi-custom rule that will send notifications triggered by an event specified in a rule.\
Go to Settings on the left menu and then click on the Notification Rules button.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/yfxghirmgoH5NU0018cx/administration-settings-notification_rules_1.png)

### Creating new Notification Rule

To create a new rule, simply click on **Create** button. A new window will appear.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/GHcwfrcFN5nhyQKl0iY7/administration-settings-notification_rules_2.png)

Fill in a name for your rule, set your notification to active and add one or more conditions from a list.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/QrVZg0FrR5ALHLQCcDpu/administration-settings-notification_rules_3.png)

For some conditions, you will need to provide more information, for example, choose TaskType.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/s0VrFVTTTbzSSA7Vt5O7/administration-settings-notification_rules_4.png)

The last step is to add an action with related recipients.\
Click **Add Action** button, choose **Action Type** from a list, add one or more recipients passing their email addresses.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/t7PCc1w8S0kIzKvAHee6/administration-settings-notification_rules_5.png)

After an event that will trigger a notification, all recipients who have been added to the notification rule will receive an email notification.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/Ud5SOUAD06UeZ3B7UqQl/administration-settings-notification_rules_6.jpg)

### Slack integration

From Storware Backup & Recovery version 5.0, there is a possibility to send notifications to the Slack channel. Follow these steps to authorize platform in your Slack workspace:

1\. Go to [this page](https://api.slack.com/apps) and create a new Slack app in the workspace where you want to post messages. Select From scratch option and Enter the **App Name** and **Workspace** in which you want to use this app.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/XKxDklYY56e1CLZYNFM7/administration-settings-notification_rules-slack_integration-1.png)

2\. From the Features page, toggle Activate Incoming Webhooks on. Click Add New Webhook to Workspace.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/MrMn8kyCDKts85MSsqXt/administration-settings-notification_rules-slack_integration-2.png)

3\. Pick a channel that the app will post to, then click Allow.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/viIgiI6yAiCRBgHiz4ii/administration-settings-notification_rules-slack_integration-3.png)

4\. Copy the Webhook URL and use its Notification rules. Select Action Type as SLACK and paste the URL in the **Name** field.

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/DEvzL93jc0GS4vL0tWDD/administration-settings-notification_rules-slack_integration-4.png)

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/31OrRtJHtBIrCnK1hgvf/administration-settings-notification_rules-slack_integration-5.png)

### Configuration of Push Notification

To configure a push notification, provide URL of endpoint address, where you want to receive notifications and add if needed custom headers that will be added to POST request with notification.\\

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/PJ7kgdsBVF1zvxYlI29K/administration-settings-notification_rules_push_configuration_1.png)

Body of notification will contain two fields:

* **subject**
* **messages** - list of notification messages that have been generated base on notification policy and triggered during run of program

To check how your notification will be looking please click on button **Show preview for push notifications**

![](https://content.gitbook.com/content/0FWMFN0y1yUTAd3cSRaK/blobs/8NthcF9qcLy48KCMmcc8/administration-settings-notification_rules_push_configuration_2.png)
