Class AnalysisRuleResponse

java.lang.Object
com.datadog.api.client.v2.model.AnalysisRuleResponse

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class AnalysisRuleResponse extends Object
The result of applying a single static analysis rule to the analyzed source code.
  • Field Details

  • Constructor Details

  • Method Details

    • errors

      public AnalysisRuleResponse errors(List<String> errors)
    • addErrorsItem

      public AnalysisRuleResponse addErrorsItem(String errorsItem)
    • getErrors

      public List<String> getErrors()
      A list of error messages encountered while executing the rule.
      Returns:
      errors
    • setErrors

      public void setErrors(List<String> errors)
    • executionError

      public AnalysisRuleResponse executionError(String executionError)
    • getExecutionError

      @Nullable public String getExecutionError()
      An error message if the rule execution failed, or null if execution succeeded.
      Returns:
      executionError
    • setExecutionError

      public void setExecutionError(String executionError)
    • executionTimeMs

      public AnalysisRuleResponse executionTimeMs(Long executionTimeMs)
    • getExecutionTimeMs

      public Long getExecutionTimeMs()
      The time taken to execute the rule, in milliseconds.
      Returns:
      executionTimeMs
    • setExecutionTimeMs

      public void setExecutionTimeMs(Long executionTimeMs)
    • identifier

      public AnalysisRuleResponse identifier(String identifier)
    • getIdentifier

      public String getIdentifier()
      The identifier of the rule that produced this response.
      Returns:
      identifier
    • setIdentifier

      public void setIdentifier(String identifier)
    • output

      public AnalysisRuleResponse output(String output)
    • getOutput

      public String getOutput()
      The raw output produced by the rule engine during execution.
      Returns:
      output
    • setOutput

      public void setOutput(String output)
    • violations

      public AnalysisRuleResponse violations(List<AnalysisViolation> violations)
    • addViolationsItem

      public AnalysisRuleResponse addViolationsItem(AnalysisViolation violationsItem)
    • getViolations

      public List<AnalysisViolation> getViolations()
      The list of violations found by this rule.
      Returns:
      violations
    • setViolations

      public void setViolations(List<AnalysisViolation> violations)
    • putAdditionalProperty

      public AnalysisRuleResponse putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      AnalysisRuleResponse
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this AnalysisRuleResponse object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object