GetPrSummary
POST/gitpod.v1.UsageService/GetPrSummary
Gets aggregated PR speed summary for the organization or a specific project.
Use this method to:
- Measure pull request lead time and review latency
- Calculate deployment frequency from merged pull requests
- Scope PR speed insights to a project, user, or team
Example
dateRange:
startTime: "2024-01-01T00:00:00Z"
endTime: "2024-02-01T00:00:00Z"
projectId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"Body ParametersJSON
GetPrSummary
curl https://app.gitpod.io/api/gitpod.v1.UsageService/GetPrSummary \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $GITPOD_API_KEY" \
-d '{
"dateRange": {
"endTime": "2024-02-01T00:00:00Z",
"startTime": "2024-01-01T00:00:00Z"
}
}'{
"sparkline": [
{
"time": "2019-12-27T18:11:19.117Z",
"value": 0
}
],
"summary": {
"deploymentFrequency": 0,
"deploymentFrequencyTrend": 0,
"leadTimeSeconds": 0,
"leadTimeTrend": 0,
"prsMergedCount": "prsMergedCount",
"prsMergedTrend": 0,
"timeToFirstApprovalSeconds": 0,
"timeToFirstApprovalTrend": 0
}
}Returns Examples
{
"sparkline": [
{
"time": "2019-12-27T18:11:19.117Z",
"value": 0
}
],
"summary": {
"deploymentFrequency": 0,
"deploymentFrequencyTrend": 0,
"leadTimeSeconds": 0,
"leadTimeTrend": 0,
"prsMergedCount": "prsMergedCount",
"prsMergedTrend": 0,
"timeToFirstApprovalSeconds": 0,
"timeToFirstApprovalTrend": 0
}
}