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:

NameDatatypeDescription
namestringIdentifier. Name of the investigation, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}
annotationsobjectOptional. Additional annotations on the investigation. (id: InvestigationAnnotations)
createTimestring (google-datetime)Output only. The time when the investigation was created.
errorobjectOutput only. The error if the investigation run failed. This field will only be set if execution_state is INVESTIGATION_EXECUTION_STATE_FAILED. (id: Status)
executionStatestringOutput only. The execution state of the investigation. (INVESTIGATION_EXECUTION_STATE_UNSPECIFIED, INVESTIGATION_EXECUTION_STATE_RUNNING, INVESTIGATION_EXECUTION_STATE_MODIFIED, INVESTIGATION_EXECUTION_STATE_FAILED, INVESTIGATION_EXECUTION_STATE_CANCELLED, INVESTIGATION_EXECUTION_STATE_COMPLETED)
labelsobjectOptional. User-defined labels for the investigation.
observationsobjectOptional. Observations about the project state that comprise the contents of the investigation.
observerStatusesobjectOptional. Statuses of observers which have been invoked in order to run the investigation.
operationstringOutput only. The resource name of the Run operation most recently performed on the investigation, of the form: projects/{project_number}/locations/{location_id}/operations/{operation_id}
revisionstringOutput only. Resource name of the investigation's current revision, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}/revisions/{revision_id}
revisionIndexinteger (int32)Output only. Index of the current revision of the investigation.
revisionPredecessorstringOptional. The name of the revision that was this revision's predecessor.
titlestringOptional. Human-readable display title for the investigation.
updateTimestring (google-datetime)Output only. The time when the investigation was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, investigationsIdGets details of a single Investigation.
listselectprojectsId, locationsIdfilter, orderBy, pageSize, pageTokenLists Investigations in a given project and location.
createinsertprojectsId, locationsIdinvestigationId, requestId, validateOnlyDeprecated: Investigations should only be created by the agent. Creates a new Investigation in a given project.
patchupdateprojectsId, locationsId, investigationsIdrequestId, updateMaskDeprecated: Investigations should only be modified by the agent. Updates 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)
validateOnlyboolean

SELECT examples​

Gets details of a single Investigation.

SELECT
name,
annotations,
createTime,
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​

Deprecated: Investigations should only be created by the agent. Creates a new Investigation in a given project.

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

UPDATE examples​

Deprecated: Investigations should only be modified by the agent. Updates the parameters of a single Investigation.

UPDATE google.geminicloudassist.investigations
SET
data__annotations = '{{ annotations }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__observations = '{{ observations }}',
data__observerStatuses = '{{ observerStatuses }}',
data__revisionPredecessor = '{{ revisionPredecessor }}',
data__title = '{{ title }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND investigationsId = '{{ investigationsId }}' --required
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
RETURNING
name,
annotations,
createTime,
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 }}'
;