Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnalysisRuleResponse(List<String> errors, String executionError, Long executionTimeMs, String identifier, String output, List<AnalysisViolation> violations) -
Method Summary
Modifier and TypeMethodDescriptionaddErrorsItem(String errorsItem) addViolationsItem(AnalysisViolation violationsItem) booleanReturn true if this AnalysisRuleResponse object is equal to o.executionError(String executionError) executionTimeMs(Long executionTimeMs) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.A list of error messages encountered while executing the rule.An error message if the rule execution failed, or null if execution succeeded.The time taken to execute the rule, in milliseconds.The identifier of the rule that produced this response.The raw output produced by the rule engine during execution.The list of violations found by this rule.inthashCode()identifier(String identifier) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetExecutionError(String executionError) voidsetExecutionTimeMs(Long executionTimeMs) voidsetIdentifier(String identifier) voidvoidsetViolations(List<AnalysisViolation> violations) toString()violations(List<AnalysisViolation> violations)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ERRORS
- See Also:
-
JSON_PROPERTY_EXECUTION_ERROR
- See Also:
-
JSON_PROPERTY_EXECUTION_TIME_MS
- See Also:
-
JSON_PROPERTY_IDENTIFIER
- See Also:
-
JSON_PROPERTY_OUTPUT
- See Also:
-
JSON_PROPERTY_VIOLATIONS
- See Also:
-
-
Constructor Details
-
AnalysisRuleResponse
public AnalysisRuleResponse() -
AnalysisRuleResponse
-
-
Method Details
-
errors
-
addErrorsItem
-
getErrors
A list of error messages encountered while executing the rule.- Returns:
- errors
-
setErrors
-
executionError
-
getExecutionError
An error message if the rule execution failed, or null if execution succeeded.- Returns:
- executionError
-
setExecutionError
-
executionTimeMs
-
getExecutionTimeMs
The time taken to execute the rule, in milliseconds.- Returns:
- executionTimeMs
-
setExecutionTimeMs
-
identifier
-
getIdentifier
The identifier of the rule that produced this response.- Returns:
- identifier
-
setIdentifier
-
output
-
getOutput
The raw output produced by the rule engine during execution.- Returns:
- output
-
setOutput
-
violations
-
addViolationsItem
-
getViolations
The list of violations found by this rule.- Returns:
- violations
-
setViolations
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- AnalysisRuleResponse
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this AnalysisRuleResponse object is equal to o. -
hashCode
public int hashCode() -
toString
-