Method: projects.locations.testCorrelationConfig

測試對話的關聯設定。

HTTP 要求

POST https://{endpoint}/v1alpha1/{location=projects/*/locations/*}:testCorrelationConfig

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

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

路徑參數

參數
location

string

這是必要旗標,測試關聯設定的位置。格式:projects/{project}/locations/{location}

要求主體

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

JSON 表示法
{
  "correlationConfig": {
    object (CorrelationConfig)
  },
  "maxSampleCount": integer,

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "filter": string,
  "conversations": {
    object (Conversations)
  }
  // End of mutually exclusive fields.
}
欄位
correlationConfig

object (CorrelationConfig)

這是必要旗標,要測試的關聯設定。

maxSampleCount

integer

選用。使用 filter 時,要取樣的對話數量上限。如未設定,預設值為 1000。大於 1000 的值會強制轉型為 1000。如果提供 conversations,系統會忽略這個欄位。

用於測試關聯設定的資料。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
filter

string

選用。篩選要測試關聯性的對話。系統會根據開始時間,對符合這項篩選條件的對話進行取樣。系統會選取最近 maxSampleCount 則對話。如果沒有任何對話符合篩選條件,要求就會失敗,並傳回 INVALID_ARGUMENT 錯誤。

conversations

object (Conversations)

選用。要測試的對話清單。

互斥欄位結束。

回應主體

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

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview。

對話

對話清單的包裝函式。

JSON 表示法
{
  "conversations": [
    {
      object (Conversation)
    }
  ]
}
欄位
conversations[]

object (Conversation)

選用。對話。