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

詳細については、 「認証の概要」を参照してください。