LGTM administrators can download usage data using this endpoint. The response includes up to 1000 values for the specified metric and reports the date-time that each value was calculated. There is normally one value per day.
643 matches
22 actions
LGTM API specification
22 actions
- Add a project to LGTMPOSTv1.0.0
- API specificationGETv1.0.0
- Delete project by numeric identifierDELETEv1.0.0
- Fetch the results of a query job for a specific projectGETv1.0.0
- Get analysis summaryGETv1.0.0
- Get analysis summary for a specific commitGETv1.0.0
- Get configuration for a project identified by numeric identifierGETv1.0.0
- Get detailed alert informationGETv1.0.0
- Get detailed alert information for an issueGETv1.0.0
- Get operation statusGETv1.0.0
- Get project by numeric identifierGETv1.0.0
- Get project by URL identifierGETv1.0.0
- Get results of code reviewGETv1.0.0
- Get the computed values of the specified metricGETv1.0.0
- Get the identifiers and descriptions of the usage metricsGETv1.0.0
- Get the status of a query jobGETv1.0.0
- List projectsGETv1.0.0
- Provide a summary of results for the projects in the query jobGETv1.0.0
- Run a CodeQL query on one or more projectsPOSTv1.0.0
- Run analysis of a specific commitPOSTv1.0.0
- Run code review for a patchPOSTv1.0.0
- Set the administrator configuration for a project identified by numeric identifierPUTv1.0.0
Other/LGTM API specification
Get the computed values of the specified metric
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
{
"type": "object",
"properties": {
"metric-id": {
"type": "string"
}
},
"required": [
"metric-id"
],
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
{
"type": "object",
"properties": {
"measurements": {
"type": "array",
"description": "A time series of values taken by the metric at different timestamps.",
"items": {
"type": "object",
"properties": {
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The date and time when this metric was computed."
},
"value": {
"type": "number",
"description": "The value of this metric at the timestamp reported."
}
}
}
},
"metric-id": {
"type": "string",
"description": "The identifier by which this metric is referenced in the API."
}
}
}