metrics
default
Calculate metrics over developer activities.
Changed onpost/metrics/developers
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"
],
"developers": [
"github.com/vmarkovtsev",
"github.com/dpordomingo"
]
},
{
"repositories": [
"github.com/athenianco/athenian-webapp",
"github.com/athenianco/athenian-api"
],
"developers": [
"github.com/vmarkovtsev",
"github.com/dpordomingo"
]
}
],
"metrics": [
"dev-reviews",
"dev-prs-created",
"dev-pr-comments"
],
"date_from": "2019-10-23",
"date_to": "2020-05-23",
"granularities": [
"all"
],
"account": 1
}Response
Calculated metrics.
Example response
{
"date_from": "2020-01-23",
"date_to": "2020-01-24",
"granularities": [
"all"
],
"metrics": [
"dev-prs-created",
"dev-reviews"
],
"calculated": [
{
"values": [
[
{
"date": "2020-01-23",
"values": [
5,
10
]
}
],
[
{
"date": "2020-01-23",
"values": [
20,
100
]
}
]
],
"for": {
"repositories": [
"github.com/athenianco/athenian-webapp",
"github.com/athenianco/athenian-api"
],
"developers": [
"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