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
列出附加到步驟的圖像的縮圖。