issues
Creates, updates, deletes, gets or lists an issues
resource.
Overview
Name | issues |
Type | Resource |
Id | google.contactcenterinsights.issues |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the issue. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} |
createTime | string (google-datetime) | Output only. The time at which this issue was created. |
displayDescription | string | Representative description of the issue. |
displayName | string | The representative name for the issue. |
sampleUtterances | array | Output only. Resource names of the sample representative utterances that match to this issue. |
updateTime | string (google-datetime) | Output only. The most recent time that this issue was updated. |
Successful response
Name | Datatype | Description |
---|---|---|
issues | array | The issues that match the request. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , issueModelsId , issuesId | Gets an issue. | |
list | select | projectsId , locationsId , issueModelsId | Lists issues. | |
create | insert | projectsId , locationsId , issueModelsId | Creates an issue. | |
patch | update | projectsId , locationsId , issueModelsId , issuesId | updateMask | Updates an issue. |
delete | delete | projectsId , locationsId , issueModelsId , issuesId | Deletes an issue. |
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 |
---|---|---|
issueModelsId | string | |
issuesId | string | |
locationsId | string | |
projectsId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets an issue.
SELECT
name,
createTime,
displayDescription,
displayName,
sampleUtterances,
updateTime
FROM google.contactcenterinsights.issues
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND issueModelsId = '{{ issueModelsId }}' -- required
AND issuesId = '{{ issuesId }}' -- required;
Lists issues.
SELECT
issues
FROM google.contactcenterinsights.issues
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND issueModelsId = '{{ issueModelsId }}' -- required;
INSERT
examples
- create
- Manifest
Creates an issue.
INSERT INTO google.contactcenterinsights.issues (
data__name,
data__displayName,
data__displayDescription,
projectsId,
locationsId,
issueModelsId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ displayDescription }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ issueModelsId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: issues
props:
- name: projectsId
value: string
description: Required parameter for the issues resource.
- name: locationsId
value: string
description: Required parameter for the issues resource.
- name: issueModelsId
value: string
description: Required parameter for the issues resource.
- name: name
value: string
description: >
Immutable. The resource name of the issue. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
- name: displayName
value: string
description: >
The representative name for the issue.
- name: displayDescription
value: string
description: >
Representative description of the issue.
UPDATE
examples
- patch
Updates an issue.
UPDATE google.contactcenterinsights.issues
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__displayDescription = '{{ displayDescription }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND issueModelsId = '{{ issueModelsId }}' --required
AND issuesId = '{{ issuesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
displayDescription,
displayName,
sampleUtterances,
updateTime;
DELETE
examples
- delete
Deletes an issue.
DELETE FROM google.contactcenterinsights.issues
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND issueModelsId = '{{ issueModelsId }}' --required
AND issuesId = '{{ issuesId }}' --required;