Difference between revisions of "V2/CMS Tutorial/User Tools/Creating Content/Automation/Event/Inputs"
From Senfi Docs
Elysia.Tan (talk | contribs) (Created page with "<h1 class="main-heading">Event Inputs</h1>") |
Elysia.Tan (talk | contribs) |
||
Line 1: | Line 1: | ||
<h1 class="main-heading">Event Inputs</h1> | <h1 class="main-heading">Event Inputs</h1> | ||
+ | |||
+ | Event inputs are used to pass "variables"/"messages" from a triggered [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Expression|expression]] to the [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event|event]], and on to the event's [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event/Action|action]]/[[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Alarm|alarm]]. | ||
+ | |||
+ | The following can be embedded: | ||
+ | * [[#Embed value & tag|Embed value/tag of an Input Metric]] | ||
+ | * [[#Embed Event Name|Embed event name]] | ||
+ | * [[#Embed Event Description|Embed event description]] | ||
+ | |||
+ | ===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]]. | ||
+ | |||
+ | To embed: | ||
+ | * metric's value, use <tt>${<measurement_code>.<metric_code>}</tt>. e.g: <tt>${iot_temperature_sensor_v1.temperature}</tt> | ||
+ | * metric's tag, use <tt>${<measurement_code>.<tag>}</tt>. e.g: <tt>${iot_temperature_sensor_v1.site_id}</tt> | ||
+ | |||
+ | ===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]]. | ||
+ | |||
+ | To embed: | ||
+ | * Event's name, use <tt>${name}</tt>. | ||
+ | |||
+ | ===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]]. | ||
+ | |||
+ | To embed: | ||
+ | * Event's description, use <tt>${description}</tt>. |
Revision as of 22:34, 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 content of an event action/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 content of an event action/description.
To embed:
- Event's name, use ${name}.
Embed Event Description
You can embed the description of an event in the content of an event action.
To embed:
- Event's description, use ${description}.