Package org.netxms.client.assess
Class AssessmentFinding
java.lang.Object
org.netxms.client.assess.AssessmentFinding
Assessment finding: result of checking an object against single source (compliance policy)
-
Constructor Summary
ConstructorsConstructorDescriptionAssessmentFinding(NXCPMessage msg, long baseId) Create finding from NXCP message. -
Method Summary
-
Constructor Details
-
AssessmentFinding
Create finding from NXCP message.- Parameters:
msg- NXCP messagebaseId- base field ID
-
-
Method Details
-
getId
public long getId()- Returns:
- finding ID
-
getObjectId
public long getObjectId()- Returns:
- ID of assessed object
-
getComponentIndex
public int getComponentIndex()- Returns:
- index of object's component the finding is for (-1 for object itself)
-
getSourceType
- Returns:
- type of finding source
-
getSourceId
- Returns:
- ID of finding source (policy ID for compliance policy)
-
getSourceSubId
- Returns:
- ID of element within finding source (empty if not used)
-
getResult
- Returns:
- computed result
-
getReason
- Returns:
- reason for result being unknown
-
getSeverity
- Returns:
- severity
-
getState
- Returns:
- effective state
-
getEvidence
- Returns:
- evidence (JSON document with one element for every evaluated condition)
-
getFirstSeen
- Returns:
- time when finding was created
-
getLastChanged
- Returns:
- time of last change of computed result
-
getLastEvaluated
- Returns:
- time of last evaluation
-
isSuppressionDefined
public boolean isSuppressionDefined()Check if finding source is marked as false positive for the object. Suppression can be defined for a finding in any state; it changes effective state only when computed result is not "pass".- Returns:
- true if suppression is defined
-
getSuppressedBy
public int getSuppressedBy()- Returns:
- ID of user that suppressed the finding (0 if suppression is not defined)
-
getSuppressionTime
- Returns:
- time when finding was suppressed or null
-
getSuppressionComments
- Returns:
- comments given when finding was suppressed (empty if suppression is not defined)
-