Automation
An Automation defines a set of Actions to be performed when defined Sensor or Event triggers occur.
Automation
Below are the properties for the Automation. Each property links to the specific details section further down in this page.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| automation | Yes | Automation configuration options. |
Property Details
AutomationOptions
Configuration options for an Automation.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| description | string | No | Brief description of what the model does. | |
| metadata | No | Meta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources. | ||
| name | string | Yes | The name of the model | |
| enabled | boolean | No | Boolean flag indicating whether the Automation is enabled. Defaults to True. | |
| actions | array[Any of: (string)] | No | List of Actions that the Automation performs when triggered. | |
| triggers | EventTrigger | No | List of Automation triggers. |
ActionOptions
Configuration options for an Action.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| description | string | No | Brief description of what the model does. | |
| metadata | No | Meta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources. | ||
| name | string | Yes | The name of the model | |
| config | object with property values of type None | Yes | Action configuration. | |
| type | string | Yes | Type of action. |
EventTrigger
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.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| events | array[One of: (EventSqlFilter, EventPythonFilter, EventTypeFilter)] | No | List of Event filters used to identify Events that trigger the Automation. | |
| sensors | array[Any of: (string)] | No | List of Sensors that trigger the Automation. |
EventPythonFilter
Event filter that filters based on Python code.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| types | array[string] | Yes | List of event types. | |
| python_filter | string | Yes | Python code used to filter Events from the Event stream. |
EventSqlFilter
Event filter that filters based on an SQL query expression.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| types | array[string] | Yes | List of event types. | |
| sql_filter | string | Yes | SQL query expression used to filter Events from the Event stream. |
EventTypeFilter
Event filter that filters based on a list of Event types.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| types | array[string] | Yes | List of event types. |
SensorOptions
Configuration options for a Sensor.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| description | string | No | Brief description of what the model does. | |
| metadata | No | Meta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources. | ||
| name | string | Yes | The name of the model | |
| config | object with property values of type None | Yes | Sensor configuration. | |
| type | string | Yes | Type 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.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| source | No | The origin or source information for the resource. | ||
| source_event_uuid | string | No | Event UUID associated with creation of this resource. |
ResourceLocation
The origin or source information for the resource.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| path | string | Yes | Path within repository files where the resource is defined. | |
| first_line_number | integer | No | First line number within path file where the resource is defined. |