Cloud Tool Results API

用于发布和访问开发人员工具结果的 API。

服务:toolresults.googleapis.com

要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用程序需要使用您自己的库来调用此服务,请在发出 API 请求时使用以下信息。

发现文件

发现文档是用于描述和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。该服务提供以下发现文档:

服务端点

服务端点是指定 API 服务的网络地址的基本 URL。一项服务可能有多个服务端点。该服务具有以下服务端点,并且以下所有 URI 均与该服务端点相关:

  • https://toolresults.googleapis.com

REST 资源: v1beta3.projects

方法
getSettings GET /toolresults/v1beta3/projects/{projectId}/settings
获取项目的工具结果设置。
initializeSettings POST /toolresults/v1beta3/projects/{projectId}:initializeSettings
为尚未设置的设置创建资源。

REST 资源: v1beta3.projects.history

方法
create POST /toolresults/v1beta3/projects/{projectId}/histories
创造历史。
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}
获取历史记录。
list GET /toolresults/v1beta3/projects/{projectId}/histories
列出给定项目的历史记录。

REST 资源: v1beta3.projects.histories.executions

方法
create POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions
创建一个执行。
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}
获得处决。
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions
列出给定历史记录的执行情况。
patch PATCH /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}
使用提供的部分实体更新现有执行。

REST 资源: v1beta3.projects.histories.executions.clusters

方法
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}
通过 ID 检索单个屏幕截图簇
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters

列出集群截图

返回与执行对应的屏幕截图集群列表。

REST 资源: v1beta3.projects.histories.executions.environments

方法
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments/{environmentId}
获取一个环境。
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments
列出给定执行的环境。

REST 资源: v1beta3.projects.histories.executions.steps

方法
accessibilityClusters GET /toolresults/v1beta3/{name=projects/*/histories/*/executions/*/steps/*}:accessibilityClusters

列出给定步骤的可访问性集群

可能返回以下任何规范错误代码:

  • PERMISSION_DENIED - 如果用户无权读取项目
  • INVALID_ARGUMENT - 如果请求格式错误
  • FAILED_PRECONDITION - 如果请求中的参数碰巧无效;例如
create POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps
创建一个步骤。
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}
获得一步。
getPerfMetricsSummary GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary
检索 PerfMetricsSummary。
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps
列出给定执行的步骤。
patch PATCH /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}
使用提供的部分实体更新现有步骤。
publishXunitXmlFiles POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles
将 xml 文件发布到现有步骤。

REST 资源: v1beta3.projects.histories.executions.steps.perfMetricsSummary

方法
create POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary
创建 PerfMetricsSummary 资源。

REST 资源: v1beta3.projects.histories.executions.steps.perfSampleSeries

方法
create POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries
创建 PerfSampleSeries。
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}
获取 PerfSampleSeries。
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries
列出给定步骤的 PerfSampleSeries。

REST 资源: v1beta3.projects.histories.executions.steps.perfSampleSeries.samples

方法
batchCreate POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate
创建一批 PerfSamples - 客户端可以通过重复调用此方法来提交多批 Perf Samples,以分割大型请求负载 - 重复项和现有时间戳条目将被忽略。
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples

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

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

REST 资源: v1beta3.projects.histories.executions.steps.testCases

方法
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases/{testCaseId}
获取步骤的测试用例的详细信息。
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases
列出附加到步骤的测试用例。

REST 资源: v1beta3.projects.histories.executions.steps.thumbnails

方法
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails
列出附加到步骤的图像的缩略图。