Event > List of events
In charms, events are of two basic kinds – Juju events and Ops events.
Juju events
The complete list of Juju events includes the following statically-named events:
And the following dynamically-named events:
The placeholder element stands for the names defined in the charmcraft.yaml
file of the charm.
For each action supported by the charm:
For each container
attached to the charm:
<container>-pebble-custom-notice
<container>-pebble-ready
<container>-pebble-check-failed
(in Juju 3.6 and above)<container>-pebble-check-recovered
(in Juju 3.6 and above)
For each relation
endpoint supported by the charm, five relation events:
For each storage
endpoint supported by the charm, two storage events:
Ops events
The operator framework defines some events to facilitate the charm lifecycle management.
These events are internal in the sense that Juju is completely unaware of them. Juju emits, say, a start
event, but the operator framework can emit on the charm, on top of start
, any number of events. Deferred events, or any of these ops
events:
collect-app-status
collect-unit-status
pre-commit
commit
In addition to this, every Framework object (including charms) can define its own custom events.
See more: Custom event