REST Resource: projects.locations.issueModels

資源:IssueModel

問題模型資源。

JSON 表示法
{
  "name": string,
  "displayName": string,
  "createTime": string,
  "updateTime": string,
  "issueCount": string,
  "state": enum (State),
  "inputDataConfig": {
    object (InputDataConfig)
  },
  "trainingStats": {
    object (IssueModelLabelStats)
  },
  "modelType": enum (ModelType),
  "languageCode": string
}
欄位
name

string

不可變動。問題模型的資源名稱。格式:projects/{project}/locations/{location}/issueModels/{issueModel}

displayName

string

問題模型的代表名稱。

createTime

string (Timestamp format)

僅供輸出。建立這個問題模型的時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

updateTime

string (Timestamp format)

僅供輸出。問題模型上次更新的時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z"、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30"。

issueCount

string (int64 format)

僅供輸出。這個問題模型中的問題數量。

state

enum (State)

僅供輸出。模型狀態。

inputDataConfig

object (InputDataConfig)

用於建立問題模型的輸入資料設定。

trainingStats

object (IssueModelLabelStats)

僅供輸出。不可變動。問題模型訓練資料的標籤統計資料。

modelType

enum (ModelType)

模型類型。

languageCode

string

模型的語言。

狀態

模型狀態。

列舉
STATE_UNSPECIFIED 未指定。
UNDEPLOYED 模型尚未部署,但已可部署。
DEPLOYING 正在部署模型。
DEPLOYED 模型已部署完成,可供使用。模型必須處於這個狀態,才能用於分析。
UNDEPLOYING 正在取消部署模型。
DELETING 正在刪除模型。

InputDataConfig

用於建立問題模型的輸入資料設定。

JSON 表示法
{
  "medium": enum (Medium),
  "trainingConversationsCount": string,
  "filter": string
}
欄位
medium
(deprecated)

enum (Medium)

訓練資料中使用的對話媒介。這個欄位即將淘汰。如要指定訓練新問題模型時使用的媒介,請在 filter 上設定 medium 欄位。

trainingConversationsCount

string (int64 format)

僅供輸出。訓練時使用的對話數量。僅供輸出。

filter

string

篩選器,可將用於訓練模型的對話縮減至特定子集。詳情請參閱 https://cloud.google.com/contact-center/insights/docs/filtering。

IssueModelLabelStats

問題模型的匯總統計資料。

JSON 表示法
{
  "analyzedConversationsCount": string,
  "unclassifiedConversationsCount": string,
  "issueStats": {
    string: {
      object (IssueStats)
    },
    ...
  }
}
欄位
analyzedConversationsCount

string (int64 format)

問題模型目前已分析的對話數量。

unclassifiedConversationsCount

string (int64 format)

在目前這個時間點,沒有任何問題適用的已分析對話數量。

issueStats

map (key: string, value: object (IssueStats))

各項問題的統計資料。鍵是問題的資源名稱。

包含 "key": value 組合清單的物件,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }。

IssueStats

問題的匯總統計資料。

JSON 表示法
{
  "issue": string,
  "labeledConversationsCount": string,
  "displayName": string
}
欄位
issue

string

問題資源。格式:projects/{project}/locations/{location}/issueModels/{issueModel}/issues/{issue}

labeledConversationsCount

string (int64 format)

目前與問題相關聯的對話數量。

displayName

string

問題的顯示名稱。

ModelType

模型類型。

列舉
MODEL_TYPE_UNSPECIFIED 未指定模型類型。
TYPE_V1 輸入 V1。
TYPE_V2 輸入 V2。

方法

calculateIssueModelStats

取得問題模型的統計資料。

create

建立問題模型。

delete

刪除問題模型。

deploy

部署問題模型。

export

將問題模型匯出至指定目的地。

get

取得問題模型。

import

從 Cloud Storage bucket 匯入問題模型。

list

列出問題模型。

patch

更新問題模型。

undeploy

取消部署問題模型。