Skip to main content

runs

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

Overview

Nameruns
TypeResource
Idgoogle.datalineage.runs

Fields

The following fields are returned by SELECT queries:

Successful response

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 _-:&.
endTimestring (google-datetime)Optional. The timestamp of the end of the run.
startTimestring (google-datetime)Required. The timestamp of the start of the run.
statestringRequired. The state of the run.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, processesId, runsIdGets the details of the specified run.
listselectprojectsId, locationsId, processesIdpageSize, pageTokenLists runs in the given project and location. List order is descending by start_time.
createinsertprojectsId, locationsId, processesIdrequestIdCreates a new run.
patchupdateprojectsId, locationsId, processesId, runsIdupdateMask, allowMissingUpdates a run.
deletedeleteprojectsId, locationsId, processesId, runsIdallowMissingDeletes the run with the specified name.

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
locationsIdstring
processesIdstring
projectsIdstring
runsIdstring
allowMissingboolean
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the details of the specified run.

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

INSERT examples

Creates a new run.

INSERT INTO google.datalineage.runs (
data__name,
data__displayName,
data__attributes,
data__startTime,
data__endTime,
data__state,
projectsId,
locationsId,
processesId,
requestId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ attributes }}',
'{{ startTime }}',
'{{ endTime }}',
'{{ state }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ processesId }}',
'{{ requestId }}'
RETURNING
name,
attributes,
displayName,
endTime,
startTime,
state
;

UPDATE examples

Updates a run.

UPDATE google.datalineage.runs
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__attributes = '{{ attributes }}',
data__startTime = '{{ startTime }}',
data__endTime = '{{ endTime }}',
data__state = '{{ state }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND processesId = '{{ processesId }}' --required
AND runsId = '{{ runsId }}' --required
AND updateMask = '{{ updateMask}}'
AND allowMissing = {{ allowMissing}}
RETURNING
name,
attributes,
displayName,
endTime,
startTime,
state;

DELETE examples

Deletes the run with the specified name.

DELETE FROM google.datalineage.runs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND processesId = '{{ processesId }}' --required
AND runsId = '{{ runsId }}' --required
AND allowMissing = '{{ allowMissing }}';