Skip to main content

investigations

Creates, updates, deletes, gets or lists an investigations resource.

Overview

Nameinvestigations
TypeResource
Idgoogle.geminicloudassist.investigations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. name of resource
annotationsobjectOptional. Annotations on the investigation. Unlike labels, these may carry semantic meaning in running the investigation, and will not be read by other systems such as billing. (id: InvestigationAnnotations)
clarificationsNeededobjectOptional. Questions that the system needs to ask the user. The results will be passed back by the UI as new Observations. The ID for those observations will be the key of the entry in the clarifications_needed map.
createTimestring (google-datetime)Output only. [Output only] Create time stamp
dataVersioninteger (int32)Optional. The data model version of this Investigation. Should be either 1 or 2. Treat 0 as 1. If 1, use V1 Investigation data model. If 2, use the Investigation Observation data model.
errorobjectOutput only. [Output only] If the investigation execution state is FAILED, this field will contain the error message. (id: Status)
executionStatestringOutput only. [Output only] The execution state of this investigation.
labelsobjectOptional. Labels as key value pairs
observationsobjectOptional. A map from observation ID to the observation. This is a map so that we can cleanly overwrite old observations with the version from the latest revision. See Observation for guidance on choosing IDs.
observerStatusesobjectOptional. Plural version of above. Code will transition to this over time.
operationstringOutput only. The Run operation most recently performed on the investigation.
revisionstringOutput only. [Output only] Current revision of the investigation
revisionIndexinteger (int32)Output only. [Output only] Index of the current revision of the investigation. 1-based.
revisionPredecessorstringOptional. The name of the revision that was this revision's predecessor. The UI, for example, will set this to the existing revision when when a new revision is created due to an edit.
titlestringRequired. Human-readable display title for the investigation.
updateTimestring (google-datetime)Output only. [Output only] Update time stamp

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, investigationsIdGets details of a single Investigation.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists Investigations in a given project and location.
createinsertprojectsId, locationsIdinvestigationId, requestIdCreates a new Investigation in a given project and location.
patchupdateprojectsId, locationsId, investigationsIdupdateMask, requestIdUpdates the parameters of a single Investigation.
deletedeleteprojectsId, locationsId, investigationsIdrequestIdDeletes a single Investigation.

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
investigationsIdstring
locationsIdstring
projectsIdstring
filterstring
investigationIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single Investigation.

SELECT
name,
annotations,
clarificationsNeeded,
createTime,
dataVersion,
error,
executionState,
labels,
observations,
observerStatuses,
operation,
revision,
revisionIndex,
revisionPredecessor,
title,
updateTime
FROM google.geminicloudassist.investigations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND investigationsId = '{{ investigationsId }}' -- required;

INSERT examples

Creates a new Investigation in a given project and location.

INSERT INTO google.geminicloudassist.investigations (
data__name,
data__labels,
data__revisionPredecessor,
data__annotations,
data__title,
data__observations,
data__observerStatuses,
data__dataVersion,
data__clarificationsNeeded,
projectsId,
locationsId,
investigationId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ revisionPredecessor }}',
'{{ annotations }}',
'{{ title }}',
'{{ observations }}',
'{{ observerStatuses }}',
{{ dataVersion }},
'{{ clarificationsNeeded }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ investigationId }}',
'{{ requestId }}'
RETURNING
name,
annotations,
clarificationsNeeded,
createTime,
dataVersion,
error,
executionState,
labels,
observations,
observerStatuses,
operation,
revision,
revisionIndex,
revisionPredecessor,
title,
updateTime
;

UPDATE examples

Updates the parameters of a single Investigation.

UPDATE google.geminicloudassist.investigations
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__revisionPredecessor = '{{ revisionPredecessor }}',
data__annotations = '{{ annotations }}',
data__title = '{{ title }}',
data__observations = '{{ observations }}',
data__observerStatuses = '{{ observerStatuses }}',
data__dataVersion = {{ dataVersion }},
data__clarificationsNeeded = '{{ clarificationsNeeded }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND investigationsId = '{{ investigationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
annotations,
clarificationsNeeded,
createTime,
dataVersion,
error,
executionState,
labels,
observations,
observerStatuses,
operation,
revision,
revisionIndex,
revisionPredecessor,
title,
updateTime;

DELETE examples

Deletes a single Investigation.

DELETE FROM google.geminicloudassist.investigations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND investigationsId = '{{ investigationsId }}' --required
AND requestId = '{{ requestId }}';