Skip to content

Commit 57c1d46

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ce2ae7a of spec repo
1 parent ed07de5 commit 57c1d46

8 files changed

+417
-3
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": "d93d991",
3-
"generated": "2025-07-15 09:31:41.973"
2+
"spec_repo_commit": "ce2ae7a",
3+
"generated": "2025-07-15 22:53:15.375"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25164,6 +25164,7 @@ components:
2516425164
- $ref: '#/components/schemas/ObservabilityPipelineEnrichmentTableProcessor'
2516525165
- $ref: '#/components/schemas/ObservabilityPipelineReduceProcessor'
2516625166
- $ref: '#/components/schemas/ObservabilityPipelineThrottleProcessor'
25167+
- $ref: '#/components/schemas/ObservabilityPipelineDatadogTagsProcessor'
2516725168
ObservabilityPipelineConfigSourceItem:
2516825169
description: A data source for the pipeline.
2516925170
oneOf:
@@ -25273,6 +25274,82 @@ components:
2527325274
type: string
2527425275
x-enum-varnames:
2527525276
- DATADOG_LOGS
25277+
ObservabilityPipelineDatadogTagsProcessor:
25278+
description: The `datadog_tags` processor filters logs based on Datadog tags.
25279+
It can include or exclude logs that have specific tag keys.
25280+
properties:
25281+
action:
25282+
$ref: '#/components/schemas/ObservabilityPipelineDatadogTagsProcessorAction'
25283+
id:
25284+
description: The unique identifier for this component. Used to reference
25285+
this component in other parts of the pipeline (for example, as the `input`
25286+
to downstream components).
25287+
example: datadog-tags-processor
25288+
type: string
25289+
include:
25290+
description: A Datadog search query used to determine which logs this processor
25291+
targets.
25292+
example: service:my-service
25293+
type: string
25294+
inputs:
25295+
description: A list of component IDs whose output is used as the `input`
25296+
for this component.
25297+
example:
25298+
- datadog-agent-source
25299+
items:
25300+
type: string
25301+
type: array
25302+
keys:
25303+
description: A list of tag keys to filter on. Tag keys must start with a
25304+
letter and contain only letters, numbers, underscores, hyphens, periods,
25305+
or slashes. Maximum 100 keys allowed.
25306+
example:
25307+
- env
25308+
- service
25309+
- version
25310+
items:
25311+
type: string
25312+
type: array
25313+
mode:
25314+
$ref: '#/components/schemas/ObservabilityPipelineDatadogTagsProcessorMode'
25315+
type:
25316+
$ref: '#/components/schemas/ObservabilityPipelineDatadogTagsProcessorType'
25317+
required:
25318+
- id
25319+
- type
25320+
- include
25321+
- mode
25322+
- action
25323+
- keys
25324+
- inputs
25325+
type: object
25326+
ObservabilityPipelineDatadogTagsProcessorAction:
25327+
description: The action to take on logs that match the specified tag keys.
25328+
enum:
25329+
- include
25330+
- exclude
25331+
example: include
25332+
type: string
25333+
x-enum-varnames:
25334+
- INCLUDE
25335+
- EXCLUDE
25336+
ObservabilityPipelineDatadogTagsProcessorMode:
25337+
description: The filtering mode. Currently only `filter` is supported.
25338+
enum:
25339+
- filter
25340+
example: filter
25341+
type: string
25342+
x-enum-varnames:
25343+
- FILTER
25344+
ObservabilityPipelineDatadogTagsProcessorType:
25345+
default: datadog_tags
25346+
description: The processor type. The value should always be `datadog_tags`.
25347+
enum:
25348+
- datadog_tags
25349+
example: datadog_tags
25350+
type: string
25351+
x-enum-varnames:
25352+
- DATADOG_TAGS
2527625353
ObservabilityPipelineDecoding:
2527725354
description: The decoding format used to interpret incoming logs.
2527825355
enum:

lib/datadog_api_client/inflector.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,6 +2467,10 @@ def overrides
24672467
"v2.observability_pipeline_datadog_agent_source_type" => "ObservabilityPipelineDatadogAgentSourceType",
24682468
"v2.observability_pipeline_datadog_logs_destination" => "ObservabilityPipelineDatadogLogsDestination",
24692469
"v2.observability_pipeline_datadog_logs_destination_type" => "ObservabilityPipelineDatadogLogsDestinationType",
2470+
"v2.observability_pipeline_datadog_tags_processor" => "ObservabilityPipelineDatadogTagsProcessor",
2471+
"v2.observability_pipeline_datadog_tags_processor_action" => "ObservabilityPipelineDatadogTagsProcessorAction",
2472+
"v2.observability_pipeline_datadog_tags_processor_mode" => "ObservabilityPipelineDatadogTagsProcessorMode",
2473+
"v2.observability_pipeline_datadog_tags_processor_type" => "ObservabilityPipelineDatadogTagsProcessorType",
24702474
"v2.observability_pipeline_decoding" => "ObservabilityPipelineDecoding",
24712475
"v2.observability_pipeline_dedupe_processor" => "ObservabilityPipelineDedupeProcessor",
24722476
"v2.observability_pipeline_dedupe_processor_mode" => "ObservabilityPipelineDedupeProcessorMode",

lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def openapi_one_of
4141
:'ObservabilityPipelineDedupeProcessor',
4242
:'ObservabilityPipelineEnrichmentTableProcessor',
4343
:'ObservabilityPipelineReduceProcessor',
44-
:'ObservabilityPipelineThrottleProcessor'
44+
:'ObservabilityPipelineThrottleProcessor',
45+
:'ObservabilityPipelineDatadogTagsProcessor'
4546
]
4647
end
4748
# Builds the object
Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
=begin
2+
#Datadog API V2 Collection
3+
4+
#Collection of all Datadog Public endpoints.
5+
6+
The version of the OpenAPI document: 1.0
7+
8+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9+
10+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11+
This product includes software developed at Datadog (https://www.datadoghq.com/).
12+
Copyright 2020-Present Datadog, Inc.
13+
14+
=end
15+
16+
require 'date'
17+
require 'time'
18+
19+
module DatadogAPIClient::V2
20+
# The `datadog_tags` processor filters logs based on Datadog tags. It can include or exclude logs that have specific tag keys.
21+
class ObservabilityPipelineDatadogTagsProcessor
22+
include BaseGenericModel
23+
24+
# The action to take on logs that match the specified tag keys.
25+
attr_reader :action
26+
27+
# The unique identifier for this component. Used to reference this component in other parts of the pipeline (for example, as the `input` to downstream components).
28+
attr_reader :id
29+
30+
# A Datadog search query used to determine which logs this processor targets.
31+
attr_reader :include
32+
33+
# A list of component IDs whose output is used as the `input` for this component.
34+
attr_reader :inputs
35+
36+
# A list of tag keys to filter on. Tag keys must start with a letter and contain only letters, numbers, underscores, hyphens, periods, or slashes. Maximum 100 keys allowed.
37+
attr_reader :keys
38+
39+
# The filtering mode. Currently only `filter` is supported.
40+
attr_reader :mode
41+
42+
# The processor type. The value should always be `datadog_tags`.
43+
attr_reader :type
44+
45+
attr_accessor :additional_properties
46+
47+
# Attribute mapping from ruby-style variable name to JSON key.
48+
# @!visibility private
49+
def self.attribute_map
50+
{
51+
:'action' => :'action',
52+
:'id' => :'id',
53+
:'include' => :'include',
54+
:'inputs' => :'inputs',
55+
:'keys' => :'keys',
56+
:'mode' => :'mode',
57+
:'type' => :'type'
58+
}
59+
end
60+
61+
# Attribute type mapping.
62+
# @!visibility private
63+
def self.openapi_types
64+
{
65+
:'action' => :'ObservabilityPipelineDatadogTagsProcessorAction',
66+
:'id' => :'String',
67+
:'include' => :'String',
68+
:'inputs' => :'Array<String>',
69+
:'keys' => :'Array<String>',
70+
:'mode' => :'ObservabilityPipelineDatadogTagsProcessorMode',
71+
:'type' => :'ObservabilityPipelineDatadogTagsProcessorType'
72+
}
73+
end
74+
75+
# Initializes the object
76+
# @param attributes [Hash] Model attributes in the form of hash
77+
# @!visibility private
78+
def initialize(attributes = {})
79+
if (!attributes.is_a?(Hash))
80+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineDatadogTagsProcessor` initialize method"
81+
end
82+
83+
self.additional_properties = {}
84+
# check to see if the attribute exists and convert string to symbol for hash key
85+
attributes = attributes.each_with_object({}) { |(k, v), h|
86+
if (!self.class.attribute_map.key?(k.to_sym))
87+
self.additional_properties[k.to_sym] = v
88+
else
89+
h[k.to_sym] = v
90+
end
91+
}
92+
93+
if attributes.key?(:'action')
94+
self.action = attributes[:'action']
95+
end
96+
97+
if attributes.key?(:'id')
98+
self.id = attributes[:'id']
99+
end
100+
101+
if attributes.key?(:'include')
102+
self.include = attributes[:'include']
103+
end
104+
105+
if attributes.key?(:'inputs')
106+
if (value = attributes[:'inputs']).is_a?(Array)
107+
self.inputs = value
108+
end
109+
end
110+
111+
if attributes.key?(:'keys')
112+
if (value = attributes[:'keys']).is_a?(Array)
113+
self.keys = value
114+
end
115+
end
116+
117+
if attributes.key?(:'mode')
118+
self.mode = attributes[:'mode']
119+
end
120+
121+
if attributes.key?(:'type')
122+
self.type = attributes[:'type']
123+
end
124+
end
125+
126+
# Check to see if the all the properties in the model are valid
127+
# @return true if the model is valid
128+
# @!visibility private
129+
def valid?
130+
return false if @action.nil?
131+
return false if @id.nil?
132+
return false if @include.nil?
133+
return false if @inputs.nil?
134+
return false if @keys.nil?
135+
return false if @mode.nil?
136+
return false if @type.nil?
137+
true
138+
end
139+
140+
# Custom attribute writer method with validation
141+
# @param action [Object] Object to be assigned
142+
# @!visibility private
143+
def action=(action)
144+
if action.nil?
145+
fail ArgumentError, 'invalid value for "action", action cannot be nil.'
146+
end
147+
@action = action
148+
end
149+
150+
# Custom attribute writer method with validation
151+
# @param id [Object] Object to be assigned
152+
# @!visibility private
153+
def id=(id)
154+
if id.nil?
155+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
156+
end
157+
@id = id
158+
end
159+
160+
# Custom attribute writer method with validation
161+
# @param include [Object] Object to be assigned
162+
# @!visibility private
163+
def include=(include)
164+
if include.nil?
165+
fail ArgumentError, 'invalid value for "include", include cannot be nil.'
166+
end
167+
@include = include
168+
end
169+
170+
# Custom attribute writer method with validation
171+
# @param inputs [Object] Object to be assigned
172+
# @!visibility private
173+
def inputs=(inputs)
174+
if inputs.nil?
175+
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
176+
end
177+
@inputs = inputs
178+
end
179+
180+
# Custom attribute writer method with validation
181+
# @param keys [Object] Object to be assigned
182+
# @!visibility private
183+
def keys=(keys)
184+
if keys.nil?
185+
fail ArgumentError, 'invalid value for "keys", keys cannot be nil.'
186+
end
187+
@keys = keys
188+
end
189+
190+
# Custom attribute writer method with validation
191+
# @param mode [Object] Object to be assigned
192+
# @!visibility private
193+
def mode=(mode)
194+
if mode.nil?
195+
fail ArgumentError, 'invalid value for "mode", mode cannot be nil.'
196+
end
197+
@mode = mode
198+
end
199+
200+
# Custom attribute writer method with validation
201+
# @param type [Object] Object to be assigned
202+
# @!visibility private
203+
def type=(type)
204+
if type.nil?
205+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
206+
end
207+
@type = type
208+
end
209+
210+
# Returns the object in the form of hash, with additionalProperties support.
211+
# @return [Hash] Returns the object in the form of hash
212+
# @!visibility private
213+
def to_hash
214+
hash = {}
215+
self.class.attribute_map.each_pair do |attr, param|
216+
value = self.send(attr)
217+
if value.nil?
218+
is_nullable = self.class.openapi_nullable.include?(attr)
219+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
220+
end
221+
222+
hash[param] = _to_hash(value)
223+
end
224+
self.additional_properties.each_pair do |attr, value|
225+
hash[attr] = value
226+
end
227+
hash
228+
end
229+
230+
# Checks equality by comparing each attribute.
231+
# @param o [Object] Object to be compared
232+
# @!visibility private
233+
def ==(o)
234+
return true if self.equal?(o)
235+
self.class == o.class &&
236+
action == o.action &&
237+
id == o.id &&
238+
include == o.include &&
239+
inputs == o.inputs &&
240+
keys == o.keys &&
241+
mode == o.mode &&
242+
type == o.type &&
243+
additional_properties == o.additional_properties
244+
end
245+
246+
# Calculates hash code according to all attributes.
247+
# @return [Integer] Hash code
248+
# @!visibility private
249+
def hash
250+
[action, id, include, inputs, keys, mode, type, additional_properties].hash
251+
end
252+
end
253+
end

0 commit comments

Comments
 (0)