|
| 1 | +--- |
| 2 | +title: Configure rules and manage alerts in Azure FarmBeats |
| 3 | +description: Describes how to configure rules and manage alerts in FarmBeats |
| 4 | +author: uhabiba04 |
| 5 | +ms.topic: article |
| 6 | +ms.date: 11/04/2019 |
| 7 | +ms.author: v-umha |
| 8 | +--- |
| 9 | + |
| 10 | +# Configure rules and manage alerts in FarmBeats |
| 11 | + |
| 12 | +Azure FarmBeats allows you to create rules based on the business logic, in addition to the sensor data that flows from the sensors and devices deployed in your farm. The rules trigger alerts in the system whenever sensor values cross a threshold value. By viewing and analyzing the alerts created after the threshold values, you can quickly act on any issues and get required solutions. |
| 13 | + |
| 14 | +## Create rule |
| 15 | + |
| 16 | +1. On the home page, go to **Rules**. |
| 17 | +2. Select **New Rule**. The New Rule window displays. |
| 18 | + |
| 19 | +  |
| 20 | + |
| 21 | +3. Enter the **Rule Name** and **Rule Description** and then select a farm from the **Select Farm** drop-down menu. |
| 22 | +4. Type your farm name to select the farm and **Conditions** section appears on the same window. |
| 23 | + |
| 24 | +  |
| 25 | + |
| 26 | +5. In **Conditions**, enter the values for **Measure**, **Operator** and **Value**. |
| 27 | +6. Type the measure name in the **Measure** drop-down menu. |
| 28 | +7. Select **+Add Condition** to add more conditions to the rule. |
| 29 | +8. Select the **Severity level**. |
| 30 | +9. In **Action**, switch on the **Email enabled** toggle button to enable email alerts. |
| 31 | + |
| 32 | +  |
| 33 | + |
| 34 | +10. Enter the **Email addresses** to which you want to send the email alert, along with the **Email Subject** and **Additional Notes**. |
| 35 | +11. In the **Rule Status**, switch on the **Enabled** toggle button to enable or disable the rule. |
| 36 | + You can view the number of devices that will be affected by the rule. |
| 37 | +12. Select **Apply** to create the rule. |
| 38 | + |
| 39 | +## View rule |
| 40 | + |
| 41 | +The **Farm** page displays the list of available rules. Select a **Rule Name**. A window displays the following details that are applicable for the selected rule: |
| 42 | + - Rule name |
| 43 | + - Link to the farm to which the rule is associated |
| 44 | + - Created date |
| 45 | + - Last updated date |
| 46 | + - Severity level |
| 47 | + - Rule status |
| 48 | + - List of conditions |
| 49 | + - Number of devices affected by the rule |
| 50 | + |
| 51 | +  |
| 52 | + |
| 53 | +## Edit rule |
| 54 | + |
| 55 | +To edit a rule, follow these steps: |
| 56 | + |
| 57 | +1. On the home page, select **Rules** from the left navigation menu. |
| 58 | + The rules window displays. |
| 59 | +2. Select the rule for which you want to edit. |
| 60 | + |
| 61 | +  |
| 62 | + |
| 63 | +3. Select **Edit** from the action bar, the **Edit Rule** window displays. |
| 64 | + |
| 65 | +  |
| 66 | + |
| 67 | +4. Change the **Rule Name**, and **Rule Description** and then select a farm from the **Select Farm** drop-down menu. |
| 68 | +5. Type your farm name to select the farm and **Conditions** appears in the same window. |
| 69 | +6. In **Conditions**, edit **Measure**, **Operator** and **Value**. |
| 70 | +7. Type the measure name in the **Measure** drop-down menu. |
| 71 | +8. Select **+Add Condition** to add/edit conditions to the rules. |
| 72 | + |
| 73 | +  |
| 74 | + |
| 75 | +9. Select the **Severity Level**. |
| 76 | +10. In **Action**, switch on the **Email enabled** toggle button to enable email alerts. |
| 77 | +11. Edit the **Email addresses** that you want to send the email alert, along with the **Email Subject** and **Additional Notes**. |
| 78 | +12. In the **Rule Status**, switch on the **Enabled** toggle button to enable or disable the rule. |
| 79 | +You can view the number of devices that will be affected by this rule. |
| 80 | +13. Select **Apply** to edit the rule. |
| 81 | + |
| 82 | +## Change rule status |
| 83 | + |
| 84 | +To change the status of a rule, follow these steps: |
| 85 | + |
| 86 | +1. On the home page, select **Rules** from the left navigation menu. The rules window displays. |
| 87 | +2. Select the rule for which you want to change the status. |
| 88 | + |
| 89 | +  |
| 90 | + |
| 91 | +3. Select **Change Status** from the action bar. The **Change Status** window displays. |
| 92 | + |
| 93 | +  |
| 94 | + |
| 95 | +3. Change the rule status using the **Change Status** toggle button. |
| 96 | + You can view the number of devices that will be affected by the Rule. |
| 97 | +4. Select **Apply** to change the rule status. |
| 98 | + |
| 99 | +## Delete rule |
| 100 | + |
| 101 | +To delete a rule, follow these steps: |
| 102 | + |
| 103 | +1. On the home page, select **Rules** from the left navigation menu. The rules window displays. |
| 104 | +2. Select the rule for which you want to delete. |
| 105 | + |
| 106 | +  |
| 107 | + |
| 108 | +3. Select **Delete** from the action bar. |
| 109 | + |
| 110 | +  |
| 111 | + |
| 112 | +4. The **Delete Rule** dialog box displays. Select **Delete**. |
0 commit comments