issue_models
Creates, updates, deletes, gets or lists a issue_models
resource.
Overview
Name | issue_models |
Type | Resource |
Id | google.contactcenterinsights.issue_models |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model} |
createTime | string | Output only. The time at which this issue model was created. |
displayName | string | The representative name for the issue model. |
inputDataConfig | object | Configs for the input data used to create the issue model. |
issueCount | string | Output only. Number of issues in this issue model. |
languageCode | string | Language of the model. |
modelType | string | Type of the model. |
state | string | Output only. State of the model. |
trainingStats | object | Aggregated statistics about an issue model. |
updateTime | string | Output only. The most recent time at which the issue model was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | issueModelsId, locationsId, projectsId | Gets an issue model. |
list | SELECT | locationsId, projectsId | Lists issue models. |
create | INSERT | locationsId, projectsId | Creates an issue model. |
delete | DELETE | issueModelsId, locationsId, projectsId | Deletes an issue model. |
patch | UPDATE | issueModelsId, locationsId, projectsId | Updates an issue model. |
calculate_issue_model_stats | EXEC | issueModelsId, locationsId, projectsId | Gets an issue model's statistics. |
deploy | EXEC | issueModelsId, locationsId, projectsId | Deploys 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. |
export | EXEC | issueModelsId, locationsId, projectsId | Exports an issue model to the provided destination. |
import | EXEC | locationsId, projectsId | Imports an issue model from a Cloud Storage bucket. |
undeploy | EXEC | issueModelsId, locationsId, projectsId | Undeploys 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.contactcenterinsights.issue_models (
locationsId,
projectsId,
languageCode,
displayName,
inputDataConfig,
name,
modelType
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ languageCode }}',
'{{ displayName }}',
'{{ inputDataConfig }}',
'{{ name }}',
'{{ modelType }}'
;
- name: your_resource_model_name
props:
- name: languageCode
value: string
- name: displayName
value: string
- name: issueCount
value: string
- name: createTime
value: string
- name: inputDataConfig
value:
- name: medium
value: string
- name: trainingConversationsCount
value: string
- name: filter
value: string
- name: name
value: string
- name: updateTime
value: string
- name: trainingStats
value:
- name: analyzedConversationsCount
value: string
- name: unclassifiedConversationsCount
value: string
- name: issueStats
value: object
- name: modelType
value: string
- name: state
value: string
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 }}';