Reaction
Type: Object
A Reaction is an event-driven automation that triggers a function when a specific event, or change of data, occurs.
The function can be found in the Functions library, and will receive a consistent payload of what the event is, as well as access to the full Lua API to enable the desired outcomes.
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| active | Boolean! | Whether the reaction is active | ||
| connection | Connection | The connection that owns this reaction | ||
| connectionId | ID | |||
| createdAt | DateTime! | |||
| executionCount | Int! | |||
| executionFailures | Int! | |||
| executionPending | Int! | |||
| executions | [ReactionExecution!]! | filter: ReactionExecutionFilterInputlimit: Intoffset: Intsort: [ReactionExecutionSortInput] | The executions of the reaction | |
| executionSuccesses | Int! | |||
| function | Function | The function that will be executed when the reaction event is triggered | ||
| functionId | ID | |||
| id | ID! | |||
| lastTriggeredAt | DateTime | |||
| name | String! | The name of the reaction | ||
| roleBindings | [IamRoleBinding!]! | filter: IamRoleBindingFilterInputlimit: Intoffset: Intsort: [IamRoleBindingSortInput] | The role bindings for the reaction | |
| subscription | ResourceNotation! | The event that will trigger the reaction | ||
| updatedAt | DateTime! |