You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-central/howto-create-event-rules.md
+19-21Lines changed: 19 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,26 +3,26 @@ title: Create and manage event rules in your Azure IoT Central application | Mic
3
3
description: Azure IoT Central event rules enable you to monitor your devices in near real time and to automatically invoke actions, such as sending an email, when the rule triggers.
4
4
author: ankitgupta
5
5
ms.author: ankitgup
6
-
ms.date: 04/29/2018
6
+
ms.date: 08/14/2018
7
7
ms.topic: conceptual
8
8
ms.service: iot-central
9
9
services: iot-central
10
10
manager: peterpr
11
11
---
12
12
13
-
# Create an Event rule and set up notifications in your Azure IoT Central application
13
+
# Create an eEvent rule and set up notifications in your Azure IoT Central application
14
14
15
-
You can use Azure IoT Central to remotely monitor your connected devices. Azure IoT Central rules enable you to monitor your devices in near real time and automatically invoke actions, such as send an email or trigger Microsoft Flow, when the rule triggers. In just a few clicks, you can define the condition to monitor your device data and configure the corresponding action. This article explains event monitoring rule in detail.
15
+
You can use Azure IoT Central to remotely monitor your connected devices. Azure IoT Central rules enable you to monitor your devices in near real time and automatically invoke actions, such as send an email or trigger Microsoft Flow. In just a few clicks, you can define the condition for which to monitor your device data and configure the corresponding action. This article explains how to create rules to monitor events sent by the device.
16
16
17
-
Devices can use [event measurement](howto-set-up-template.md) to send important or informational device events. An event rule triggers when the selected device event is reported by the device.
17
+
Devices can use event measurement to send important or informational device events. An event rule triggers when the selected device event is reported by the device.
18
18
19
19
## Create an event rule
20
20
21
-
To create an event rule, the device template must have atleast one Event measurement defined. This example uses a refrigerated vending machine device that reports fan motor error event. The rule monitors the event reported by the device and sends an email whenever the event is reported.
21
+
To create an event rule, the device template must have at least one event measurement defined. This example uses a refrigerated vending machine device that reports a fan motor error event. The rule monitors the event reported by the device and sends an email whenever the event is reported.
22
22
23
-
1. Using Device Explorer, navigate to the device template you are adding the rule for.
23
+
1. Using Device Explorer, navigate to the device template for which you are adding the rule for.
24
24
25
-
1. Under the selected template click on an existing device.
25
+
1. Under the selected template, click on an existing device.
26
26
27
27
>[!TIP]
28
28
>If the template doesn't have any devices then add a new device first.
@@ -35,25 +35,24 @@ To create an event rule, the device template must have atleast one Event measure
35
35
1. On the **Rules** tab, click **+ New Rule** to see the types of rules you can create.
>The rule automatically scopes all the devices under the device template.
49
+
The rule automatically applies to all the devices under the device template.
51
50
52
-
### Configure the rule condition
51
+
### Configure the rule conditions
53
52
54
53
Condition defines the criteria that is monitored by the rule.
55
54
56
-
1. Choose the **+** next to **Condition** to add a new condition.
55
+
1. Choose the **+** next to **Conditions** to add a new condition.
57
56
58
57
1. Choose the event that you want to monitor from the Measurement dropdown. In this example, **Fan Motor Error** event has been selected.
59
58
@@ -62,10 +61,10 @@ Condition defines the criteria that is monitored by the rule.
62
61
63
62
1. Optionally, you can also set **Count** as **Aggregation** and provide the corresponding threshold.
64
63
65
-
- Without aggregation, the rule triggers for each event data point that meets the condition. For example, if the rule is configured to trigger when 'Fan Motor Error' event occurs then the rule will trigger almost instantaneously when the device reports that event.
64
+
- Without aggregation, the rule triggers for each event data point that meets the condition. For example, if the rule is configured to trigger when a 'Fan Motor Error' event occurs then the rule will trigger almost instantaneously when the device reports that event.
66
65
- If Count is used as an aggregate function, then you have to provide a **Threshold** and an **Aggregate time window** over which the condition needs to be evaluated. In this case, the count of events are aggregated and the rule will trigger only if the aggregated event count matches the threshold.
67
66
68
-
For example, if you want to alert when there are more than three device events within 5 minutes, then select the event and set the aggregate function as "count", operator as "greater than" and "threshold" as 3. Set "Aggregation time period" as "5 minutes". The rule triggers when more than three events are sent by the device within 5 minutes. The rule evaluation frequency is the same as **Aggregate time window**, which means the rule is evaluated once every 5 minutes in this example.
67
+
For example, if you want to alert when there are more than three device events within 5 minutes, then select the event and set the aggregate function as "count", operator as "greater than", and "threshold" as 3. Set "Aggregation time period" as "5 minutes". The rule triggers when more than three events are sent by the device within 5 minutes. The rule evaluation frequency is the same as the**Aggregate time window**, which means the rule is evaluated once every 5 minutes in this example.
Copy file name to clipboardExpand all lines: articles/iot-central/howto-create-telemetry-rules.md
+22-24Lines changed: 22 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,28 @@
1
1
---
2
2
title: Create and manage telemetry rules in your Azure IoT Central application | Microsoft Docs
3
3
description: Azure IoT Central telemetry rules enable you to monitor your devices in near real time and to automatically invoke actions, such as sending an email, when the rule triggers.
4
-
author: tbhagwat3
5
-
ms.author: tanmayb
6
-
ms.date: 04/16/2018
4
+
author: ankitgupta
5
+
ms.author: ankitgup
6
+
ms.date: 08/14/2018
7
7
ms.topic: conceptual
8
8
ms.service: iot-central
9
9
services: iot-central
10
10
manager: peterpr
11
11
---
12
12
13
-
# Create a Telemetry rule and set up notifications in your Azure IoT Central application
13
+
# Create a telemetry rule and set up notifications in your Azure IoT Central application
14
14
15
-
You can use Azure IoT Central to remotely monitor your connected devices. Azure IoT Central rules enable you to monitor your devices in near real time and automatically invoke actions, such as send an email or trigger Microsoft Flow, when the rule triggers. In just a few clicks, you can define the condition to monitor your device data and configure the corresponding action. This article explains how to create a telemetry rule in detail.
15
+
You can use Azure IoT Central to remotely monitor your connected devices. Azure IoT Central rules enable you to monitor your devices in near real time and automatically invoke actions, such as send an email or trigger Microsoft Flow. In just a few clicks, you can define the condition for which to monitor your device data and configure the corresponding action. This article explains how to create rules to monitor telemetry sent by the device.
16
16
17
-
Devices can use [telemetry measurements](howto-set-up-template.md) to send numerical data from the device. A telemetry rule triggers when the selected device telemetry crosses a specified threshold.
17
+
Devices can use telemetry measurement to send numerical data from the device. A telemetry rule triggers when the selected device telemetry crosses a specified threshold.
18
18
19
19
## Create a telemetry rule
20
20
21
-
To create a telemetry rule, the device template must have atleast one telemetry measurement defined. This example uses a refrigerated vending machine device that sends temperature and humidity telemetry. The rule monitors the temperature reported by the device and sends an email when it goes above 80 degrees.
21
+
To create a telemetry rule, the device template must have at least one telemetry measurement defined. This example uses a refrigerated vending machine device that sends temperature and humidity telemetry. The rule monitors the temperature reported by the device and sends an email when it goes above 80 degrees.
22
22
23
-
1. Using Device Explorer, navigate to the device template you are adding the rule for.
23
+
1. Using Device Explorer, navigate to the device template for which you are adding the rule for.
24
24
25
-
1. Under the selected template click on an existing device.
25
+
1. Under the selected template, click on an existing device.
26
26
27
27
>[!TIP]
28
28
>If the template doesn't have any devices then add a new device first.
@@ -33,33 +33,32 @@ To create a telemetry rule, the device template must have atleast one telemetry
33
33
34
34
1. On the **Rules** tab, click **+ New Rule** to see the types of rules you can create.
35
35
36
-
1. Click on **Telemetry** tile to create a rule to monitor device telemetry.
36
+
1. Click on the **Telemetry** tile to create a rule to monitor device telemetry.
1. Next, choose **Aggregation**, **Operator**, and provide a **Threshold** value.
61
-
- Aggregation is optional. Without aggregation, the rule triggers for each telemetry data point that meets the condition. For example, if the device reports temperature as 85 and the rule is configured to trigger when Temperature is above 80 then the rule will trigger almost instantaneously when the device reports it.
62
-
- If an aggregate function like Average, Min, Max, Count is chosen then the user must provide an **Aggregate time window** over which the condition needs to be evaluated. For example, if you set the period as "5 minutes" and your rule looks for Average temperature above 80, the rule triggers when the average temperature is above 80 for 5 minutes. The rule evaluation frequency is the same as **Aggregate time window**, which means the rule is evaluated once every 5 minutes in this example.
60
+
- Aggregation is optional. Without aggregation, the rule triggers for each telemetry data point that meets the condition. For example, if the rule is configured to trigger when temperature is above 80 then the rule will trigger almost instantly when the device reports temperature > 80.
61
+
- If an aggregate function like Average, Min, Max, Count is chosen then, the user must provide an **Aggregate time window** over which the condition needs to be evaluated. For example, if you set the period as "5 minutes" and your rule looks for Average temperature above 80, the rule triggers when the average temperature is above 80 for at least 5 minutes. The rule evaluation frequency is the same as the**Aggregate time window**, which means the rule is evaluated once every 5 minutes in this example.
63
62
64
63
>[!NOTE]
65
64
>More than one telemetry measurement can be added under **Condition**. When multiple conditions are specified, all the conditions must be met for the rule to trigger. Each conditon gets joined by an 'AND' clause implicitly. When using aggregate, every measurement must be aggregated.
@@ -68,7 +67,7 @@ Condition defines the criteria that is monitored by the rule.
68
67
69
68
### Configure the action
70
69
71
-
This section shows you how to specify what the rule does when the condition matches by adding an action.
70
+
This section shows you how to specify an action in the rule. Actions get invoked when all the conditions specified in the rule evaluate to true.
72
71
73
72
1. Choose the **+** next to **Actions**. Here you see the list of available actions. During public preview, **Email** is the only supported action.
74
73
@@ -105,9 +104,8 @@ Navigate to the device and choose the rule you want to enable or disable. Toggle
105
104
106
105
## Next steps
107
106
108
-
Now that you have learned how to create rules in your Azure IoT Central application, here is the suggested next step:
107
+
Now that you have learned how to create rules in your Azure IoT Central application, here are some next step:
109
108
110
-
> [!div class="nextstepaction"]
111
-
> [Add Microsoft Flow action in rules](howto-add-microsoft-flow.md)
112
-
> [Add Webhook action in rules](howto-create-webhooks.md)
113
-
> [How to manage your devices](howto-manage-devices.md)
109
+
-[Add Microsoft Flow action in rules](howto-add-microsoft-flow.md)
110
+
-[Add Webhook action in rules](howto-create-webhooks.md)
111
+
-[How to manage your devices](howto-manage-devices.md)
0 commit comments