Trigger
A project-specific mapping between an event-type (provided by a connection) and an entry-point function (implemented in a specific file in the project's code).
Formal Definition
Let AutoKitteh have a configured project , and:
- has a configured connection
- provides a certain event-type
- implements a certain function in its code
- has a configured trigger between and
- has an active deployment
Whenever receives an instance of , the AutoKitteh server will:
- Dispatch to
- Start a runtime session that executes
note
Connections may be reused by multiple projects, and event-types may be significant to multiple projects. In other words, any event may be a trigger for multiple entry-point functions.
Therefore, the AutoKitteh dispatcher supports a "fan-out" behavior, to distribute each event to multiple consumers simultaneously, if needed.
Configuration Details
Field | Type | Description |
---|---|---|
connection | String | Connection name |
event_type | String | Provided by the integration that the connection is an instance of |
entrypoint | String | Format: file_name:function_name |
YAML Manifest Examples
triggers:
- connection: my_github_connection
event_type: pull_request
entrypoint: program.star:on_github_pull_request
- connection: my_http_connection
event_type: get
entrypoint: program.star:on_http_get