investigations
Creates, updates, deletes, gets or lists an investigations resource.
Overview
| Name | investigations |
| Type | Resource |
| Id | google.geminicloudassist.investigations |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Name of the investigation, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id} |
annotations | object | Optional. Additional annotations on the investigation. (id: InvestigationAnnotations) |
createTime | string (google-datetime) | Output only. The time when the investigation was created. |
error | object | The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. (id: Status) |
executionState | string | Output 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) |
labels | object | Optional. User-defined labels for the investigation. |
observations | object | Optional. Observations about the project state that comprise the contents of the investigation. |
observerStatuses | object | Optional. Statuses of observers which have been invoked in order to run the investigation. |
operation | string | Output 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} |
revision | string | Output only. Resource name of the investigation's current revision, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}/revisions/{revision_id} |
revisionIndex | integer (int32) | Output only. Index of the current revision of the investigation. |
revisionPredecessor | string | Optional. The name of the revision that was this revision's predecessor. |
title | string | Optional. Human-readable display title for the investigation. |
updateTime | string (google-datetime) | Output only. The time when the investigation was last updated. |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Name of the investigation, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id} |
annotations | object | Optional. Additional annotations on the investigation. (id: InvestigationAnnotations) |
createTime | string (google-datetime) | Output only. The time when the investigation was created. |
error | object | The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. (id: Status) |
executionState | string | Output 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) |
labels | object | Optional. User-defined labels for the investigation. |
observations | object | Optional. Observations about the project state that comprise the contents of the investigation. |
observerStatuses | object | Optional. Statuses of observers which have been invoked in order to run the investigation. |
operation | string | Output 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} |
revision | string | Output only. Resource name of the investigation's current revision, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}/revisions/{revision_id} |
revisionIndex | integer (int32) | Output only. Index of the current revision of the investigation. |
revisionPredecessor | string | Optional. The name of the revision that was this revision's predecessor. |
title | string | Optional. Human-readable display title for the investigation. |
updateTime | string (google-datetime) | Output only. The time when the investigation was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, investigationsId | Gets details of a single Investigation. | |
list | select | projectsId, locationsId | filter, pageSize, orderBy, pageToken | Lists Investigations in a given project and location. |
create | insert | projectsId, locationsId | investigationId, requestId, validateOnly | Creates a new Investigation in a given project. |
patch | update | projectsId, locationsId, investigationsId | requestId, updateMask | Updates the parameters of a single Investigation. |
delete | delete | projectsId, locationsId, investigationsId | requestId | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
investigationsId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
investigationId | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
updateMask | string (google-fieldmask) | |
validateOnly | boolean |
SELECT examples
- get
- list
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
;
Lists Investigations in a given project and location.
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 filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
;
INSERT examples
- create
- Manifest
Creates a new Investigation in a given project.
INSERT INTO google.geminicloudassist.investigations (
data__name,
data__labels,
data__title,
data__observations,
data__observerStatuses,
data__revisionPredecessor,
data__annotations,
projectsId,
locationsId,
investigationId,
requestId,
validateOnly
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ title }}',
'{{ observations }}',
'{{ observerStatuses }}',
'{{ revisionPredecessor }}',
'{{ annotations }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ investigationId }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
name,
annotations,
createTime,
error,
executionState,
labels,
observations,
observerStatuses,
operation,
revision,
revisionIndex,
revisionPredecessor,
title,
updateTime
;
# Description fields are for documentation purposes
- name: investigations
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the investigations resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the investigations resource.
- name: name
value: "{{ name }}"
description: |
Identifier. Name of the investigation, of the form: projects/{project_number}/locations/{location_id}/investigations/{investigation_id}
- name: labels
value: "{{ labels }}"
description: |
Optional. User-defined labels for the investigation.
- name: title
value: "{{ title }}"
description: |
Optional. Human-readable display title for the investigation.
- name: observations
value: "{{ observations }}"
description: |
Optional. Observations about the project state that comprise the contents of the investigation.
- name: observerStatuses
value: "{{ observerStatuses }}"
description: |
Optional. Statuses of observers which have been invoked in order to run the investigation.
- name: revisionPredecessor
value: "{{ revisionPredecessor }}"
description: |
Optional. The name of the revision that was this revision's predecessor.
- name: annotations
description: |
Optional. Additional annotations on the investigation.
value:
supportCase: "{{ supportCase }}"
revisionLastRunInterval:
endTime: "{{ endTime }}"
startTime: "{{ startTime }}"
pagePath: "{{ pagePath }}"
extrasMap: "{{ extrasMap }}"
- name: investigationId
value: "{{ investigationId }}"
- name: requestId
value: "{{ requestId }}"
- name: validateOnly
value: {{ validateOnly }}
UPDATE examples
- patch
Updates the parameters of a single Investigation.
UPDATE google.geminicloudassist.investigations
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__title = '{{ title }}',
data__observations = '{{ observations }}',
data__observerStatuses = '{{ observerStatuses }}',
data__revisionPredecessor = '{{ revisionPredecessor }}',
data__annotations = '{{ annotations }}'
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
- delete
Deletes a single Investigation.
DELETE FROM google.geminicloudassist.investigations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND investigationsId = '{{ investigationsId }}' --required
AND requestId = '{{ requestId }}'
;