Skip to main content

analyses

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

Overview

Nameanalyses
TypeResource
Idgoogle.contactcenterinsights.analyses

Fields

NameDatatypeDescription
namestringImmutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}
analysisResultobjectThe result of an analysis.
annotatorSelectorobjectSelector of all available annotators and phrase matchers to run.
createTimestringOutput only. The time at which the analysis was created, which occurs when the long-running operation completes.
requestTimestringOutput only. The time at which the analysis was requested.

Methods

NameAccessible byRequired ParamsDescription
getSELECTanalysesId, conversationsId, locationsId, projectsIdGets an analysis.
listSELECTconversationsId, locationsId, projectsIdLists analyses.
createINSERTconversationsId, locationsId, projectsIdCreates an analysis. The long running operation is done when the analysis has completed.
deleteDELETEanalysesId, conversationsId, locationsId, projectsIdDeletes an analysis.

SELECT examples

Lists analyses.

SELECT
name,
analysisResult,
annotatorSelector,
createTime,
requestTime
FROM google.contactcenterinsights.analyses
WHERE conversationsId = '{{ conversationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new analyses resource.

/*+ create */
INSERT INTO google.contactcenterinsights.analyses (
conversationsId,
locationsId,
projectsId,
name,
annotatorSelector
)
SELECT
'{{ conversationsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ annotatorSelector }}'
;

DELETE example

Deletes the specified analyses resource.

/*+ delete */
DELETE FROM google.contactcenterinsights.analyses
WHERE analysesId = '{{ analysesId }}'
AND conversationsId = '{{ conversationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';