public class Alert
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ApiResponse |
alert(java.lang.String id)
Gets the alert with the given ID, the corresponding HTTP message can be obtained with the
'messageId' field and 'message' API method
|
ApiResponse |
alertCountsByRisk(java.lang.String url,
java.lang.String recurse)
Gets a count of the alerts, optionally filtered as per alertsPerRisk
|
ApiResponse |
alerts(java.lang.String baseurl,
java.lang.String start,
java.lang.String count,
java.lang.String riskid)
Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with
'start' position and 'count' of alerts
|
ApiResponse |
alertsByRisk(java.lang.String url,
java.lang.String recurse)
Gets a summary of the alerts, optionally filtered by a 'url'.
|
ApiResponse |
alertsSummary(java.lang.String baseurl)
Gets number of alerts grouped by each risk level, optionally filtering by URL
|
ApiResponse |
deleteAlert(java.lang.String id)
Deletes the alert with the given ID.
|
ApiResponse |
deleteAllAlerts()
Deletes all alerts of the current session.
|
ApiResponse |
numberOfAlerts(java.lang.String baseurl,
java.lang.String riskid)
Gets the number of alerts, optionally filtering by URL or riskId
|
public Alert(ClientApi api)
public ApiResponse alert(java.lang.String id) throws ClientApiException
ClientApiException
public ApiResponse alerts(java.lang.String baseurl, java.lang.String start, java.lang.String count, java.lang.String riskid) throws ClientApiException
ClientApiException
public ApiResponse alertsSummary(java.lang.String baseurl) throws ClientApiException
ClientApiException
public ApiResponse numberOfAlerts(java.lang.String baseurl, java.lang.String riskid) throws ClientApiException
ClientApiException
public ApiResponse alertsByRisk(java.lang.String url, java.lang.String recurse) throws ClientApiException
ClientApiException
public ApiResponse alertCountsByRisk(java.lang.String url, java.lang.String recurse) throws ClientApiException
ClientApiException
public ApiResponse deleteAllAlerts() throws ClientApiException
ClientApiException
public ApiResponse deleteAlert(java.lang.String id) throws ClientApiException
ClientApiException