GET analyses/{analysis-id}/alerts
Operation ID: getAlerts
Auth: unknown
Description
Download all the alerts found by an analysis. Use the `Accept:` request header to specify the output media type as either CSV or [SARIF](https://lgtm.com/help/lgtm/sarif-results-file): - `application/sarif+json`: Alerts in SARIF format. If no version is specified the latest supported SARIF version is used. - `application/json`: Alerts in SARIF format (*deprecated*). If no version is specified, [SARIF 2.0.0](http://docs.oasis-open.org/sarif/sarif/v2.0/sarif-v2.0.html) is used for backwards compatibility. - `text/csv`: Alerts in CSV format. The `text/csv` media type has two optional parameters: - `charset`: determines the character encoding of the text, by default UTF-8. - `header`: determines whether a header row with column names is `present` or `absent`. The default value for this parameter is `present`. For example, an Accept header with value `text/csv; header=absent` would result in CSV output without a header row. To find the analysis identifier for a commit, use the `/analyses/{project-id}/commits/{commit-id}` endpoint. For more information, see [Get analysis summary for a specific commit](https://lgtm.com/help/lgtm/api/api-v1#opIdgetAnalysisForCommit).
Parameters (3)
(string, path, required)
The analysis identifier.
(boolean, query, optional, default: False)
Set `true` to include results in files that are excluded from the output by default. This includes results in test code and generated files. For more information, see [File classification](https://lgtm.com/help/lgtm/file-classification).
(string, query, optional)
The desired version of the SARIF format. Currently supported versions are `1.0.0`, `2.0.0`, and `2.1.0`.
No probe data for this endpoint yet.