v1

latestOpenAPI 3.1.02026-07-26269227514.8 KB
metrics

Get PR Metrics

Get aggregated PR metrics for the enterprise account.

Optionally filter by playbook_id to get metrics for PRs from sessions created with a specific playbook.

get/v3/enterprise/metrics/prs

Query parameters

user_idsstring[] nullable
service_user_idsstring[] nullable
time_beforeinteger required
time_afterinteger required
org_idsstring[] nullable
playbook_idstring nullable

Response

Successful Response

prs_closed_countinteger required

PRs Devin authored that were closed without merging.

prs_created_countinteger required

Total PRs Devin authored across all states (open + merged + closed).

prs_merged_countinteger required

PRs Devin authored that were merged.

prs_opened_countinteger required

PRs Devin authored that are currently open.

prs_taken_over_closed_countinteger

PRs Devin took over that were closed without merging.

prs_taken_over_countinteger

Total PRs Devin took over across all states (open + merged + closed). A take-over is when Devin pushed commits to a PR it did not originally create.

prs_taken_over_merged_countinteger

PRs Devin took over that were merged.

prs_taken_over_opened_countinteger

PRs Devin took over that are currently open.