metrics
default
Calculate metrics on continuous integration runs, such as GitHub Actions, Jenkins, Circle, etc.
Changed onpost/metrics/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"
],
"pusher_groups": [
[
"github.com/vmarkovtsev",
"github.com/dpordomingo"
],
[
"github.com/se7entyse7en"
]
]
},
{
"repositories": [
"github.com/athenianco/metadata",
"github.com/athenianco/athenian-api"
],
"pushers": [
"github.com/vmarkovtsev",
"github.com/se7entyse7en"
]
}
],
"metrics": [
"chk-suites-count"
],
"date_from": "2020-01-23",
"date_to": "2021-01-24",
"granularities": [
"all"
],
"account": 1
}Response
Calculated metrics.
Example response
{
"metrics": [
"chk-suites-count"
],
"date_from": "2020-01-23",
"date_to": "2021-01-24",
"granularities": [
"all"
],
"calculated": [
{
"values": [
{
"date": "2020-01-23",
"values": [
200
]
}
],
"for": {
"repositories": [
"github.com/athenianco/athenian-webapp",
"github.com/athenianco/athenian-api"
],
"pushers": [
"github.com/vmarkovtsev",
"github.com/dpordomingo"
]
},
"granularity": "all"
}
]
}Changes
- info
added the new optional request property
/////// - info
added the optional property
////////to the response with the status
- info
- breaking
the
request property's minItems was increased to1
- breaking