Skip to main content

DataHubIngestionSource

Technical Reference Guide​

The sections above provide an overview of how to use this entity. The following sections provide detailed technical information about how metadata is stored and represented in DataHub.

Aspects are the individual pieces of metadata that can be attached to an entity. Each aspect contains specific information (like ownership, tags, or properties) and is stored as a separate record, allowing for flexible and incremental metadata updates.

Relationships show how this entity connects to other entities in the metadata graph. These connections are derived from the fields within each aspect and form the foundation of DataHub's knowledge graph.

Reading the Field Tables​

Each aspect's field table includes an Annotations column that provides additional metadata about how fields are used:

  • ⚠️ Deprecated: This field is deprecated and may be removed in a future version. Check the description for the recommended alternative
  • Searchable: This field is indexed and can be searched in DataHub's search interface
  • Searchable (fieldname): When the field name in parentheses is shown, it indicates the field is indexed under a different name in the search index. For example, dashboardTool is indexed as tool
  • → RelationshipName: This field creates a relationship to another entity. The arrow indicates this field contains a reference (URN) to another entity, and the name indicates the type of relationship (e.g., → Contains, → OwnedBy)

Fields with complex types (like Edge, AuditStamp) link to their definitions in the Common Types section below.

Aspects​

dataHubIngestionSourceInfo​

Python class: DataHubIngestionSourceInfoClass

Info about a DataHub ingestion source

FieldTypeRequiredDescriptionAnnotations
namestring✓The display name of the ingestion sourceSearchable
typestring✓The type of the source itself, e.g. mysql, bigquery, bigquery-usage. Should match the recipe.Searchable
platformstringData Platform URN associated with the source
scheduleDataHubIngestionSourceScheduleThe schedule on which the ingestion source is executed
configDataHubIngestionSourceConfig✓Parameters associated with the Ingestion Source
sourceDataHubIngestionSourceSourceThe source or origin of the Ingestion Source Currently CLI and UI do not provide an explicit sou...

dataHubIngestionSourceRunSummary​

Python class: DataHubIngestionSourceRunSummaryClass

Derived. The ingestion source's latest run, and the request times of its latest successful and failed runs, so sources can be sorted and filtered by them. Kept up to date from the source's execution requests; each run's history is in dataHubIngestionSourceRunEvent.

Writes are merged with the stored summary when they are committed: the latest run only moves to a newer request (or a new status of the same request), and the last success and failure times only move forward, except that a rolled-back run stops being the last success once the previous successful run is visible in the execution request index.

FieldTypeRequiredDescriptionAnnotations
lastExecutionRequeststring✓The source's most recent execution request.
lastRunRequestedAtMillislong✓Time at which the most recent execution request was created, as epoch at UTC in milliseconds.Searchable
lastRunStatusstring✓Status of the most recent execution request, copied as-is from its result, or PENDING before the ...Searchable
lastSuccessfulExecutionRequeststringThe most recent run whose status is SUCCESS.
lastSuccessfulRunRequestedAtMillislongRequest time of the most recent run whose status is SUCCESS. A run that is later rolled back is r...Searchable
lastFailedRunRequestedAtMillislongRequest time of the most recent failed run: one whose status is FAILURE, TIMEOUT, ABORTED or ROLL...Searchable

ownership​

Python class: OwnershipClass

Ownership information of an entity.

FieldTypeRequiredDescriptionAnnotations
ownersOwner[]✓List of owners of the entity.
ownerTypesmapOwnership type to Owners map, populated via mutation hook.Searchable
lastModifiedAuditStamp✓Audit stamp containing who last modified the record and when. A value of 0 in the time field indi...

dataHubIngestionSourceRunEvent (Timeseries)​

Python class: DataHubIngestionSourceRunEventClass

A change in the status of one of the ingestion source's runs, recorded each time an execution request for the source is created or its result status changes. Each event holds facts about that one run only; the source's latest run, last success and last failure are kept in dataHubIngestionSourceRunSummary.

A rollback changes an old run's status, so it adds events for that run to the history. Events have no retention, as for assertionRunEvent; there are a few per run.

timestampMillis is derived from the run, not from when the status changed: the result's start time plus its duration, its start time when there is no duration, or the request time when there is no result or the result has no start time. That lets the hook and the backfill write the same document for the same event. The events of a rollback take whatever times their result holds, so they can share the original run's timestamp or fall back to the request time; tell a run's events apart by status, not by timestamp order.

FieldTypeRequiredDescriptionAnnotations
timestampMillislong✓The event timestamp field as epoch at UTC in milli seconds.
eventGranularityTimeWindowSizeGranularity of the event if applicable
partitionSpecPartitionSpecThe optional partition specification.
messageIdstringThe optional messageId, if provided serves as a custom user-defined unique identifier for an aspe...
executionRequeststring✓The execution request (run) this event reports on. Requests are cleaned up after a retention peri...
requestedAtMillislong✓Time at which the execution request was created, as epoch at UTC in milliseconds.
statusstring✓Status of the run as reported by the executor, e.g. RUNNING, SUCCESS, FAILURE, TIMEOUT or ROLLED_...
sourceTypestringThe ingestion source's type when the event was recorded, e.g. mysql or bigquery, so the run histo...
executorIdstringThe executor the run was requested on.

Common Types​

These types are used across multiple aspects in this entity.

AuditStamp​

Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage.

Fields:

  • time (long): When did the resource/association/sub-resource move into the specific lifecyc...
  • actor (string): The entity (e.g. a member URN) which will be credited for moving the resource...
  • impersonator (string?): The entity (e.g. a service URN) which performs the change on behalf of the Ac...
  • message (string?): Additional context around how DataHub was informed of the particular change. ...

Relationships​

Outgoing​

These are the relationships stored in this entity's aspects

  • OwnedBy

    • Corpuser via ownership.owners.owner
    • CorpGroup via ownership.owners.owner
  • ownershipType

    • OwnershipType via ownership.owners.typeUrn

Global Metadata Model​

Global Graph

💡 Contributing to this documentation

This page is auto-generated from the underlying source code. To make changes, please edit the relevant source files in the metadata-models directory.

Tip: For quick typo fixes or documentation updates, you can click the ✏️ Edit icon directly in the GitHub UI to open a Pull Request. For larger changes and PR naming conventions, please refer to our Contributing Guide.