analyses
Creates, updates, deletes, gets or lists an analyses
resource.
Overview
Name | analyses |
Type | Resource |
Id | google.contactcenterinsights.analyses |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
analysisResult | object | Output only. The result of the analysis, which is populated when the analysis finishes. (id: GoogleCloudContactcenterinsightsV1AnalysisResult) |
annotatorSelector | object | To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run. (id: GoogleCloudContactcenterinsightsV1AnnotatorSelector) |
createTime | string (google-datetime) | Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
requestTime | string (google-datetime) | Output only. The time at which the analysis was requested. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
analysisResult | object | Output only. The result of the analysis, which is populated when the analysis finishes. (id: GoogleCloudContactcenterinsightsV1AnalysisResult) |
annotatorSelector | object | To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run. (id: GoogleCloudContactcenterinsightsV1AnnotatorSelector) |
createTime | string (google-datetime) | Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
requestTime | string (google-datetime) | Output only. The time at which the analysis was requested. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , analysesId | Gets an analysis. | |
list | select | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId | pageSize , pageToken , filter | Lists analyses. |
create | insert | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId | Creates an analysis. The long running operation is done when the analysis has completed. | |
delete | delete | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , analysesId | Deletes an analysis. |
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 |
---|---|---|
analysesId | string | |
authorizedViewSetsId | string | |
authorizedViewsId | string | |
conversationsId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
Gets an analysis.
SELECT
name,
analysisResult,
annotatorSelector,
createTime,
requestTime
FROM google.contactcenterinsights.analyses
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' -- required
AND authorizedViewsId = '{{ authorizedViewsId }}' -- required
AND conversationsId = '{{ conversationsId }}' -- required
AND analysesId = '{{ analysesId }}' -- required;
Lists analyses.
SELECT
name,
analysisResult,
annotatorSelector,
createTime,
requestTime
FROM google.contactcenterinsights.analyses
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' -- required
AND authorizedViewsId = '{{ authorizedViewsId }}' -- required
AND conversationsId = '{{ conversationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}';
INSERT
examples
- create
- Manifest
Creates an analysis. The long running operation is done when the analysis has completed.
INSERT INTO google.contactcenterinsights.analyses (
data__name,
data__annotatorSelector,
projectsId,
locationsId,
authorizedViewSetsId,
authorizedViewsId,
conversationsId
)
SELECT
'{{ name }}',
'{{ annotatorSelector }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ authorizedViewSetsId }}',
'{{ authorizedViewsId }}',
'{{ conversationsId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: analyses
props:
- name: projectsId
value: string
description: Required parameter for the analyses resource.
- name: locationsId
value: string
description: Required parameter for the analyses resource.
- name: authorizedViewSetsId
value: string
description: Required parameter for the analyses resource.
- name: authorizedViewsId
value: string
description: Required parameter for the analyses resource.
- name: conversationsId
value: string
description: Required parameter for the analyses resource.
- name: name
value: string
description: >
Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}
- name: annotatorSelector
value: object
description: >
To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.
DELETE
examples
- delete
Deletes an analysis.
DELETE FROM google.contactcenterinsights.analyses
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required
AND conversationsId = '{{ conversationsId }}' --required
AND analysesId = '{{ analysesId }}' --required;