Skip to main content

issues

Creates, updates, deletes, gets or lists an issues resource.

Overview​

Nameissues
TypeResource
Idgoogle.contactcenterinsights.issues

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringImmutable. The resource name of the issue. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
createTimestring (google-datetime)Output only. The time at which this issue was created.
displayDescriptionstringRepresentative description of the issue.
displayNamestringThe representative name for the issue.
sampleUtterancesarrayOutput only. Resource names of the sample representative utterances that match to this issue.
updateTimestring (google-datetime)Output only. The most recent time that this issue was updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, issueModelsId, issuesIdGets an issue.
listselectprojectsId, locationsId, issueModelsIdLists issues.
createinsertprojectsId, locationsId, issueModelsIdCreates an issue.
patchupdateprojectsId, locationsId, issueModelsId, issuesIdupdateMaskUpdates an issue.
deletedeleteprojectsId, locationsId, issueModelsId, issuesIdDeletes 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.

NameDatatypeDescription
issueModelsIdstring
issuesIdstring
locationsIdstring
projectsIdstring
updateMaskstring (google-fieldmask)

SELECT examples​

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
;

INSERT examples​

Creates an issue.

INSERT INTO google.contactcenterinsights.issues (
data__displayDescription,
data__displayName,
data__name,
projectsId,
locationsId,
issueModelsId
)
SELECT
'{{ displayDescription }}',
'{{ displayName }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ issueModelsId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Updates an issue.

UPDATE google.contactcenterinsights.issues
SET
data__displayDescription = '{{ displayDescription }}',
data__displayName = '{{ displayName }}',
data__name = '{{ name }}'
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​

Deletes an issue.

DELETE FROM google.contactcenterinsights.issues
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND issueModelsId = '{{ issueModelsId }}' --required
AND issuesId = '{{ issuesId }}' --required
;