Skip to main content

pipeline_events

Creates, updates, deletes, gets or lists a pipeline_events resource.

Overview

Namepipeline_events
TypeResource
Iddatabricks_workspace.pipelines.pipeline_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringA time-based, globally unique id.
errorobject
event_typestringThe event type. Should always correspond to the details
levelstringThe severity level of the event. (ERROR, INFO, METRICS, WARN)
maturity_levelstringMaturity level for event_type. (DEPRECATED, EVOLVING, STABLE)
messagestringThe display message associated with the event.
originobjectDescribes where the event originates from.
sequenceobjectA sequencing object to identify and order events.
timestampstringThe time of the event.
truncationobjectInformation about which fields were truncated from this event due to size constraints. If empty or absent, no truncation occurred. See https://docs.databricks.com/en/ldp/monitor-event-logs for information on retrieving complete event data.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectpipeline_id, deployment_namefilter, max_results, order_by, page_tokenRetrieves events for a pipeline.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
pipeline_idstringThe pipeline to return events for.
filterstringCriteria to select a subset of results, expressed using a SQL-like syntax. The supported filters are: 1. level='INFO' (or WARN or ERROR) 2. level in ('INFO', 'WARN') 3. id='[event-id]' 4. timestamp > 'TIMESTAMP' (or >=,<,<=,=) Composite expressions are supported, for example: level in ('ERROR', 'WARN') AND timestamp> '2021-07-22T06:37:33.083Z'
max_resultsintegerMax number of entries to return in a single page. The system may return fewer than max_results events in a response, even if there are more events available.
order_byarrayA string indicating a sort order by timestamp for the results, for example, ["timestamp asc"]. The sort order can be ascending or descending. By default, events are returned in descending order by timestamp.
page_tokenstringPage token returned by previous call. This field is mutually exclusive with all fields in this request except max_results. An error is returned if any fields other than max_results are set when this field is set.

SELECT examples

Retrieves events for a pipeline.

SELECT
id,
error,
event_type,
level,
maturity_level,
message,
origin,
sequence,
timestamp,
truncation
FROM databricks_workspace.pipelines.pipeline_events
WHERE pipeline_id = '{{ pipeline_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND filter = '{{ filter }}'
AND max_results = '{{ max_results }}'
AND order_by = '{{ order_by }}'
AND page_token = '{{ page_token }}'
;