Skip to main content

views

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

Overview

Nameviews
TypeResource
Idgoogle.observability.views

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the view. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID]
createTimestring (google-datetime)Output only. Create timestamp.
descriptionstringOptional. Description of the view.
displayNamestringOptional. User friendly display name.
updateTimestring (google-datetime)Output only. Update timestamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, bucketsId, datasetsId, viewsIdGet a view.
listselectprojectsId, locationsId, bucketsId, datasetsIdpageSize, pageTokenList views of a dataset.

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
viewsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get a view.

SELECT
name,
createTime,
description,
displayName,
updateTime
FROM google.observability.views
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bucketsId = '{{ bucketsId }}' -- required
AND datasetsId = '{{ datasetsId }}' -- required
AND viewsId = '{{ viewsId }}' -- required
;