Skip to content

Commit 3250d57

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
OP make 'support_rules' field in parse_grok processor optional (#2552)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent dc568e9 commit 3250d57

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "a6f5281",
3-
"generated": "2025-08-06 17:43:12.388"
2+
"spec_repo_commit": "befda92",
3+
"generated": "2025-08-06 19:11:13.073"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28224,7 +28224,6 @@ components:
2822428224
required:
2822528225
- source
2822628226
- match_rules
28227-
- support_rules
2822828227
type: object
2822928228
ObservabilityPipelineParseGrokProcessorRuleMatchRule:
2823028229
description: 'Defines a Grok parsing rule, which extracts structured fields

lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ObservabilityPipelineParseGrokProcessorRule
3232

3333
# A list of Grok helper rules that can be referenced by the parsing rules.
3434
#
35-
attr_reader :support_rules
35+
attr_accessor :support_rules
3636

3737
attr_accessor :additional_properties
3838

@@ -97,7 +97,6 @@ def initialize(attributes = {})
9797
def valid?
9898
return false if @match_rules.nil?
9999
return false if @source.nil?
100-
return false if @support_rules.nil?
101100
true
102101
end
103102

@@ -121,16 +120,6 @@ def source=(source)
121120
@source = source
122121
end
123122

124-
# Custom attribute writer method with validation
125-
# @param support_rules [Object] Object to be assigned
126-
# @!visibility private
127-
def support_rules=(support_rules)
128-
if support_rules.nil?
129-
fail ArgumentError, 'invalid value for "support_rules", support_rules cannot be nil.'
130-
end
131-
@support_rules = support_rules
132-
end
133-
134123
# Returns the object in the form of hash, with additionalProperties support.
135124
# @return [Hash] Returns the object in the form of hash
136125
# @!visibility private

0 commit comments

Comments
 (0)