Skip to main content

time_series

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

Overview

Nametime_series
TypeResource
Idgoogle.aiplatform.time_series

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Name of the TensorboardTimeSeries.
createTimestring (google-datetime)Output only. Timestamp when this TensorboardTimeSeries was created.
descriptionstringDescription of this TensorboardTimeSeries.
displayNamestringRequired. User provided name of this TensorboardTimeSeries. This value should be unique among all TensorboardTimeSeries resources belonging to the same TensorboardRun resource (parent resource).
etagstringUsed to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
metadataobjectOutput only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries. (id: GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata)
pluginDatastring (byte)Data of the current plugin, with the size limited to 65KB.
pluginNamestringImmutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor, Blob
updateTimestring (google-datetime)Output only. Timestamp when this TensorboardTimeSeries was last updated.
valueTypestringRequired. Immutable. Type of TensorboardTimeSeries value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, tensorboardsId, experimentsId, runsId, timeSeriesIdGets a TensorboardTimeSeries.
listselectprojectsId, locationsId, tensorboardsId, experimentsId, runsIdfilter, pageSize, pageToken, orderBy, readMaskLists TensorboardTimeSeries in a Location.
createinsertprojectsId, locationsId, tensorboardsId, experimentsId, runsIdtensorboardTimeSeriesIdCreates a TensorboardTimeSeries.
patchupdateprojectsId, locationsId, tensorboardsId, experimentsId, runsId, timeSeriesIdupdateMaskUpdates a TensorboardTimeSeries.
deletedeleteprojectsId, locationsId, tensorboardsId, experimentsId, runsId, timeSeriesIdDeletes a TensorboardTimeSeries.
readexecprojectsId, locationsId, tensorboardsId, experimentsId, runsId, timeSeriesIdmaxDataPoints, filterReads a TensorboardTimeSeries' data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can't be greater than 10k.
read_blob_dataexecprojectsId, locationsId, tensorboardsId, experimentsId, runsId, timeSeriesIdblobIdsGets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer project's Cloud Storage bucket without users having to obtain Cloud Storage access permission.
export_tensorboard_time_seriesexecprojectsId, locationsId, tensorboardsId, experimentsId, runsId, timeSeriesIdExports a TensorboardTimeSeries' data. Data is returned in paginated responses.

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
experimentsIdstring
locationsIdstring
projectsIdstring
runsIdstring
tensorboardsIdstring
timeSeriesIdstring
blobIdsstring
filterstring
maxDataPointsinteger (int32)
orderBystring
pageSizeinteger (int32)
pageTokenstring
readMaskstring (google-fieldmask)
tensorboardTimeSeriesIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a TensorboardTimeSeries.

SELECT
name,
createTime,
description,
displayName,
etag,
metadata,
pluginData,
pluginName,
updateTime,
valueType
FROM google.aiplatform.time_series
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND tensorboardsId = '{{ tensorboardsId }}' -- required
AND experimentsId = '{{ experimentsId }}' -- required
AND runsId = '{{ runsId }}' -- required
AND timeSeriesId = '{{ timeSeriesId }}' -- required;

INSERT examples

Creates a TensorboardTimeSeries.

INSERT INTO google.aiplatform.time_series (
data__displayName,
data__description,
data__valueType,
data__etag,
data__pluginName,
data__pluginData,
projectsId,
locationsId,
tensorboardsId,
experimentsId,
runsId,
tensorboardTimeSeriesId
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ valueType }}',
'{{ etag }}',
'{{ pluginName }}',
'{{ pluginData }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ tensorboardsId }}',
'{{ experimentsId }}',
'{{ runsId }}',
'{{ tensorboardTimeSeriesId }}'
RETURNING
name,
createTime,
description,
displayName,
etag,
metadata,
pluginData,
pluginName,
updateTime,
valueType
;

UPDATE examples

Updates a TensorboardTimeSeries.

UPDATE google.aiplatform.time_series
SET
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__valueType = '{{ valueType }}',
data__etag = '{{ etag }}',
data__pluginName = '{{ pluginName }}',
data__pluginData = '{{ pluginData }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND tensorboardsId = '{{ tensorboardsId }}' --required
AND experimentsId = '{{ experimentsId }}' --required
AND runsId = '{{ runsId }}' --required
AND timeSeriesId = '{{ timeSeriesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
description,
displayName,
etag,
metadata,
pluginData,
pluginName,
updateTime,
valueType;

DELETE examples

Deletes a TensorboardTimeSeries.

DELETE FROM google.aiplatform.time_series
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND tensorboardsId = '{{ tensorboardsId }}' --required
AND experimentsId = '{{ experimentsId }}' --required
AND runsId = '{{ runsId }}' --required
AND timeSeriesId = '{{ timeSeriesId }}' --required;

Lifecycle Methods

Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can't be greater than 10k.

EXEC google.aiplatform.time_series.read 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@tensorboardsId='{{ tensorboardsId }}' --required,
@experimentsId='{{ experimentsId }}' --required,
@runsId='{{ runsId }}' --required,
@timeSeriesId='{{ timeSeriesId }}' --required,
@maxDataPoints='{{ maxDataPoints }}',
@filter='{{ filter }}';