Projects

List project factory PR costs

Changed on

Lists the factory PRs behind the Cost per PR card (GET .../factory/metrics/cost) for the requested window (filter[timestamp][gte] to the exclusive filter[timestamp][lt], at most 90 days, the last 7 days when neither is given), counted as the card counts them: one row per PR whose opening run, or any follow-up, is counted in the window. firstRunCredits and followUpCredits are the credits counted in the window, so the rows add up to the card’s current.prCredits, and the rows with openedInWindow number its current.prsOpened. openedAt is when the opening run was created, and loop and skill are the opening run’s project Loop (null when no Loop of the project started it) and its skill without its version. runs lists the PR's counted runs, oldest first, at most 20, and runsTruncated says there are more. filter[opened] keeps the PRs whose opening run is counted in the window (inRange, the rows with openedInWindow) or the rest (earlier), so an opening run still unfinished counts as earlier. sort is -credits (the default) or -openedAt, ties broken by URL; page links carry the resolved window.

get/experimental/projects/{projectId}/factory/metrics/cost/prs

Request

  • Base URL
    https://api.tessl.io
  • URL
    https://api.tessl.io/experimental/projects/{projectId}/factory/metrics/cost/prs
  • Auth
    none declared

Path parameters

projectIdstring uuid required

Query parameters

filter[timestamp][gte]string date-time
filter[timestamp][lt]string date-time
filter[loopId]string uuid
filter[skillRef]string

The opening run's skill, without its @<version>.

'inRange'
OR
'earlier'
'-credits'
OR
'-openedAt'
page[size]integer
page[after]string
page[before]string

Headers

Authorizationstring

Response

Default Response

Changes