Skip to content

Commit 5ade314

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d715381 of spec repo
1 parent 76d9787 commit 5ade314

9 files changed

Lines changed: 143 additions & 4 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53206,6 +53206,8 @@ components:
5320653206
description: S3 bucket name.
5320753207
example: "my-bucket"
5320853208
type: string
53209+
buffer:
53210+
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
5320953211
compression:
5321053212
$ref: "#/components/schemas/ObservabilityPipelineAmazonS3GenericCompression"
5321153213
encoding:
@@ -53455,6 +53457,8 @@ components:
5345553457

5345653458
**Supported pipeline types:** logs
5345753459
properties:
53460+
buffer:
53461+
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
5345853462
endpoint_url_key:
5345953463
description: Name of the environment variable or secret that holds the CloudPrem endpoint URL.
5346053464
example: CLOUDPREM_ENDPOINT_URL
@@ -55105,6 +55109,8 @@ components:
5510555109
properties:
5510655110
auth_strategy:
5510755111
$ref: "#/components/schemas/ObservabilityPipelineHttpClientDestinationAuthStrategy"
55112+
buffer:
55113+
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
5510855114
compression:
5510955115
$ref: "#/components/schemas/ObservabilityPipelineHttpClientDestinationCompression"
5511055116
custom_key:
@@ -55389,6 +55395,8 @@ components:
5538955395
description: Name of the environment variable or secret that holds the Kafka bootstrap servers list.
5539055396
example: KAFKA_BOOTSTRAP_SERVERS
5539155397
type: string
55398+
buffer:
55399+
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
5539255400
compression:
5539355401
$ref: "#/components/schemas/ObservabilityPipelineKafkaDestinationCompression"
5539455402
encoding:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-05-21T09:58:44.439Z

cassettes/features/v2/observability_pipelines/Validate-an-observability-pipeline-with-cloud-prem-destination-buffer-returns-OK-response.yml

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Validate an observability pipeline with cloud_prem destination buffer returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new
5+
6+
body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({
7+
data: DatadogAPIClient::V2::ObservabilityPipelineSpecData.new({
8+
attributes: DatadogAPIClient::V2::ObservabilityPipelineDataAttributes.new({
9+
config: DatadogAPIClient::V2::ObservabilityPipelineConfig.new({
10+
destinations: [
11+
DatadogAPIClient::V2::ObservabilityPipelineCloudPremDestination.new({
12+
id: "cloud-prem-destination",
13+
inputs: [
14+
"my-processor-group",
15+
],
16+
type: DatadogAPIClient::V2::ObservabilityPipelineCloudPremDestinationType::CLOUD_PREM,
17+
endpoint_url_key: "CLOUDPREM_ENDPOINT_URL",
18+
buffer: DatadogAPIClient::V2::ObservabilityPipelineDiskBufferOptions.new({
19+
type: DatadogAPIClient::V2::ObservabilityPipelineBufferOptionsDiskType::DISK,
20+
max_size: 1073741824,
21+
when_full: DatadogAPIClient::V2::ObservabilityPipelineBufferOptionsWhenFull::BLOCK,
22+
}),
23+
}),
24+
],
25+
processor_groups: [
26+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
27+
enabled: true,
28+
id: "my-processor-group",
29+
include: "service:my-service",
30+
inputs: [
31+
"datadog-agent-source",
32+
],
33+
processors: [
34+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
35+
enabled: true,
36+
id: "filter-processor",
37+
include: "status:error",
38+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
39+
}),
40+
],
41+
}),
42+
],
43+
sources: [
44+
DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSource.new({
45+
id: "datadog-agent-source",
46+
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSourceType::DATADOG_AGENT,
47+
}),
48+
],
49+
}),
50+
name: "Pipeline with CloudPrem Buffer",
51+
}),
52+
type: "pipelines",
53+
}),
54+
})
55+
p api_instance.validate_pipeline(body)

features/v2/observability_pipelines.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,14 @@ Feature: Observability Pipelines
247247
Then the response status is 200 OK
248248
And the response "errors" has length 0
249249

250+
@skip @team:DataDog/observability-pipelines
251+
Scenario: Validate an observability pipeline with cloud_prem destination buffer returns "OK" response
252+
Given new "ValidatePipeline" request
253+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "cloud-prem-destination", "inputs": ["my-processor-group"], "type": "cloud_prem", "endpoint_url_key": "CLOUDPREM_ENDPOINT_URL", "buffer": {"type": "disk", "max_size": 1073741824, "when_full": "block"}}], "processor_groups": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Pipeline with CloudPrem Buffer"}, "type": "pipelines"}}
254+
When the request is sent
255+
Then the response status is 200 OK
256+
And the response "errors" has length 0
257+
250258
@team:DataDog/observability-pipelines
251259
Scenario: Validate an observability pipeline with destination secret key returns "OK" response
252260
Given new "ValidatePipeline" request

lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_generic_destination.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class ObservabilityPipelineAmazonS3GenericDestination
3333
# S3 bucket name.
3434
attr_reader :bucket
3535

36+
# Configuration for buffer settings on destination components.
37+
attr_accessor :buffer
38+
3639
# Compression algorithm applied to encoded logs.
3740
attr_reader :compression
3841

@@ -66,6 +69,7 @@ def self.attribute_map
6669
:'auth' => :'auth',
6770
:'batch_settings' => :'batch_settings',
6871
:'bucket' => :'bucket',
72+
:'buffer' => :'buffer',
6973
:'compression' => :'compression',
7074
:'encoding' => :'encoding',
7175
:'id' => :'id',
@@ -84,6 +88,7 @@ def self.openapi_types
8488
:'auth' => :'ObservabilityPipelineAwsAuth',
8589
:'batch_settings' => :'ObservabilityPipelineAmazonS3GenericBatchSettings',
8690
:'bucket' => :'String',
91+
:'buffer' => :'ObservabilityPipelineBufferOptions',
8792
:'compression' => :'ObservabilityPipelineAmazonS3GenericCompression',
8893
:'encoding' => :'ObservabilityPipelineAmazonS3GenericEncoding',
8994
:'id' => :'String',
@@ -125,6 +130,10 @@ def initialize(attributes = {})
125130
self.bucket = attributes[:'bucket']
126131
end
127132

133+
if attributes.key?(:'buffer')
134+
self.buffer = attributes[:'buffer']
135+
end
136+
128137
if attributes.key?(:'compression')
129138
self.compression = attributes[:'compression']
130139
end
@@ -284,6 +293,7 @@ def ==(o)
284293
auth == o.auth &&
285294
batch_settings == o.batch_settings &&
286295
bucket == o.bucket &&
296+
buffer == o.buffer &&
287297
compression == o.compression &&
288298
encoding == o.encoding &&
289299
id == o.id &&
@@ -299,7 +309,7 @@ def ==(o)
299309
# @return [Integer] Hash code
300310
# @!visibility private
301311
def hash
302-
[auth, batch_settings, bucket, compression, encoding, id, inputs, key_prefix, region, storage_class, type, additional_properties].hash
312+
[auth, batch_settings, bucket, buffer, compression, encoding, id, inputs, key_prefix, region, storage_class, type, additional_properties].hash
303313
end
304314
end
305315
end

lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ module DatadogAPIClient::V2
2323
class ObservabilityPipelineCloudPremDestination
2424
include BaseGenericModel
2525

26+
# Configuration for buffer settings on destination components.
27+
attr_accessor :buffer
28+
2629
# Name of the environment variable or secret that holds the CloudPrem endpoint URL.
2730
attr_accessor :endpoint_url_key
2831

@@ -41,6 +44,7 @@ class ObservabilityPipelineCloudPremDestination
4144
# @!visibility private
4245
def self.attribute_map
4346
{
47+
:'buffer' => :'buffer',
4448
:'endpoint_url_key' => :'endpoint_url_key',
4549
:'id' => :'id',
4650
:'inputs' => :'inputs',
@@ -52,6 +56,7 @@ def self.attribute_map
5256
# @!visibility private
5357
def self.openapi_types
5458
{
59+
:'buffer' => :'ObservabilityPipelineBufferOptions',
5560
:'endpoint_url_key' => :'String',
5661
:'id' => :'String',
5762
:'inputs' => :'Array<String>',
@@ -77,6 +82,10 @@ def initialize(attributes = {})
7782
end
7883
}
7984

85+
if attributes.key?(:'buffer')
86+
self.buffer = attributes[:'buffer']
87+
end
88+
8089
if attributes.key?(:'endpoint_url_key')
8190
self.endpoint_url_key = attributes[:'endpoint_url_key']
8291
end
@@ -162,6 +171,7 @@ def to_hash
162171
def ==(o)
163172
return true if self.equal?(o)
164173
self.class == o.class &&
174+
buffer == o.buffer &&
165175
endpoint_url_key == o.endpoint_url_key &&
166176
id == o.id &&
167177
inputs == o.inputs &&
@@ -173,7 +183,7 @@ def ==(o)
173183
# @return [Integer] Hash code
174184
# @!visibility private
175185
def hash
176-
[endpoint_url_key, id, inputs, type, additional_properties].hash
186+
[buffer, endpoint_url_key, id, inputs, type, additional_properties].hash
177187
end
178188
end
179189
end

lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class ObservabilityPipelineHttpClientDestination
2626
# HTTP authentication strategy.
2727
attr_accessor :auth_strategy
2828

29+
# Configuration for buffer settings on destination components.
30+
attr_accessor :buffer
31+
2932
# Compression configuration for HTTP requests.
3033
attr_accessor :compression
3134

@@ -66,6 +69,7 @@ class ObservabilityPipelineHttpClientDestination
6669
def self.attribute_map
6770
{
6871
:'auth_strategy' => :'auth_strategy',
72+
:'buffer' => :'buffer',
6973
:'compression' => :'compression',
7074
:'custom_key' => :'custom_key',
7175
:'encoding' => :'encoding',
@@ -85,6 +89,7 @@ def self.attribute_map
8589
def self.openapi_types
8690
{
8791
:'auth_strategy' => :'ObservabilityPipelineHttpClientDestinationAuthStrategy',
92+
:'buffer' => :'ObservabilityPipelineBufferOptions',
8893
:'compression' => :'ObservabilityPipelineHttpClientDestinationCompression',
8994
:'custom_key' => :'String',
9095
:'encoding' => :'ObservabilityPipelineHttpClientDestinationEncoding',
@@ -121,6 +126,10 @@ def initialize(attributes = {})
121126
self.auth_strategy = attributes[:'auth_strategy']
122127
end
123128

129+
if attributes.key?(:'buffer')
130+
self.buffer = attributes[:'buffer']
131+
end
132+
124133
if attributes.key?(:'compression')
125134
self.compression = attributes[:'compression']
126135
end
@@ -246,6 +255,7 @@ def ==(o)
246255
return true if self.equal?(o)
247256
self.class == o.class &&
248257
auth_strategy == o.auth_strategy &&
258+
buffer == o.buffer &&
249259
compression == o.compression &&
250260
custom_key == o.custom_key &&
251261
encoding == o.encoding &&
@@ -264,7 +274,7 @@ def ==(o)
264274
# @return [Integer] Hash code
265275
# @!visibility private
266276
def hash
267-
[auth_strategy, compression, custom_key, encoding, id, inputs, password_key, tls, token_key, type, uri_key, username_key, additional_properties].hash
277+
[auth_strategy, buffer, compression, custom_key, encoding, id, inputs, password_key, tls, token_key, type, uri_key, username_key, additional_properties].hash
268278
end
269279
end
270280
end

lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class ObservabilityPipelineKafkaDestination
2626
# Name of the environment variable or secret that holds the Kafka bootstrap servers list.
2727
attr_accessor :bootstrap_servers_key
2828

29+
# Configuration for buffer settings on destination components.
30+
attr_accessor :buffer
31+
2932
# Compression codec for Kafka messages.
3033
attr_accessor :compression
3134

@@ -78,6 +81,7 @@ class ObservabilityPipelineKafkaDestination
7881
def self.attribute_map
7982
{
8083
:'bootstrap_servers_key' => :'bootstrap_servers_key',
84+
:'buffer' => :'buffer',
8185
:'compression' => :'compression',
8286
:'encoding' => :'encoding',
8387
:'headers_key' => :'headers_key',
@@ -101,6 +105,7 @@ def self.attribute_map
101105
def self.openapi_types
102106
{
103107
:'bootstrap_servers_key' => :'String',
108+
:'buffer' => :'ObservabilityPipelineBufferOptions',
104109
:'compression' => :'ObservabilityPipelineKafkaDestinationCompression',
105110
:'encoding' => :'ObservabilityPipelineKafkaDestinationEncoding',
106111
:'headers_key' => :'String',
@@ -141,6 +146,10 @@ def initialize(attributes = {})
141146
self.bootstrap_servers_key = attributes[:'bootstrap_servers_key']
142147
end
143148

149+
if attributes.key?(:'buffer')
150+
self.buffer = attributes[:'buffer']
151+
end
152+
144153
if attributes.key?(:'compression')
145154
self.compression = attributes[:'compression']
146155
end
@@ -343,6 +352,7 @@ def ==(o)
343352
return true if self.equal?(o)
344353
self.class == o.class &&
345354
bootstrap_servers_key == o.bootstrap_servers_key &&
355+
buffer == o.buffer &&
346356
compression == o.compression &&
347357
encoding == o.encoding &&
348358
headers_key == o.headers_key &&
@@ -365,7 +375,7 @@ def ==(o)
365375
# @return [Integer] Hash code
366376
# @!visibility private
367377
def hash
368-
[bootstrap_servers_key, compression, encoding, headers_key, id, inputs, key_field, librdkafka_options, message_timeout_ms, rate_limit_duration_secs, rate_limit_num, sasl, socket_timeout_ms, tls, topic, type, additional_properties].hash
378+
[bootstrap_servers_key, buffer, compression, encoding, headers_key, id, inputs, key_field, librdkafka_options, message_timeout_ms, rate_limit_duration_secs, rate_limit_num, sasl, socket_timeout_ms, tls, topic, type, additional_properties].hash
369379
end
370380
end
371381
end

0 commit comments

Comments
 (0)