metrics
default
Measure the amount of code that was pushed outside of pull requests.
post/metrics/code_bypassing_prs
Request
- Base URL{{ server_url }}/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"account": 1,
"date_from": "2020-01-01",
"date_to": "2020-03-01",
"granularity": "day",
"in": [
"{1}",
"github.com/athenianco/athenian-webapp"
],
"with_author": [
"github.com/vmarkovtsev"
]
}Response
Calculated metrics.
Example response
[
{
"date": "2020-01-23",
"bypassed_commits": 1,
"bypassed_lines": 20,
"total_commits": 2,
"total_lines": 50
},
{
"date": "2020-01-24",
"bypassed_commits": 2,
"bypassed_lines": 30,
"total_commits": 3,
"total_lines": 60
}
]Changes
No recorded changes to this operation across all 90 revisions of this API.