# 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://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FVY4hK1OlTeq2liMegI57%2Fadministration-settings-notification_rules_1.png?alt=media\&token=db2e7b4c-89b6-45d6-a9c2-1b0c2ca9ce42)

### Creating new Notification Rule

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FapmqseMKdbnGgxybePz5%2Fadministration-settings-notification_rules_2.png?alt=media\&token=52b4f5e8-fe72-4071-a714-3e04bb2ba779)

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FDXpiKCdV5qlZACVbmkuP%2Fadministration-settings-notification_rules_3.png?alt=media\&token=6ebd2ff1-34b7-4643-b25f-9a5bd08903eb)

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FAN6dKjFIT0DQ7fLECeeW%2Fadministration-settings-notification_rules_4.png?alt=media\&token=b7213dc7-ad28-4d4e-8ea6-ead5f54f149a)

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://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FAJ2ICQLdWfiuj6kJBigH%2Fadministration-settings-notification_rules_5.png?alt=media\&token=a55b38f3-0b72-4458-b86e-c0834ba22623)

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FtthNCJjEFtbp31t5uRcI%2Fadministration-settings-notification_rules_6.jpg?alt=media\&token=e71a34eb-669d-4f07-a268-0c1305bcadc8)

### 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://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FFTMuas1Yoea0gcKcDYYZ%2Fadministration-settings-notification_rules-slack_integration-1.png?alt=media\&token=04710260-cd7b-40be-aa01-e34ea9f1388a)

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2Fc1Sq1pxmUKeCYbxVYtlf%2Fadministration-settings-notification_rules-slack_integration-2.png?alt=media\&token=963fe05d-907f-4124-b8fc-398ac45563cf)

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2F5QrSldxlb5O0BEEz2mHT%2Fadministration-settings-notification_rules-slack_integration-3.png?alt=media\&token=2120f6a4-f32b-4f19-8595-e13feff1014a)

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

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FK5TAfiSJCf8Wjc0pqboe%2Fadministration-settings-notification_rules-slack_integration-4.png?alt=media\&token=ea98df5a-23c2-4a78-b0e3-8af828bc2c2f)

![](https://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2FvEAqjE2zALQ2vMW7Hy46%2Fadministration-settings-notification_rules-slack_integration-5.png?alt=media\&token=66c60650-b5a6-4777-95f9-816472f01af2)

### 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://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2Fgit-blob-e9e24beece762aa1cc05c684a0e3f7e2525a5c79%2Fadministration-settings-notification_rules_push_configuration_1.png?alt=media)

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://3557270342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2FOE03dnjP5f5aF1buzl%2Fuploads%2Fgit-blob-b09e3a541d9949c85dd1ea4c01cb4458c3207b9e%2Fadministration-settings-notification_rules_push_configuration_2.png?alt=media)
