Class: DatadogAPIClient::V2::AnalysisRequestRule

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/analysis_request_rule.rb

Overview

A static analysis rule to apply during code analysis.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



54
55
56
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 54

def additional_properties
  @additional_properties
end

#categoryObject

The category of the rule (for example, BEST_PRACTICES, SECURITY).



25
26
27
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 25

def category
  @category
end

#checksumObject

A checksum of the rule definition.



28
29
30
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 28

def checksum
  @checksum
end

#codeObject

The base64-encoded rule implementation code.



31
32
33
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 31

def code
  @code
end

#entity_checkedObject

The code entity type checked by the rule, applicable when rule type is AST_CHECK.



34
35
36
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 34

def entity_checked
  @entity_checked
end

#idObject

The unique identifier of the rule.



37
38
39
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 37

def id
  @id
end

#languageObject

The programming language this rule targets.



40
41
42
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 40

def language
  @language
end

#regexObject

A base64-encoded regex pattern used by the rule, applicable when rule type is REGEX.



43
44
45
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 43

def regex
  @regex
end

#severityObject

The severity of findings from this rule (for example, ERROR, WARNING).



46
47
48
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 46

def severity
  @severity
end

#tree_sitter_queryObject

The base64-encoded tree-sitter query used by the rule.



49
50
51
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 49

def tree_sitter_query
  @tree_sitter_query
end

#typeObject

The rule type indicating the detection mechanism (for example, TREE_SITTER_QUERY).



52
53
54
# File 'lib/datadog_api_client/v2/models/analysis_request_rule.rb', line 52

def type
  @type
end