Automation · Event-Driven Automation
Events
Cheat sheet · https://pcornel.dk/topic.php?topic=5332
Answer
Events are records that something happened — an alert fired, a file arrived, a commit was pushed — usually JSON with type, source, time and details, used to trigger automation.
Remember
- An event records that something happened.
- Include type, source, time and an ID.
- JSON is the usual format.
First checks
- Event schema (type, source, time, id, data) — structure
- CloudEvents format — standard
- Event catalogue — documentation
Verify in this order
something happens → event emitted
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Event-Driven Automation → Events · operational reference
| Layer | Event-Driven Automation → Events operational reference |
|---|---|
| Context identity | ansible-rulebook current + exact revision/input/target identity |
| Persistent intent | Versioned contract/configuration with explicit ownership and prerequisites |
| Verification | Validate inputs/read current state → exercise bounded operation → independent target read-back |
| Output contract | Preserve structured status/IDs/properties before human formatting |
| Failure boundary | Separate source/input/engine/controller execution from downstream target outcome |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5332