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

列出给定样本系列的性能样本 - 列表结果按时间戳升序排序 - 默认页面大小为 500 个样本;允许的最大大小 5000 - 响应令牌指示最后返回的 PerfSample 时间戳 - 当结果大小超过页面大小时,提交包含页面令牌的后续请求,以返回剩余的样本,直至页面限制

可能返回以下任何规范错误代码: - OUT_OF_RANGE - 指定的请求 pageToken 超出有效范围 - NOT_FOUND - 包含的 PerfSampleSeries 不存在

HTTP请求

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

URL 使用gRPC 转码语法。

路径参数

参数
projectId

string

云项目

historyId

string

工具结果历史 ID。

executionId

string

工具结果执行 ID。

stepId

string

工具结果步骤 ID。

sampleSeriesId

string

示例系列 ID

查询参数

参数
pageSize

integer

默认页面大小为 500 个样本,最大大小为 5000。如果 pageSize 大于 5000,则有效页面大小将为 5000

pageToken

string

可选,上一个响应中返回的 nextPageToken

请求正文

请求正文必须为空。

响应体

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

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

object ( PerfSample )

nextPageToken

string

可选,如果结果大小超过请求中指定的页面大小(或默认页面大小 500,如果未指定),则返回。表示最后一个样本时间戳,在后续请求中用作pageToken

授权范围

需要以下 OAuth 范围:

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

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