Difference between revisions of "V2/CMS Tutorial/User Tools/Creating Content/Automation/Event/Inputs"

From Senfi Docs
Jump to: navigation, search
Line 6: Line 6:
 
* [[#Embed value & tag|Embed value/tag of an Input Metric]]
 
* [[#Embed value & tag|Embed value/tag of an Input Metric]]
 
* [[#Embed Event Name|Embed event name]]
 
* [[#Embed Event Name|Embed event name]]
 +
* [[#Embed User-Defined Input|Embed User-Defined Input]]
 
* [[#Embed Event Description|Embed event description]]
 
* [[#Embed Event Description|Embed event description]]
  
 
===Embed value & tag===
 
===Embed value & tag===
You can embed the value or tag of an Input metric in the content of an event [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Action|action]]/[[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Description|description]].
+
You can embed the value or tag of an Input metric in the message of an [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Action|event action]]/[[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Description|event description]].
  
 
To embed:
 
To embed:
Line 16: Line 17:
  
 
===Embed Event Name===
 
===Embed Event Name===
You can embed the name of an event in the content of an event [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Action|action]]/[[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Description|description]].
+
You can embed the name of an event in the message of an [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Action|event action]]/[[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Description|event description]].
  
 
To embed:
 
To embed:
 
* Event's name, use <tt>${name}</tt>.
 
* Event's name, use <tt>${name}</tt>.
 +
 +
===Embed User-Defined Input===
 +
You can embed the user-defined inputs in the message of an [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Action|event action]]/[[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Description|event description]].
 +
 +
To embed:
 +
# Key the user-defined input into the '''Inputs''' field under the '''GENERAL INFORMATION''' tab of the event.
 +
# Select the user-defined input which will be shown in the [[File:User_defined_input.png|160px|link=]] '''Click to embed input''' field (under the message of an event action/event description box).
 +
 +
under the message of an box.
  
 
===Embed Event Description===
 
===Embed Event Description===
You can embed the description of an event in the content of an event [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Action|action]].
+
You can embed the description of an event in the message of an [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Action|event action]]/[[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Description|event description]].
  
 
To embed:
 
To embed:
 
* Event's description, use <tt>${description}</tt>.
 
* Event's description, use <tt>${description}</tt>.

Revision as of 23:20, 21 June 2021

Event Inputs

Event inputs are used to pass "variables"/"messages" from a triggered expression to the event, and on to the event's action/alarm.

The following can be embedded:

Embed value & tag

You can embed the value or tag of an Input metric in the message of an event action/event description.

To embed:

  • metric's value, use ${<measurement_code>.<metric_code>}. e.g: ${iot_temperature_sensor_v1.temperature}
  • metric's tag, use ${<measurement_code>.<tag>}. e.g: ${iot_temperature_sensor_v1.site_id}

Embed Event Name

You can embed the name of an event in the message of an event action/event description.

To embed:

  • Event's name, use ${name}.

Embed User-Defined Input

You can embed the user-defined inputs in the message of an event action/event description.

To embed:

  1. Key the user-defined input into the Inputs field under the GENERAL INFORMATION tab of the event.
  2. Select the user-defined input which will be shown in the User defined input.pngClick to embed input field (under the message of an event action/event description box).

under the message of an box.

Embed Event Description

You can embed the description of an event in the message of an event action/event description.

To embed:

  • Event's description, use ${description}.