Skip to main content

links

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

Overview

Namelinks
TypeResource
Idgoogle.observability.links

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the link. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]
createTimestring (google-datetime)Output only. Create timestamp.
descriptionstringOptional. Description of the link.
displayNamestringOptional. A user friendly display name.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, bucketsId, datasetsId, linksIdGet a link.
listselectprojectsId, locationsId, bucketsId, datasetsIdpageSize, pageTokenList links of a dataset.
createinsertprojectsId, locationsId, bucketsId, datasetsIdlinkIdCreate a new link.
patchupdateprojectsId, locationsId, bucketsId, datasetsId, linksIdupdateMaskUpdate a link.
deletedeleteprojectsId, locationsId, bucketsId, datasetsId, linksIdDelete a link.

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
linksIdstring
locationsIdstring
projectsIdstring
linkIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Get a link.

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

INSERT examples

Create a new link.

INSERT INTO google.observability.links (
data__name,
data__displayName,
data__description,
projectsId,
locationsId,
bucketsId,
datasetsId,
linkId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ bucketsId }}',
'{{ datasetsId }}',
'{{ linkId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Update a link.

UPDATE google.observability.links
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND bucketsId = '{{ bucketsId }}' --required
AND datasetsId = '{{ datasetsId }}' --required
AND linksId = '{{ linksId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Delete a link.

DELETE FROM google.observability.links
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND bucketsId = '{{ bucketsId }}' --required
AND datasetsId = '{{ datasetsId }}' --required
AND linksId = '{{ linksId }}' --required
;