Skip to main content

datasets

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

Overview

Namedatasets
TypeResource
Idgoogle.observability.datasets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the dataset. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]
createTimestring (google-datetime)Output only. Create timestamp.
deleteTimestring (google-datetime)Output only. Delete timestamp.
descriptionstringOptional. Description of the dataset.
displayNamestringOptional. User friendly display name.
purgeTimestring (google-datetime)Output only. Timestamp when the dataset in soft-deleted state is purged.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, bucketsId, datasetsIdGet a dataset.
listselectprojectsId, locationsId, bucketsIdpageSize, pageToken, showDeletedList datasets of a bucket.

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
bucketsIdstring
datasetsIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
showDeletedboolean

SELECT examples

Get a dataset.

SELECT
name,
createTime,
deleteTime,
description,
displayName,
purgeTime
FROM google.observability.datasets
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bucketsId = '{{ bucketsId }}' -- required
AND datasetsId = '{{ datasetsId }}' -- required
;