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

有關詳細信息,請參閱身份驗證概述