Skip to content

Commit b7812c9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 5058d5a of spec repo (#4529)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 45fb38d commit b7812c9

5 files changed

Lines changed: 87 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64398,6 +64398,8 @@ components:
6439864398
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationBatch"
6439964399
batch_encoding:
6440064400
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationBatchEncoding"
64401+
buffer:
64402+
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
6440164403
compression:
6440264404
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationCompression"
6440364405
database:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-06-24T16:45:05.037Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Observability Pipelines/Validate an observability pipeline with ClickHouse destination with all fields set returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "b5389bbcbd4c392a8c9da4f2d324e4d8",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 1141,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 582,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"config\":{\"destinations\":[{\"auth\":{\"password_key\":\"CLICKHOUSE_PASSWORD\",\"strategy\":\"basic\",\"username_key\":\"CLICKHOUSE_USERNAME\"},\"batch\":{\"max_events\":1000,\"timeout_secs\":1},\"batch_encoding\":{\"allow_nullable_fields\":true,\"codec\":\"arrow_stream\"},\"buffer\":{\"max_events\":500,\"type\":\"memory\",\"when_full\":\"block\"},\"compression\":{\"algorithm\":\"gzip\",\"level\":6},\"database\":\"my_database\",\"date_time_best_effort\":true,\"endpoint_url_key\":\"CLICKHOUSE_ENDPOINT_URL\",\"format\":\"arrow_stream\",\"id\":\"clickhouse-destination\",\"inputs\":[\"my-processor-group\"],\"skip_unknown_fields\":true,\"table\":\"application_logs\",\"tls\":{\"ca_file\":\"/path/to/ca.crt\",\"crt_file\":\"/path/to/cert.crt\",\"key_file\":\"/path/to/key.key\",\"key_pass_key\":\"TLS_KEY_PASSPHRASE\"},\"type\":\"clickhouse\"}],\"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 ClickHouse Destination All Fields\"},\"type\":\"pipelines\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/obs-pipelines/pipelines/validate"
39+
},
40+
"response": {
41+
"bodySize": 14,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 14,
45+
"text": "{\"errors\":[]}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 670,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2026-06-24T16:45:06.751Z",
61+
"time": 142
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}

features/v2/observability_pipelines.feature

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

195+
@team:DataDog/observability-pipelines
196+
Scenario: Validate an observability pipeline with ClickHouse destination with all fields set returns "OK" response
197+
Given new "ValidatePipeline" request
198+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "clickhouse-destination", "inputs": ["my-processor-group"], "type": "clickhouse", "endpoint_url_key": "CLICKHOUSE_ENDPOINT_URL", "database": "my_database", "table": "application_logs", "format": "arrow_stream", "skip_unknown_fields": true, "date_time_best_effort": true, "compression": {"algorithm": "gzip", "level": 6}, "auth": {"strategy": "basic", "username_key": "CLICKHOUSE_USERNAME", "password_key": "CLICKHOUSE_PASSWORD"}, "batch": {"max_events": 1000, "timeout_secs": 1}, "batch_encoding": {"codec": "arrow_stream", "allow_nullable_fields": true}, "tls": {"crt_file": "/path/to/cert.crt", "ca_file": "/path/to/ca.crt", "key_file": "/path/to/key.key", "key_pass_key": "TLS_KEY_PASSPHRASE"}, "buffer": {"type": "memory", "max_events": 500, "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 ClickHouse Destination All Fields"}, "type": "pipelines"}}
199+
When the request is sent
200+
Then the response status is 200 OK
201+
And the response "errors" has length 0
202+
195203
@team:DataDog/observability-pipelines
196204
Scenario: Validate an observability pipeline with HTTP server source valid_tokens returns "OK" response
197205
Given new "ValidatePipeline" request

services/observability_pipelines/src/v2/models/ObservabilityPipelineClickhouseDestination.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3+
import { ObservabilityPipelineBufferOptions } from "./ObservabilityPipelineBufferOptions";
34
import { ObservabilityPipelineClickhouseDestinationAuth } from "./ObservabilityPipelineClickhouseDestinationAuth";
45
import { ObservabilityPipelineClickhouseDestinationBatch } from "./ObservabilityPipelineClickhouseDestinationBatch";
56
import { ObservabilityPipelineClickhouseDestinationBatchEncoding } from "./ObservabilityPipelineClickhouseDestinationBatchEncoding";
@@ -28,6 +29,10 @@ export class ObservabilityPipelineClickhouseDestination {
2829
* Required when `format` is `arrow_stream`. The `codec` field must be set to `arrow_stream`.
2930
*/
3031
"batchEncoding"?: ObservabilityPipelineClickhouseDestinationBatchEncoding;
32+
/**
33+
* Configuration for buffer settings on destination components.
34+
*/
35+
"buffer"?: ObservabilityPipelineBufferOptions;
3136
/**
3237
* Compression setting for outbound HTTP requests to ClickHouse.
3338
* Can be specified as a shorthand string (`"gzip"` or `"none"`) or as an object
@@ -107,6 +112,10 @@ export class ObservabilityPipelineClickhouseDestination {
107112
baseName: "batch_encoding",
108113
type: "ObservabilityPipelineClickhouseDestinationBatchEncoding",
109114
},
115+
buffer: {
116+
baseName: "buffer",
117+
type: "ObservabilityPipelineBufferOptions",
118+
},
110119
compression: {
111120
baseName: "compression",
112121
type: "ObservabilityPipelineClickhouseDestinationCompression",

0 commit comments

Comments
 (0)