Class AssessmentFinding

java.lang.Object
org.netxms.client.assess.AssessmentFinding

public class AssessmentFinding extends Object
Assessment finding: result of checking an object against single source (compliance policy)
  • Constructor Details

    • AssessmentFinding

      public AssessmentFinding(NXCPMessage msg, long baseId)
      Create finding from NXCP message.
      Parameters:
      msg - NXCP message
      baseId - 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

      public FindingSourceType getSourceType()
      Returns:
      type of finding source
    • getSourceId

      public String getSourceId()
      Returns:
      ID of finding source (policy ID for compliance policy)
    • getSourceSubId

      public String getSourceSubId()
      Returns:
      ID of element within finding source (empty if not used)
    • getResult

      public FindingResult getResult()
      Returns:
      computed result
    • getReason

      public AssessmentReason getReason()
      Returns:
      reason for result being unknown
    • getSeverity

      public Severity getSeverity()
      Returns:
      severity
    • getState

      public FindingState getState()
      Returns:
      effective state
    • getEvidence

      public String getEvidence()
      Returns:
      evidence (JSON document with one element for every evaluated condition)
    • getFirstSeen

      public Date getFirstSeen()
      Returns:
      time when finding was created
    • getLastChanged

      public Date getLastChanged()
      Returns:
      time of last change of computed result
    • getLastEvaluated

      public Date 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

      public Date getSuppressionTime()
      Returns:
      time when finding was suppressed or null
    • getSuppressionComments

      public String getSuppressionComments()
      Returns:
      comments given when finding was suppressed (empty if suppression is not defined)