As Dagster doesn't control scheduling or materializing external assets, it's up to you to keep their metadata updated. Use the endpoints described in this reference to report updates for external assets back to Dagster.
Authentication is required only if requests are being made against a Dagster+ instance. To authenticate, provide a valid Dagster+ user token using the Dagster-Cloud-Api-Token header:
Records an AssetMaterialization event for an external asset. This event type notifies the Dagster framework that a materialized value has been produced for an asset.
Using this endpoint, you could report to Dagster that an external asset has been updated and include metadata about the materialization. For example, the number of updated rows, the time the update occurred, and so on.
The data version of the asset associated with the materialization. May be passed in JSON body or as a query parameter; value is passed to AssetMaterialization via tags.
description
Optional
A human-readable description of the materialized value. May be passed in JSON body or as a query parameter; value is passed to the AssetMaterialization constructor.
partition
Optional
The name of the partition that was materialized. May be passed in JSON body or as a query parameter; value is passed to the AssetMaterialization constructor.
Records an AssetCheckEvaluation event for an external asset. This event type notifies the Dagster framework of the results of an executed check.
Using this endpoint, you could report to Dagster that an asset check has been executed and include metadata about the check. For example, if the check looks for null values in an id column, you could include the number of records with null IDs.
Records an AssetObservation event for an external asset. This event type captures metadata about an asset at a point in time and provides it to the Dagster framework. Refer to the Asset observation documentation for more information.
Parameters can be passed in multiple ways and will be considered in the following order:
URL (asset_key only)
Request body, which must be valid JSON
Query parameter
Name
Required/Optional
Description
asset_key
Required
The key of the observed asset. May be passed as:
URL path - Specified as path components after /report_asset_observation/, where each / delimits parts of a multipart AssetKey.
JSON body - Value is passed to the AssetKey constructor.
Query parameter - Accepts string or JSON encoded array for multipart keys.
metadata
Optional
Arbitrary metadata about the asset, specified as key-value pairs. May be passed as:
JSON body - Value is passed to the AssetObservation constructor.
Query parameter - Accepts a JSON encoded object.
data_version
Optional
The data version of the observed asset. May be passed in JSON body or as a query parameter; value is passed to AssetObservation via tags.
description
Optional
A human-readable description of the asset or observation. May be passed in JSON body or as a query parameter; value is passed to the AssetObservation constructor.
partition
Optional
The name of the partition that was observed. May be passed in JSON body or as a query parameter; value is passed to the AssetObservation constructor.