How-To Guides
...
Alerts Guides
Create an Email-Alert Trigger for DeviceHub Device Data Quality
10 min
in this guide, you will set up an alert and a trigger for a manufacturing connect edge (mc edge) device that is generating invalid/corrupted data then you will simulate an error output so that an alert is triggered when the alert is triggered, the email addresses specified in the trigger will receive an email with information about the alert before you begin you will have to enable smtp from the manufacturing connect admin console see email docid\ xg4vtwb4x3rb yadjzt97 to learn more if you haven't yet connected your mc edge instance to manufacturing connect , see activate an edge device docid\ m2du1twvne9kz1he r222 an mc edge instance needs to be activated in manufacturing connect before it can trigger alerts step 1 set up an email alert trigger in this step you'll create an email notification alert next, you will create a trigger that will use the email notification alert see alerts docid 2zmaxafw8faxd bhwsep6 for additional details from manufacturing connect , navigate to events & alerts and follow the steps below step 1a set up an email alert to set up an email alert from the events & alerts pane, click the add new action icon the add new action dialog box appears from the add new action dialog box, enter the following details action template select email action name enter an action name enter email enter an email address that will receive the alert notifications limit enter 1 interval select minute click add the newly created action appears in the action list step 1b set up a trigger to set up a trigger from the events & alerts pane, click the add new trigger icon the new trigger pane appears from the new trigger pane, configure the following sections trigger name enter a name for the trigger active select the checkbox dashboard select the checkbox description enter a description for the trigger scope select edge device and select the appropriate mc edge instance source select metrics as the source of the trigger click add new rule select alert template select dh device data quality for target value, msgs/minute, enter 1 minute for alert delay, seconds, enter 60 seconds action action list select the action you previously created continuously select the checkbox to send notifications continuously notification period, minutes enter 1 when done, click save the alert trigger appears in the trigger list step 2 simulate a disconnection from your mce, you will simulate the devicehub driver sending invalid/corrupted data to simulate a disconnection log in to manufacturing connect edge from the navigation panel, navigate to devicehub > tags the tags pane appears click the action menu for the tag you created and select edit for the value type field, select float64 for the formula field, corrupt the formula field by replacing the s in sin with 1 so that the final formula starts with 1in then, click update tag step 3 verify successful trigger and alert from manufacturing connect , you will verify the simulated error rate to verify the trigger and alert log in to manufacturing connect the status overview page displays from the navigation panel, navigate to events & alerts > incidents the incidents pane appears review that the incidents display in the list the email address that was configured for the alert will also receive the respective alert email