docs/v3/api-ref/events/artifact-asset-events.mdx
Artifact events track individual artifact creation and updates. Artifact collection events track the lifecycle of keyed artifact collections. Asset events track data lineage through upstream references and downstream materializations.
An artifact collection groups all artifacts that share the same key. Collection lifecycle events are emitted when that collection is created, updated (the latest artifact changes), or deleted (all artifacts for the key are removed).
prefect.artifact-collection.createdEmitted when a keyed artifact collection is first created (that is, when the first artifact with a given key is written).
| Label | Description |
|---|---|
prefect.resource.id | prefect.artifact-collection.{uuid} |
prefect.resource.name | Artifact key |
| Resource ID pattern | Role | When present |
|---|---|---|
prefect.artifact.{uuid} | latest | The artifact that is currently the latest version in this collection |
prefect.flow-run.{uuid} | flow-run | When the artifact was created by a flow run |
prefect.task-run.{uuid} | task-run | When the artifact was created by a task run |
| Field | Type | Description |
|---|---|---|
key | string | Artifact key |
type | string or null | Artifact type (for example, markdown, table, progress, image) |
data | any or null | Artifact data |
description | string or null | Artifact description |
prefect.artifact-collection.updatedEmitted when the latest artifact in a collection changes (for example, a new artifact with the same key is written).
Same as prefect.artifact-collection.created.
Same as prefect.artifact-collection.created, reflecting the new latest artifact.
Same as prefect.artifact-collection.created.
prefect.artifact-collection.deletedEmitted when all artifacts for a key are removed and the collection is deleted.
Same as prefect.artifact-collection.created.
Same as prefect.artifact-collection.created.
Same as prefect.artifact-collection.created.
prefect.artifact.createdEmitted when a new artifact is created.
| Label | Description |
|---|---|
prefect.resource.id | prefect.artifact.{uuid} |
prefect.resource.name | Artifact key (when set) |
This event has no related resources.
| Field | Type | Description |
|---|---|---|
key | string or null | Artifact key |
type | string or null | Artifact type (for example, markdown, table, progress, image) |
description | string or null | Artifact description |
prefect.artifact.updatedEmitted when an existing artifact is updated.
| Label | Description |
|---|---|
prefect.resource.id | prefect.artifact.{uuid} |
This event has no related resources.
The payload contains the fields that were updated, serialized from the update
model. Common fields include data, description, and type.
For more on assets and data lineage, see Assets.
prefect.asset.referencedEmitted for each upstream asset referenced during a task execution. One event is emitted per upstream asset.
| Label | Description |
|---|---|
prefect.resource.id | Asset key (the unique identifier for the asset, for example s3://bucket/path) |
prefect.resource.name | Asset name (when set via asset properties) |
prefect.asset.description | Asset description (when set) |
prefect.asset.url | Asset URL (when set) |
prefect.asset.owners | JSON-encoded list of asset owners (when set) |
This event has no related resources.
This event has no payload.
prefect.asset.materialization.succeededEmitted when a downstream asset is successfully materialized (the task that produces it completes).
Same labels as prefect.asset.referenced.
| Resource ID pattern | Role | When present |
|---|---|---|
| Asset key | asset | One entry per upstream asset (both direct and inherited) |
| Materialized-by identifier | asset-materialized-by | When a materialized_by identifier was specified |
User-provided materialization metadata, if any was supplied via the asset's
materialization_metadata parameter. This is an open-ended dictionary.
prefect.asset.materialization.failedEmitted when a downstream asset fails to materialize (the task that produces it
fails). Same structure as
prefect.asset.materialization.succeeded.
Same labels as prefect.asset.referenced.
Same as prefect.asset.materialization.succeeded.