Method: projects.locations.datasets.conversations.sample

根據使用者設定對對話進行取樣,並針對不同用途處理取樣的對話。

HTTP 要求

POST https://{endpoint}/v1/{parent=projects/*/locations/*/datasets/*}/conversations:sample

其中 {endpoint} 是支援的服務端點。

這些網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

這是必要旗標,資料集的父項資源。

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "sampleRule": {
    object (SampleRule)
  },

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "destinationDataset": {
    object (Dataset)
  }
  // End of mutually exclusive fields.
}
欄位
sampleRule

object (SampleRule)

選用。用於取樣對話的取樣規則。

取樣對話的目的地。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
destinationDataset

object (Dataset)

要將取樣對話複製到哪個資料集資源。

互斥欄位結束。

回應主體

如果成功,回應主體會包含 Operation 的執行個體。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱Authentication Overview。

IAM 權限

需要 parent 資源的下列 IAM 權限:

  • contactcenterinsights.datasetConversations.list
  • contactcenterinsights.conversations.list

詳情請參閱 IAM 說明文件。