views
Creates, updates, deletes, gets or lists a views resource.
Overview
| Name | views |
| Type | Resource |
| Id | google.observability.views |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Name of the view. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID] |
createTime | string (google-datetime) | Output only. Create timestamp. |
description | string | Optional. Description of the view. |
displayName | string | Optional. User friendly display name. |
updateTime | string (google-datetime) | Output only. Update timestamp. |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Name of the view. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID] |
createTime | string (google-datetime) | Output only. Create timestamp. |
description | string | Optional. Description of the view. |
displayName | string | Optional. User friendly display name. |
updateTime | string (google-datetime) | Output only. Update timestamp. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, bucketsId, datasetsId, viewsId | Get a view. | |
list | select | projectsId, locationsId, bucketsId, datasetsId | pageSize, pageToken | List 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.
| Name | Datatype | Description |
|---|---|---|
bucketsId | string | |
datasetsId | string | |
locationsId | string | |
projectsId | string | |
viewsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
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
;
List views of a dataset.
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 pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;