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.
- Navigate to Studio Datasources.
- Search for your IOT Datasource and open it.
- Click on the Alerts tab.
- Click on the Add alert button.
- Provide a descriptive Alert name for the IOT alert.
- Enter the Alert message that will be displayed when the alert condition is met.
- Select the dimension from the dropdown.
- Click on Add rules to define the specific conditions for the alert.
- Select the Measure to be used in the alert.
- 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.
- 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.
- Define the value based on the selected relational operator.
- 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.
- 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.
- Click on the Delete icon if you want to delete any actions or rules defined.
- Click Save to save the new IOT alert configuration.
- To activate the IOT alert, click on the Enable alert icon on the required alert.
Testing the Alert
- Go to the Upload data tab.
- Copy the URL and the JSON from the Upload data tab.
- Open Postman or any other URL triggering site.
- Paste the URL under a POST request, and paste the JSON under the Body.
- Modify your data if needed.
- Click on the Send request.
- If the status is 200 OK in postman, you will see the Alerts notification in Infoveave.