Various events are emitted to the Resoto event bus.
It is possible to create custom automations that react to these events by defining jobs.
External components can also subscribe to the event bus via the websocket API.
Cloud Data Sync Events
Resoto continuously synchronizes cloud data to ensure that you always have the latest information about your cloud resources.
collect_and_cleanup Workflow Events
collect_and_cleanup workflow is triggered every hour by default.
collect phase, resources are collected from all configured cloud provider and synchronized with the internal graph. At the conclusion of this phase, the graph database contains the latest state of all resources.
|This event is emitted before collection is started.
|Resource collectors listen on this event to begin resource collection.
|This event is emitted after collection is done.
|This event is emitted after all outer edges have been merged.
Custom logic to react to resource changes should define this event as the trigger.
cleanup_plan phase, Resoto computes which resources should be cleaned up, and marks them for deletion during the subsequent
Resoto ships with built-in cleanup plugins that can be enabled in the
|This event is emitted before the cleanup is planned.
|Cleanup plugins bundled with Resoto listen on this event.
|This event is emitted after the cleanup is planned.
cleanup phase, all resources marked for cleanup are deleted if cleanup is enabled.
Resources are deleted in the order mandated by their dependencies and relationships to other resources.
|This event is emitted before the cleanup is performed.
|Resource collectors listen on this event to delete resources marked for cleanup.
|This event is emitted after the cleanup is performed.
As its name suggests, metrics are generated and provided to the time-series database during the
In this phase, Resoto performs several queries to get updated metrics. Since the incoming data will only change during the next collect run, metrics are generated here and cached until the next collection.
|This event is emitted before metrics are generated.
|Metrics generation begins when this event is emitted.
|This event is emitted after metrics are generated.
Resoto internal events
Resoto also has a set of internal events that are emitted.
Web Socket Connection Events
|Whenever a new listener attaches to the event bus, this event is emitted.
|Whenever an existing listener drops the connection to the event bus, this event is emitted.
|Any config that is updated via the config service will emit such an event.
|Any config that is deleted via the config service will emit such an event.
|The task has been started.
|Longer running tasks may produce progress update events.
|The task has ended.