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 文档。