Class: DatadogAPIClient::V2::AnalysisRequestRule
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::AnalysisRequestRule
- 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
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#category ⇒ Object
readonly
The category of the rule (for example,
BEST_PRACTICES,SECURITY). -
#checksum ⇒ Object
readonly
A checksum of the rule definition.
-
#code ⇒ Object
readonly
The base64-encoded rule implementation code.
-
#entity_checked ⇒ Object
The code entity type checked by the rule, applicable when rule type is
AST_CHECK. -
#id ⇒ Object
readonly
The unique identifier of the rule.
-
#language ⇒ Object
readonly
The programming language this rule targets.
-
#regex ⇒ Object
A base64-encoded regex pattern used by the rule, applicable when rule type is
REGEX. -
#severity ⇒ Object
readonly
The severity of findings from this rule (for example,
ERROR,WARNING). -
#tree_sitter_query ⇒ Object
readonly
The base64-encoded tree-sitter query used by the rule.
-
#type ⇒ Object
readonly
The rule type indicating the detection mechanism (for example,
TREE_SITTER_QUERY).
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
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 |
#category ⇒ Object
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 |
#checksum ⇒ Object
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 |
#code ⇒ Object
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_checked ⇒ Object
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 |
#id ⇒ Object
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 |
#language ⇒ Object
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 |
#regex ⇒ Object
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 |
#severity ⇒ Object
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_query ⇒ Object
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 |
#type ⇒ Object
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 |