Skip to main content

tensorboards

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

Overview

Nametensorboards
TypeResource
Idgoogle.aiplatform.tensorboards

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Name of the Tensorboard. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}
blobStoragePathPrefixstringOutput only. Consumer project Cloud Storage path prefix used to store blob data, which can either be a bucket or directory. Does not end with a '/'.
createTimestring (google-datetime)Output only. Timestamp when this Tensorboard was created.
descriptionstringDescription of this Tensorboard.
displayNamestringRequired. User provided name of this Tensorboard.
encryptionSpecobjectCustomer-managed encryption key spec for a Tensorboard. If set, this Tensorboard and all sub-resources of this Tensorboard will be secured by this key. (id: GoogleCloudAiplatformV1EncryptionSpec)
etagstringUsed to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
isDefaultbooleanUsed to indicate if the TensorBoard instance is the default one. Each project & region can have at most one default TensorBoard instance. Creation of a default TensorBoard instance and updating an existing TensorBoard instance to be default will mark all other TensorBoard instances (if any) as non default.
labelsobjectThe labels with user-defined metadata to organize your Tensorboards. 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 Tensorboard (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.
runCountinteger (int32)Output only. The number of Runs stored in this Tensorboard.
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
updateTimestring (google-datetime)Output only. Timestamp when this Tensorboard was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, tensorboardsIdGets a Tensorboard.
listselectprojectsId, locationsIdfilter, pageSize, pageToken, orderBy, readMaskLists Tensorboards in a Location.
createinsertprojectsId, locationsIdCreates a Tensorboard.
patchupdateprojectsId, locationsId, tensorboardsIdupdateMaskUpdates a Tensorboard.
deletedeleteprojectsId, locationsId, tensorboardsIdDeletes a Tensorboard.
read_usageexecprojectsId, locationsId, tensorboardsIdReturns a list of monthly active users for a given TensorBoard instance.
read_sizeexecprojectsId, locationsId, tensorboardsIdReturns the storage size for a given TensorBoard instance.
batch_readexecprojectsId, locationsId, tensorboardsIdtimeSeriesReads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and 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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
tensorboardsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
readMaskstring (google-fieldmask)
timeSeriesstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a Tensorboard.

SELECT
name,
blobStoragePathPrefix,
createTime,
description,
displayName,
encryptionSpec,
etag,
isDefault,
labels,
runCount,
satisfiesPzi,
satisfiesPzs,
updateTime
FROM google.aiplatform.tensorboards
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND tensorboardsId = '{{ tensorboardsId }}' -- required;

INSERT examples

Creates a Tensorboard.

INSERT INTO google.aiplatform.tensorboards (
data__displayName,
data__description,
data__encryptionSpec,
data__labels,
data__etag,
data__isDefault,
projectsId,
locationsId
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ encryptionSpec }}',
'{{ labels }}',
'{{ etag }}',
{{ isDefault }},
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a Tensorboard.

UPDATE google.aiplatform.tensorboards
SET
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__encryptionSpec = '{{ encryptionSpec }}',
data__labels = '{{ labels }}',
data__etag = '{{ etag }}',
data__isDefault = {{ isDefault }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND tensorboardsId = '{{ tensorboardsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a Tensorboard.

DELETE FROM google.aiplatform.tensorboards
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND tensorboardsId = '{{ tensorboardsId }}' --required;

Lifecycle Methods

Returns a list of monthly active users for a given TensorBoard instance.

EXEC google.aiplatform.tensorboards.read_usage 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@tensorboardsId='{{ tensorboardsId }}' --required;