Skip to main content
Version: 3.0.0

Event Trigger

A pre-defined set of conditions within an automation that activates in response to specific events. When a trigger is fired, it initiates the execution of corresponding actions for that automation.

EventTrigger​

info

EventTrigger is defined beneath the following ancestor nodes in the YAML structure:

Below are the properties for the EventTrigger. Each property links to the specific details section further down in this page.

PropertyDefaultTypeRequiredDescription
eventsarray[One of: (EventSqlFilter, EventPythonFilter, EventTypeFilter)]
NoList of event filters used to identify events that trigger the automation.
sensorsarray[Any of: (SensorOptions, string)]
NoList of sensors that trigger the automation.

Property Details​

Automation​

An automation defines a set of actions to be performed when defined sensor or event triggers occur.

PropertyDefaultTypeRequiredDescription
automationAutomationOptionsYesConfiguration options for the automation.

AutomationOptions​

Configuration options for an automation.

PropertyDefaultTypeRequiredDescription
descriptionstring
NoA brief description of what the model does.
metadataResourceMetadata
NoMeta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources.
namestringYesThe name of the model
enabledboolean
NoA boolean flag indicating whether the automation is enabled (or not). Defaults to True.
actionsarray[Any of: (ActionOptions, string)]
NoList of actions that the automation performs when triggered.
triggersEventTrigger
NoList of automation triggers.

EventPythonFilter​

An event filter that filters based on Python code.

PropertyDefaultTypeRequiredDescription
typesarray[string]YesList of event types.
python_filterstringYesPython code used to filter events from the event stream.

EventSqlFilter​

An event filter that filters based on an SQL query expression.

PropertyDefaultTypeRequiredDescription
typesarray[string]YesList of event types.
sql_filterstringYesSQL query expression used to filter events from the event stream.

EventTypeFilter​

An event filter that filters based on a list of event types.

PropertyDefaultTypeRequiredDescription
typesarray[string]YesList of event types.

SensorOptions​

Configuration options for a sensor.

PropertyDefaultTypeRequiredDescription
descriptionstring
NoA brief description of what the model does.
metadataResourceMetadata
NoMeta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources.
namestringYesThe name of the model
configobject with property values of type None
YesConfiguration for the sensor.
typestringYesType of sensor.

ResourceMetadata​

Meta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources.

PropertyDefaultTypeRequiredDescription
sourceResourceLocation
NoThe origin or source information for the resource.
source_event_uuidstring
NoUUID of the event that is associated with creation of this resource.

ResourceLocation​

The origin or source information for the resource.

PropertyDefaultTypeRequiredDescription
pathstringYesPath within repository files where the resource is defined.
first_line_numberinteger
NoFirst line number within path file where the resource is defined.