Skip to content

Commit c378ea4

Browse files
author
ankitscribbles
committed
Addressing Robin's feedback.
1 parent b27f341 commit c378ea4

File tree

2 files changed

+41
-45
lines changed

2 files changed

+41
-45
lines changed

articles/iot-central/howto-create-event-rules.md

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ title: Create and manage event rules in your Azure IoT Central application | Mic
33
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.
44
author: ankitgupta
55
ms.author: ankitgup
6-
ms.date: 04/29/2018
6+
ms.date: 08/14/2018
77
ms.topic: conceptual
88
ms.service: iot-central
99
services: iot-central
1010
manager: peterpr
1111
---
1212

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
1414

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.
1616

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.
1818

1919
## Create an event rule
2020

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.
2222

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.
2424

25-
1. Under the selected template click on an existing device.
25+
1. Under the selected template, click on an existing device.
2626

2727
>[!TIP]
2828
>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
3535
1. On the **Rules** tab, click **+ New Rule** to see the types of rules you can create.
3636

3737

38-
1. Click on **Event** tile to create a rule.
38+
1. Click on the **Event** tile to create a rule.
3939

4040
![Rule types](media\howto-create-event-rules\Rule_Types.png)
4141

4242

4343
1. Enter a name that helps you to identify the rule in this device template.
4444

45-
1. To immediately enable the rule for all the devices created from this template, toggle **Enable rule**.
45+
1. To immediately enable the rule for all the devices created from this template, toggle **Enable rule for all devices for this template**.
4646

4747
![Rule Detail](media\howto-create-event-rules\Rule_Detail.png)
4848

49-
>[!NOTE]
50-
>The rule automatically scopes all the devices under the device template.
49+
The rule automatically applies to all the devices under the device template.
5150

52-
### Configure the rule condition
51+
### Configure the rule conditions
5352

5453
Condition defines the criteria that is monitored by the rule.
5554

56-
1. Choose the **+** next to **Condition** to add a new condition.
55+
1. Choose the **+** next to **Conditions** to add a new condition.
5756

5857
1. Choose the event that you want to monitor from the Measurement dropdown. In this example, **Fan Motor Error** event has been selected.
5958

@@ -62,10 +61,10 @@ Condition defines the criteria that is monitored by the rule.
6261

6362
1. Optionally, you can also set **Count** as **Aggregation** and provide the corresponding threshold.
6463

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.
6665
- 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.
6766

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.
6968

7069
![Add Event Condition](media\howto-create-event-rules\Aggregate_Condition_Filled_Out.png)
7170

@@ -74,7 +73,7 @@ Condition defines the criteria that is monitored by the rule.
7473
7574
### Configure the action
7675

77-
This section shows you how to specify what the rule does when the condition matches by adding an action.
76+
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.
7877

7978
1. Choose the **+** next to **Actions**. Here you see the list of available actions. During public preview, **Email** is the only supported action.
8079

@@ -107,9 +106,8 @@ Navigate to the device and choose the rule you want to enable or disable. Toggle
107106

108107
## Next steps
109108

110-
Now that you have learned how to create rules in your Azure IoT Central application, here is the suggested next step:
109+
Now that you have learned how to create rules in your Azure IoT Central application, here are some next step:
111110

112-
> [!div class="nextstepaction"]
113-
> [Add Microsoft Flow action in rules](howto-add-microsoft-flow.md)
114-
> [Add Webhook action in rules](howto-create-webhooks.md)
115-
> [How to manage your devices](howto-manage-devices.md)
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)

articles/iot-central/howto-create-telemetry-rules.md

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
---
22
title: Create and manage telemetry rules in your Azure IoT Central application | Microsoft Docs
33
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
77
ms.topic: conceptual
88
ms.service: iot-central
99
services: iot-central
1010
manager: peterpr
1111
---
1212

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
1414

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.
1616

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.
1818

1919
## Create a telemetry rule
2020

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.
2222

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.
2424

25-
1. Under the selected template click on an existing device.
25+
1. Under the selected template, click on an existing device.
2626

2727
>[!TIP]
2828
>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
3333

3434
1. On the **Rules** tab, click **+ New Rule** to see the types of rules you can create.
3535

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.
3737

3838
![Rule Types](media\howto-create-telemetry-rules\Rule_Types.png)
3939

4040
1. Enter a name that helps you to identify the rule in this device template.
4141

42-
1. To immediately enable the rule for all the devices created for this template, toggle **Enable rule**.
42+
1. To immediately enable the rule for all the devices created for this template, toggle **Enable rule for all devices for this template**.
4343

4444
![Rule Detail](media\howto-create-telemetry-rules\Rule_Detail.png)
45-
46-
> [!NOTE]
47-
> The rule automatically scopes all the devices under the device template.
45+
46+
The rule automatically applies to all the devices under the device template.
4847

4948

50-
### Configure the rule condition
49+
### Configure the rule conditions
5150

5251
Condition defines the criteria that is monitored by the rule.
5352

54-
1. Click **+** next to **Condition** to add a new condition.
53+
1. Click **+** next to **Conditions** to add a new condition.
5554

5655
1. Select the telemetry you want to monitor from the **Measurement** dropdown.
5756

5857
![Condition](media\howto-create-telemetry-rules\Aggregate_Condition_Filled_Out.png)
5958

6059
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.
6362

6463
>[!NOTE]
6564
>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.
6867

6968
### Configure the action
7069

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.
7271

7372
1. Choose the **+** next to **Actions**. Here you see the list of available actions. During public preview, **Email** is the only supported action.
7473

@@ -105,9 +104,8 @@ Navigate to the device and choose the rule you want to enable or disable. Toggle
105104

106105
## Next steps
107106

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:
109108

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

Comments
 (0)