Events when asset is created
When an asset is created in Atlan, the following events can be emitted.
ENTITY_CREATE
Atlan always emits an ENTITY_CREATE event when an asset is created. The details in the event are for the asset that was created.
ENTITY_UPDATE
When a relationship is defined as part of asset creation, Atlan will also emit an ENTITY_UPDATE event. The details in this event cover the related asset.
Parent-child relationships
For example, a column in Atlan must exist within a table.
- When a column is created, the table must be specified.
- An
ENTITY_UPDATEevent will be emitted for the table in which that column was created.
detail.message.mutatedDetailsIn the case of a parent-child relationship, the details of the relationship aren't included in the ENTITY_UPDATE event's payload.
Peer-to-peer relationships
For example, specifying a term to link to a column when creating the column.
- An
ENTITY_UPDATEevent will be emitted for the term that's specified.
Note: this means a single asset creation (single ENTITY_CREATE event) could emit any number of ENTITY_UPDATE events.