Skip to main content
This section catalogs every event that Prefect emits, organized by the resource type they concern. For a conceptual overview of events, resources, and related resources, see Events.

Event model

Every event follows this schema:

Resources

Every event has a primary resource represented as a set of string key-value labels. Every resource must include prefect.resource.id, a dot-delimited quasi-stable identifier like prefect.flow-run.e3755d32-cec5-42ca-9bcd-af236e308ba6. Resources may also carry prefect.resource.name and any number of additional labels. Events may include related resources that provide context about other objects involved. Each related resource carries all the same labels as a resource, plus a required prefect.resource.role label describing its relationship to the event (for example, flow, deployment, work-pool, or tag).

Namespace conventions

Prefect uses dot-delimited event names with reserved prefixes for system-emitted events: The prefect.* and prefect-cloud.* namespaces are reserved for events emitted by Prefect itself. Your own events can use any other namespace you like. For example, acme.data-pipeline.completed or myteam.model.trained are perfectly valid event names. See custom event grammar for more on emitting your own events.

Quick reference

Orchestration events

Execution events

Data events

Concurrency events

Automation events

Infrastructure events

Prefect Cloud events

Integration events

Using events with automations

Events are the foundation of automations. You can configure event triggers to match any event in this reference by its name, resource labels, or related resources. See how to create automations to get started.