Skip to main content

Tutorial: Set up Alerts Rules

This tutorial will show you how to set up an alert rule and email notifications.

Requirements

  • If you are not registered to the Spotflow IoT Platform yet, Sign Up.
  • You need to have an existing Stream. A Stream called default-stream in Stream Group default-stream-group is created automatically after you register. Create a new one if you want to use a different Stream.

1. Create Notification Target

First, you need to create a notification target. This is an e-mail group that will be notified when an alert is raised.

  1. Open the link Notification Targets in the left sidebar.

  2. Click Create new in the upper right corner.

  3. Enter a name for the notification target. Add the e-mail addresses that should be notified when an alert is raised. Click Create.

  4. Your notification target has been created. Click it in the list of notification targets.

  5. See the details of your newly created notification target.

2. Create Alert Rule

Now, you can use the freshly created target when defining your alert rule:

  1. Open the link Rules in the left sidebar.

  2. Click Create new in the upper right corner.

  3. Enter a short name for the rule. Select a stream group and a stream that should be monitored. Choose to monitor all the devices or set a single device to be monitored. Set the period during which the device is allowed not to send any data. Select the notification target you created earlier. Click Create.

  4. See the newly create alert rule in the list of alert rules.

That's it! You've successfully created an alert rule. If the monitored device(s) stop sending data to this stream, an alert will be triggered, and you'll be promptly notified via email.