histograms
default
Calculate histograms on continuous integration runs, such as GitHub Actions, Jenkins, Circle, etc.
Changed onpost/histograms/code_checks
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
{
"for": [
{
"repositories": [
"github.com/athenianco/athenian-webapp",
"github.com/athenianco/athenian-api"
],
"pushers": [
"github.com/vmarkovtsev",
"github.com/dpordomingo"
]
}
],
"histograms": [
{
"scale": "log",
"metric": "chk-suite-time"
}
],
"account": 1,
"date_to": "2020-11-23",
"date_from": "2020-01-23",
"timezone": 120
}Response
Calculated histograms.
Example response
[
{
"for": {
"repositories": [
"github.com/athenianco/athenian-webapp",
"github.com/athenianco/athenian-api"
]
},
"metric": "chk-suites-per-pr",
"scale": "linear",
"ticks": [
0,
1,
2,
3,
5,
8,
12
],
"frequencies": [
0,
38,
28,
13,
120,
100
],
"interquartile": {
"left": 2,
"right": 8
}
}
]Changes
- info
added the new optional request property
/////// - info
added the optional property
///////to the response with the status
- info