assessments
Creates, updates, deletes, gets or lists an assessments
resource.
Overview
Name | assessments |
Type | Resource |
Id | google.contactcenterinsights.assessments |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the assessment. Format: projects/{project}/locations/{location}/conversations/{conversation}/assessments/{assessment} |
agentInfo | object | Information about an agent involved in the conversation. (id: GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo) |
createTime | string (google-datetime) | Output only. The time at which the assessment was created. |
state | string | Output only. The state of the assessment. |
updateTime | string (google-datetime) | Output only. The time at which the assessment was last updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the assessment. Format: projects/{project}/locations/{location}/conversations/{conversation}/assessments/{assessment} |
agentInfo | object | Information about an agent involved in the conversation. (id: GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo) |
createTime | string (google-datetime) | Output only. The time at which the assessment was created. |
state | string | Output only. The state of the assessment. |
updateTime | string (google-datetime) | Output only. The time at which the assessment was last updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , assessmentsId | Get Assessment. | |
list | select | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId | pageSize , pageToken , filter | List Assessments. |
create | insert | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId | Create Assessment. | |
delete | delete | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , assessmentsId | force | Delete an Assessment. |
publish | exec | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , assessmentsId | Publish an Assessment. | |
appeal | exec | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , assessmentsId | Appeal an Assessment. | |
finalize | exec | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , assessmentsId | Finalize an Assessment. |
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 |
---|---|---|
assessmentsId | string | |
authorizedViewSetsId | string | |
authorizedViewsId | string | |
conversationsId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
force | boolean | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
Get Assessment.
SELECT
name,
agentInfo,
createTime,
state,
updateTime
FROM google.contactcenterinsights.assessments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' -- required
AND authorizedViewsId = '{{ authorizedViewsId }}' -- required
AND conversationsId = '{{ conversationsId }}' -- required
AND assessmentsId = '{{ assessmentsId }}' -- required;
List Assessments.
SELECT
name,
agentInfo,
createTime,
state,
updateTime
FROM google.contactcenterinsights.assessments
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
Create Assessment.
INSERT INTO google.contactcenterinsights.assessments (
data__name,
data__agentInfo,
projectsId,
locationsId,
authorizedViewSetsId,
authorizedViewsId,
conversationsId
)
SELECT
'{{ name }}',
'{{ agentInfo }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ authorizedViewSetsId }}',
'{{ authorizedViewsId }}',
'{{ conversationsId }}'
RETURNING
name,
agentInfo,
createTime,
state,
updateTime
;
# Description fields are for documentation purposes
- name: assessments
props:
- name: projectsId
value: string
description: Required parameter for the assessments resource.
- name: locationsId
value: string
description: Required parameter for the assessments resource.
- name: authorizedViewSetsId
value: string
description: Required parameter for the assessments resource.
- name: authorizedViewsId
value: string
description: Required parameter for the assessments resource.
- name: conversationsId
value: string
description: Required parameter for the assessments resource.
- name: name
value: string
description: >
Identifier. The resource name of the assessment. Format: projects/{project}/locations/{location}/conversations/{conversation}/assessments/{assessment}
- name: agentInfo
value: object
description: >
Information about an agent involved in the conversation.
DELETE
examples
- delete
Delete an Assessment.
DELETE FROM google.contactcenterinsights.assessments
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required
AND conversationsId = '{{ conversationsId }}' --required
AND assessmentsId = '{{ assessmentsId }}' --required
AND force = '{{ force }}';
Lifecycle Methods
- publish
- appeal
- finalize
Publish an Assessment.
EXEC google.contactcenterinsights.assessments.publish
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@authorizedViewSetsId='{{ authorizedViewSetsId }}' --required,
@authorizedViewsId='{{ authorizedViewsId }}' --required,
@conversationsId='{{ conversationsId }}' --required,
@assessmentsId='{{ assessmentsId }}' --required;
Appeal an Assessment.
EXEC google.contactcenterinsights.assessments.appeal
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@authorizedViewSetsId='{{ authorizedViewSetsId }}' --required,
@authorizedViewsId='{{ authorizedViewsId }}' --required,
@conversationsId='{{ conversationsId }}' --required,
@assessmentsId='{{ assessmentsId }}' --required;
Finalize an Assessment.
EXEC google.contactcenterinsights.assessments.finalize
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@authorizedViewSetsId='{{ authorizedViewSetsId }}' --required,
@authorizedViewsId='{{ authorizedViewsId }}' --required,
@conversationsId='{{ conversationsId }}' --required,
@assessmentsId='{{ assessmentsId }}' --required;