Skip to main content

issue_models

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

Overview

Nameissue_models
TypeResource
Idgoogle.contactcenterinsights.issue_models

Fields

NameDatatypeDescription
namestringImmutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}
createTimestringOutput only. The time at which this issue model was created.
displayNamestringThe representative name for the issue model.
inputDataConfigobjectConfigs for the input data used to create the issue model.
issueCountstringOutput only. Number of issues in this issue model.
languageCodestringLanguage of the model.
modelTypestringType of the model.
statestringOutput only. State of the model.
trainingStatsobjectAggregated statistics about an issue model.
updateTimestringOutput only. The most recent time at which the issue model was updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTissueModelsId, locationsId, projectsIdGets an issue model.
listSELECTlocationsId, projectsIdLists issue models.
createINSERTlocationsId, projectsIdCreates an issue model.
deleteDELETEissueModelsId, locationsId, projectsIdDeletes an issue model.
patchUPDATEissueModelsId, locationsId, projectsIdUpdates an issue model.
calculate_issue_model_statsEXECissueModelsId, locationsId, projectsIdGets an issue model's statistics.
deployEXECissueModelsId, locationsId, projectsIdDeploys an issue model. Returns an error if a model is already deployed. An issue model can only be used in analysis after it has been deployed.
exportEXECissueModelsId, locationsId, projectsIdExports an issue model to the provided destination.
importEXEClocationsId, projectsIdImports an issue model from a Cloud Storage bucket.
undeployEXECissueModelsId, locationsId, projectsIdUndeploys an issue model. An issue model can not be used in analysis after it has been undeployed.

SELECT examples

Lists issue models.

SELECT
name,
createTime,
displayName,
inputDataConfig,
issueCount,
languageCode,
modelType,
state,
trainingStats,
updateTime
FROM google.contactcenterinsights.issue_models
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.contactcenterinsights.issue_models (
locationsId,
projectsId,
languageCode,
displayName,
inputDataConfig,
name,
modelType
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ languageCode }}',
'{{ displayName }}',
'{{ inputDataConfig }}',
'{{ name }}',
'{{ modelType }}'
;

UPDATE example

Updates a issue_models resource.

/*+ update */
UPDATE google.contactcenterinsights.issue_models
SET
languageCode = '{{ languageCode }}',
displayName = '{{ displayName }}',
inputDataConfig = '{{ inputDataConfig }}',
name = '{{ name }}',
modelType = '{{ modelType }}'
WHERE
issueModelsId = '{{ issueModelsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified issue_models resource.

/*+ delete */
DELETE FROM google.contactcenterinsights.issue_models
WHERE issueModelsId = '{{ issueModelsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';