metrics
default
Calculate metrics on deployments submitted by `/events/deployments`.
Changed onpost/metrics/deployments
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"
],
"withgroups": [
{
"pr_author": [
"github.com/se7entyse7en",
"github.com/vmarkovtsev"
]
}
],
"jira": {
"labels_include": [
"bug"
]
}
}
],
"metrics": [
"dep-duration-successful",
"dep-success-ratio"
],
"date_from": "2021-07-20",
"date_to": "2021-10-07",
"granularities": [
"all",
"2 week"
],
"account": 1
}Response
Calculated metrics.
Example response
[
{
"for": {
"repositories": [
"github.com/athenianco/athenian-webapp",
"github.com/athenianco/athenian-api"
],
"with": {
"pr_author": [
"github.com/se7entyse7en",
"github.com/vmarkovtsev"
]
}
},
"metrics": [
"dep-duration-successful",
"dep-success-ratio"
],
"granularity": "all",
"values": [
{
"date": "2020-07-20",
"values": [
"600s",
0.91
],
"confidence_mins": [
"550s",
null
],
"confidence_maxs": [
"630s",
null
],
"confidence_scores": [
84,
null
]
}
]
}
]Changes
- warning
added the new
dep-change-failure-countenum value to the//response property for the response status - warning
added the new
dep-change-failure-ratioenum value to the//response property for the response status - info
added the new
dep-change-failure-countenum value to the request property/ - info
added the new
dep-change-failure-ratioenum value to the request property/
- warning
- info
added the new optional request property
/// - info
added the optional property
///to the response with the status
- info