Method: projects.histories.executions.steps.perfSampleSeries.samples.batchCreate

创建一批 PerfSamples - 客户端可以通过重复调用此方法来提交多批 Perf Samples,以分割大型请求负载 - 重复项和现有时间戳条目将被忽略。 - 批处理操作可能部分成功 - 成功插入的元素集在响应中返回(忽略数据库中已存在的项目)。

可能返回以下任何规范错误代码: - NOT_FOUND - 包含的 PerfSampleSeries 不存在

HTTP请求

POST https://toolresults.googleapis.com/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate

URL 使用gRPC 转码语法。

路径参数

参数
projectId

string

云项目

historyId

string

工具结果历史 ID。

executionId

string

工具结果执行 ID。

stepId

string

工具结果步骤 ID。

sampleSeriesId

string

示例系列 ID

请求正文

请求正文包含具有以下结构的数据:

JSON 表示
{
  "perfSamples": [
    {
      object (PerfSample)
    }
  ]
}
领域
perfSamples[]

object ( PerfSample )

要创建的 PerfSamples 集不应包含现有时间戳

响应体

如果成功,响应正文包含具有以下结构的数据:

JSON 表示
{
  "perfSamples": [
    {
      object (PerfSample)
    }
  ]
}
领域
perfSamples[]

object ( PerfSample )

授权范围

需要以下 OAuth 范围:

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

有关详细信息,请参阅身份验证概述