---
title: Datasource Alerts
description: Setting up IOT alerts in Infoveave to monitor real-time data, define custom rules, and automate activities based on conditions.
---
import { Aside , Steps} from '@astrojs/starlight/components';

# Datasource Alerts

You can set alerts for your IOT Datasource by specifying custom rules on the data received in real time. You can set up rules based on threshold values over time or events that are greater than or less than a target.

## Creating an IOT Alert

Create an IOT alert to set the conditions that trigger the alert and define the actions to be taken when those conditions are met. To configure the IOT alert, follow the steps below.

<Steps>
1. Navigate to **Studio** <i class="fa-duotone fa-regular fa-arrow-right"></i> **Datasources**.  
2. Search for your IOT Datasource and open it.  
3. Click on the **Alerts** tab.  
4. Click on the **Add alert** button.  
5. Provide a descriptive **Alert name** for the IOT alert.  
6. Enter the **Alert message** that will be displayed when the alert condition is met.  
7. Select the dimension from the dropdown.  
8. Click on **Add rules** to define the specific conditions for the alert.  
9. Select the **Measure** to be used in the alert.  
10. 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.  
11. 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.    
12. Define the value based on the selected relational operator.
13. 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.  
14. 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.  
15. Click on the **Delete** icon if you want to delete any actions or rules defined.  
16. Click **Save** to save the new IOT alert configuration.  
17. To activate the IOT alert, click on the **Enable alert** icon on the required alert.  
</Steps>

## Testing the Alert

<Steps>
18. Go to the **Upload data** tab.  
19. Copy the URL and the JSON from the **Upload data** tab.  
20. Open Postman or any other URL triggering site.  
21. Paste the URL under a **POST** request, and paste the JSON under the **Body**.  
22. Modify your data if needed.  
23. Click on the **Send** request.  
24. If the status is **200 OK** in postman, you will see the **Alerts notification** in Infoveave.
</Steps>