---
title: Target Threshold Alerts
description: Set up and manage IoT alerts in Infoveave to monitor targets and thresholds, automate actions, and get notified instantly when specific data conditions or rules are met. 
---
import { Aside, Steps } from '@astrojs/starlight/components';

# Alerts

You can set up alerts on targets and thresholds to indicate whether the data meets the set target. When you create a target and threshold, Infoveave automatically creates one target alert and three threshold alerts for each of them. You can assign meaningful names to these alerts and configure them to appear on your device to show whether the desired target is achieved. You can also trigger a subsequent action based on the alert.

## Creating an Alert

To set alerts directly from the Alerts section in Infoveave, follow these steps.

<Steps>  
1. To create and set up an IOT alert based on your available IOT Datasource, navigate to **Automation <i class="fa-duotone fa-regular fa-arrow-right"></i> Alerts**. All alerts set by you or shared with you will be displayed under the tabs **My Alerts** and **Shared Alerts** respectively.
2. Click on the **New Alert** button.
3. Provide a descriptive **Alert name** for the IOT alert.
4. Enter the **Alert message** that will be displayed when the alert condition is met.
5. Select the IOT Datasource to which the alert will be applied.
6. Choose the dimensions that the alert will be based on.  
   ```The dimension and Add rule button will only appear after selecting the Datasource.```
7. Click on **Add rules** to define the specific conditions for the alert.
8. Select the **Measure** to be used in the alert.
9. Define the **Alert rule type**. You can choose from options like value, difference, percentage difference, last N events, last N minutes, aggregate of last N events, or aggregate of last N minutes. If you choose last N events or last N minutes, you will have extra fields to define the N value. For aggregate of last N events and aggregate of last N minutes, you will also need to select the aggregator.
10. Pick a relational operator such as greater than, greater than or equal to, less than, less than or equal to, equal to, in between, or not equal to.  
11. Define the value based on the selected relational operator.
12. Under **Filters**, click on **Add filter** to include dimensional filters for more specificity.  
    - Select the dimension you want to filter on.  
    - Choose from conditional filters like are, are not, in, or not in, and define the specific dimension value.
13. Click on the **Action** button to specify the action to be taken when the alert condition is met.  
    - Provide the **Name**.  
    - Select the desired workflow from the list.  
    - To automatically execute the selected activity or workflow when the alert condition is met, enable the **Automated** checkbox.  
    - Click on the **Save** icon.
14. Click on the **Delete** icon if you want to delete any actions or rules defined.
15. Click **Save** to save the new IOT alert configuration.
16. To activate the IOT alert, click on the **Enable alert** icon on the required alert.
</Steps>

## Testing the Alert

<Steps>
17. Go to **Studio <i class="fa-duotone fa-regular fa-arrow-right"></i> Datasources**.
18. Locate the IOT Datasource.
19. Click on the **Upload data** icon.
20. Copy the URL and the JSON from the **HTTP request information** dialog box.
21. Open Postman or any other URL triggering site.
22. Paste the URL under a **POST** request, and paste the JSON under the **Body**.
23. Modify your data if needed.
24. Click on the **Send** request.
25. If the status is **200 OK** in postman, you will see the **Alerts notification** in Infoveave.
</Steps>

