Pcornel
Automation · Event-Driven Automation

Events

Cheat sheet · https://pcornel.dk/topic.php?topic=5332

Back to the Topic

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

LayerEvent-Driven Automation → Events operational reference
Context identityansible-rulebook current + exact revision/input/target identity
Persistent intentVersioned contract/configuration with explicit ownership and prerequisites
VerificationValidate inputs/read current state → exercise bounded operation → independent target read-back
Output contractPreserve structured status/IDs/properties before human formatting
Failure boundarySeparate 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

Confirmation

Confirm action

Continue?