Track progress of a long-running operation using the operations identifier returned when you created the operation. For example, by triggering the analysis of a commit, or the code review of a patch. For both LGTM.com and LGTM Enterprise, you must include an access token with the operations:read scope.
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 operation status
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
{
"type": "object",
"properties": {
"operation-id": {
"type": "integer",
"format": "int64"
}
},
"required": [
"operation-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
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
{
"type": "object",
"required": [
"task-type"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "The identifier for the operation."
},
"status": {
"type": "string",
"description": "Status of the operation.",
"enum": [
"pending",
"done"
]
},
"task-result": {
"type": "object"
},
"task-result-url": {
"type": "string",
"description": "The URL for the result of the task. For some operations, included only on completion."
},
"task-type": {
"type": "string",
"enum": [
"analysis",
"codereview",
"queryjob"
]
},
"uploads": {
"type": "object"
}
}
}