public class RecordAlert extends Object
Constructor and Description |
---|
RecordAlert() |
RecordAlert(int alertId,
int scanId,
int pluginId,
String alert,
int risk,
int confidence,
String description,
String uri,
String param,
String attack,
String otherInfo,
String solution,
String reference,
String evidence,
int cweId,
int wascId,
int historyId,
int sourceHistoryId,
int sourceId,
String alertRef) |
Modifier and Type | Method and Description |
---|---|
String |
getAlert() |
int |
getAlertId() |
String |
getAlertRef()
Gets the alert reference
|
String |
getAttack() |
int |
getConfidence() |
int |
getCweId() |
String |
getDescription() |
String |
getEvidence() |
int |
getHistoryId() |
String |
getOtherInfo() |
String |
getParam() |
int |
getPluginId() |
String |
getReference() |
int |
getReliability()
Deprecated.
(2.4.0) Replaced by
getConfidence() . |
int |
getRisk() |
int |
getScanId() |
String |
getSolution() |
int |
getSourceHistoryId() |
int |
getSourceId()
Gets the ID of the source of the alert.
|
String |
getUri() |
int |
getWascId() |
void |
setAlert(String alert) |
void |
setAlertId(int alertId) |
void |
setAlertRef(String alertRef)
Sets the alert reference
|
void |
setAttack(String attack) |
void |
setConfidence(int confidence) |
void |
setCweId(int cweId) |
void |
setDescription(String description) |
void |
setEvidence(String evidence) |
void |
setHistoryId(int historyId) |
void |
setOtherInfo(String otherInfo) |
void |
setParam(String query) |
void |
setPluginId(int pluginId) |
void |
setReference(String reference) |
void |
setReliability(int confidence)
Deprecated.
(2.4.0) Replaced by
setConfidence(int) . |
void |
setRisk(int risk) |
void |
setScanId(int scanId) |
void |
setSolution(String solution) |
void |
setSourceHistoryId(int sourceHistoryId) |
void |
setSourceId(int sourceId)
Sets the ID of the source of the alert.
|
void |
setUri(String uri) |
void |
setWascId(int wascId) |
public RecordAlert()
public RecordAlert(int alertId, int scanId, int pluginId, String alert, int risk, int confidence, String description, String uri, String param, String attack, String otherInfo, String solution, String reference, String evidence, int cweId, int wascId, int historyId, int sourceHistoryId, int sourceId, String alertRef)
public String getAlert()
public void setAlert(String alert)
alert
- The alert to set.public int getAlertId()
public void setAlertId(int alertId)
alertId
- The alertId to set.public String getDescription()
public void setDescription(String description)
description
- The description to set.public String getOtherInfo()
public void setOtherInfo(String otherInfo)
otherInfo
- The otherInfo to set.public int getPluginId()
public void setPluginId(int pluginId)
pluginId
- The pluginId to set.public String getParam()
public void setParam(String query)
query
- The query to set.public String getReference()
public void setReference(String reference)
reference
- The reference to set.@Deprecated public int getReliability()
getConfidence()
.@Deprecated public void setReliability(int confidence)
setConfidence(int)
.confidence
- The reliability to set.public int getConfidence()
public void setConfidence(int confidence)
confidence
- the confidence to set.public int getRisk()
public void setRisk(int risk)
risk
- The risk to set.public int getScanId()
public void setScanId(int scanId)
scanId
- The scanId to set.public String getSolution()
public void setSolution(String solution)
solution
- The solution to set.public String getUri()
public void setUri(String uri)
uri
- The uri to set.public int getHistoryId()
public void setHistoryId(int historyId)
historyId
- The historyId to set.public int getSourceHistoryId()
public void setSourceHistoryId(int sourceHistoryId)
sourceHistoryId
- The sourceHistoryId to set.public String getAttack()
public void setAttack(String attack)
public String getEvidence()
public void setEvidence(String evidence)
public int getCweId()
public void setCweId(int cweId)
public int getWascId()
public void setWascId(int wascId)
public void setSourceId(int sourceId)
sourceId
- the ID of the sourceSource
public int getSourceId()
Source
public String getAlertRef()
public void setAlertRef(String alertRef)
alertRef
- the alert reference