The anatomy of Listeners
Component | Description | Example |
---|---|---|
Domain | the jurisdiction of the event | record, sheet, workbook, space, file, job, agent |
Topic | a combination of a domain and an action | workbook:created workbook:updated workbook:deleted |
Context | detailed information about context of the event |
|
Payload (optional) | detailed information about execution of the event |
|
listener.on
:
listener.namespace
method.
Listener | Location | Description |
---|---|---|
development | developer machine | local listener for development |
client-side | user machine | browser embedded listener |
Agent | Flatfile secure cloud | Flatfile hosted server-side listener |
server-side | your secure server | self-hosted server-side listener |
commit:created
events, the CLI will automatically configure the Agent to only listen to commit:created
events. If your listener has a wildcard listener **
, the CLI will configure the Agent to listen to all events.
default
.
If more than one Agent is deployed to the same environment and no slug is provided the CLI will prompt you to select which Agent you would like to update.
Please see Deploying to Flatfile for more information on deploying an Agent.
develop
command to test, these logs will not be recorded in your dashboard.
Event logs are useful in monitoring and troubleshooting your listener. Each execution of your agent is recorded here, including any custom console logs you have configured in your listener code.