Skip to main content

runs

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

Overview

Nameruns
TypeResource
Idgoogle.datalineage.runs

Fields

NameDatatypeDescription
namestringImmutable. The resource name of the run. Format: projects/{project}/locations/{location}/processes/{process}/runs/{run}. Can be specified or auto-assigned. {run} must be not longer than 200 characters and only contain characters in a set: a-zA-Z0-9_-:.
attributesobjectOptional. The attributes of the run. Should only be used for the purpose of non-semantic management (classifying, describing or labeling the run). Up to 100 attributes are allowed.
displayNamestringOptional. A human-readable name you can set to display in a user interface. Must be not longer than 1024 characters and only contain UTF-8 letters or numbers, spaces or characters like _-:&.
endTimestringOptional. The timestamp of the end of the run.
startTimestringRequired. The timestamp of the start of the run.
statestringRequired. The state of the run.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, processesId, projectsId, runsIdGets the details of the specified run.
listSELECTlocationsId, processesId, projectsIdLists runs in the given project and location. List order is descending by start_time.
createINSERTlocationsId, processesId, projectsIdCreates a new run.
deleteDELETElocationsId, processesId, projectsId, runsIdDeletes the run with the specified name.
patchUPDATElocationsId, processesId, projectsId, runsIdUpdates a run.

SELECT examples

Lists runs in the given project and location. List order is descending by start_time.

SELECT
name,
attributes,
displayName,
endTime,
startTime,
state
FROM google.datalineage.runs
WHERE locationsId = '{{ locationsId }}'
AND processesId = '{{ processesId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new runs resource.

/*+ create */
INSERT INTO google.datalineage.runs (
locationsId,
processesId,
projectsId,
displayName,
startTime,
name,
attributes,
state,
endTime
)
SELECT
'{{ locationsId }}',
'{{ processesId }}',
'{{ projectsId }}',
'{{ displayName }}',
'{{ startTime }}',
'{{ name }}',
'{{ attributes }}',
'{{ state }}',
'{{ endTime }}'
;

UPDATE example

Updates a runs resource.

/*+ update */
UPDATE google.datalineage.runs
SET
displayName = '{{ displayName }}',
startTime = '{{ startTime }}',
name = '{{ name }}',
attributes = '{{ attributes }}',
state = '{{ state }}',
endTime = '{{ endTime }}'
WHERE
locationsId = '{{ locationsId }}'
AND processesId = '{{ processesId }}'
AND projectsId = '{{ projectsId }}'
AND runsId = '{{ runsId }}';

DELETE example

Deletes the specified runs resource.

/*+ delete */
DELETE FROM google.datalineage.runs
WHERE locationsId = '{{ locationsId }}'
AND processesId = '{{ processesId }}'
AND projectsId = '{{ projectsId }}'
AND runsId = '{{ runsId }}';