runs
Creates, updates, deletes, gets or lists a runs
resource.
Overview
Name | runs |
Type | Resource |
Id | google.aiplatform.runs |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. Name of the TensorboardRun. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run} |
createTime | string (google-datetime) | Output only. Timestamp when this TensorboardRun was created. |
description | string | Description of this TensorboardRun. |
displayName | string | Required. User provided name of this TensorboardRun. This value must be unique among all TensorboardRuns belonging to the same parent TensorboardExperiment. |
etag | string | Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | The labels with user-defined metadata to organize your TensorboardRuns. This field will be used to filter and visualize Runs in the Tensorboard UI. For example, a Vertex AI training job can set a label aiplatform.googleapis.com/training_job_id=xxxxx to all the runs created within that job. An end user can set a label experiment_id=xxxxx for all the runs produced in a Jupyter notebook. These runs can be grouped by a label value and visualized together in the Tensorboard UI. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one TensorboardRun (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. |
updateTime | string (google-datetime) | Output only. Timestamp when this TensorboardRun was last updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. Name of the TensorboardRun. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run} |
createTime | string (google-datetime) | Output only. Timestamp when this TensorboardRun was created. |
description | string | Description of this TensorboardRun. |
displayName | string | Required. User provided name of this TensorboardRun. This value must be unique among all TensorboardRuns belonging to the same parent TensorboardExperiment. |
etag | string | Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | The labels with user-defined metadata to organize your TensorboardRuns. This field will be used to filter and visualize Runs in the Tensorboard UI. For example, a Vertex AI training job can set a label aiplatform.googleapis.com/training_job_id=xxxxx to all the runs created within that job. An end user can set a label experiment_id=xxxxx for all the runs produced in a Jupyter notebook. These runs can be grouped by a label value and visualized together in the Tensorboard UI. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one TensorboardRun (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. |
updateTime | string (google-datetime) | Output only. Timestamp when this TensorboardRun was last updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , tensorboardsId , experimentsId , runsId | Gets a TensorboardRun. | |
list | select | projectsId , locationsId , tensorboardsId , experimentsId | filter , pageSize , pageToken , orderBy , readMask | Lists TensorboardRuns in a Location. |
create | insert | projectsId , locationsId , tensorboardsId , experimentsId | tensorboardRunId | Creates a TensorboardRun. |
batch_create | insert | projectsId , locationsId , tensorboardsId , experimentsId | Batch create TensorboardRuns. | |
patch | update | projectsId , locationsId , tensorboardsId , experimentsId , runsId | updateMask | Updates a TensorboardRun. |
delete | delete | projectsId , locationsId , tensorboardsId , experimentsId , runsId | Deletes a TensorboardRun. | |
write | exec | projectsId , locationsId , tensorboardsId , experimentsId , runsId | Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned. |
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.
Name | Datatype | Description |
---|---|---|
experimentsId | string | |
locationsId | string | |
projectsId | string | |
runsId | string | |
tensorboardsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
readMask | string (google-fieldmask) | |
tensorboardRunId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets a TensorboardRun.
SELECT
name,
createTime,
description,
displayName,
etag,
labels,
updateTime
FROM google.aiplatform.runs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND tensorboardsId = '{{ tensorboardsId }}' -- required
AND experimentsId = '{{ experimentsId }}' -- required
AND runsId = '{{ runsId }}' -- required;
Lists TensorboardRuns in a Location.
SELECT
name,
createTime,
description,
displayName,
etag,
labels,
updateTime
FROM google.aiplatform.runs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND tensorboardsId = '{{ tensorboardsId }}' -- required
AND experimentsId = '{{ experimentsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND orderBy = '{{ orderBy }}'
AND readMask = '{{ readMask }}';
INSERT
examples
- create
- batch_create
- Manifest
Creates a TensorboardRun.
INSERT INTO google.aiplatform.runs (
data__displayName,
data__description,
data__labels,
data__etag,
projectsId,
locationsId,
tensorboardsId,
experimentsId,
tensorboardRunId
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ labels }}',
'{{ etag }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ tensorboardsId }}',
'{{ experimentsId }}',
'{{ tensorboardRunId }}'
RETURNING
name,
createTime,
description,
displayName,
etag,
labels,
updateTime
;
Batch create TensorboardRuns.
INSERT INTO google.aiplatform.runs (
data__requests,
projectsId,
locationsId,
tensorboardsId,
experimentsId
)
SELECT
'{{ requests }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ tensorboardsId }}',
'{{ experimentsId }}'
RETURNING
tensorboardRuns
;
# Description fields are for documentation purposes
- name: runs
props:
- name: projectsId
value: string
description: Required parameter for the runs resource.
- name: locationsId
value: string
description: Required parameter for the runs resource.
- name: tensorboardsId
value: string
description: Required parameter for the runs resource.
- name: experimentsId
value: string
description: Required parameter for the runs resource.
- name: displayName
value: string
description: >
Required. User provided name of this TensorboardRun. This value must be unique among all TensorboardRuns belonging to the same parent TensorboardExperiment.
- name: description
value: string
description: >
Description of this TensorboardRun.
- name: labels
value: object
description: >
The labels with user-defined metadata to organize your TensorboardRuns. This field will be used to filter and visualize Runs in the Tensorboard UI. For example, a Vertex AI training job can set a label aiplatform.googleapis.com/training_job_id=xxxxx to all the runs created within that job. An end user can set a label experiment_id=xxxxx for all the runs produced in a Jupyter notebook. These runs can be grouped by a label value and visualized together in the Tensorboard UI. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one TensorboardRun (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
- name: etag
value: string
description: >
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
- name: requests
value: array
description: >
Required. The request message specifying the TensorboardRuns to create. A maximum of 1000 TensorboardRuns can be created in a batch.
- name: tensorboardRunId
value: string
UPDATE
examples
- patch
Updates a TensorboardRun.
UPDATE google.aiplatform.runs
SET
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__etag = '{{ etag }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND tensorboardsId = '{{ tensorboardsId }}' --required
AND experimentsId = '{{ experimentsId }}' --required
AND runsId = '{{ runsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
description,
displayName,
etag,
labels,
updateTime;
DELETE
examples
- delete
Deletes a TensorboardRun.
DELETE FROM google.aiplatform.runs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND tensorboardsId = '{{ tensorboardsId }}' --required
AND experimentsId = '{{ experimentsId }}' --required
AND runsId = '{{ runsId }}' --required;
Lifecycle Methods
- write
Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned.
EXEC google.aiplatform.runs.write
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@tensorboardsId='{{ tensorboardsId }}' --required,
@experimentsId='{{ experimentsId }}' --required,
@runsId='{{ runsId }}' --required
@@json=
'{
"tensorboardRun": "{{ tensorboardRun }}",
"timeSeriesData": "{{ timeSeriesData }}"
}';