Skip to content

Commit fcdab56

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2ceda4c of spec repo
1 parent c1f424a commit fcdab56

21 files changed

Lines changed: 1492 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63735,6 +63735,199 @@ components:
6373563735
x-enum-varnames:
6373663736
- BLOCK
6373763737
- DROP_NEWEST
63738+
ObservabilityPipelineClickhouseDestination:
63739+
description: |-
63740+
The `clickhouse` destination sends log events to a ClickHouse database table over HTTP.
63741+
63742+
**Supported pipeline types:** logs.
63743+
properties:
63744+
auth:
63745+
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationAuth"
63746+
batch:
63747+
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationBatch"
63748+
batch_encoding:
63749+
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationBatchEncoding"
63750+
compression:
63751+
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationCompression"
63752+
database:
63753+
description: Optional ClickHouse database name. If omitted, the user's default database on the ClickHouse server is used.
63754+
example: my_database
63755+
type: string
63756+
date_time_best_effort:
63757+
description: When `true`, enables flexible DateTime parsing on the ClickHouse server side.
63758+
example: false
63759+
type: boolean
63760+
endpoint_url_key:
63761+
description: |-
63762+
Name of the environment variable or secret that contains the ClickHouse HTTP endpoint URL.
63763+
Defaults to `DESTINATION_CLICKHOUSE_ENDPOINT_URL` (prefixed with `DD_OP_` at runtime).
63764+
example: CLICKHOUSE_ENDPOINT_URL
63765+
type: string
63766+
format:
63767+
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationFormat"
63768+
id:
63769+
description: The unique identifier for this component. Use it to reference this component from other parts of the pipeline.
63770+
example: clickhouse-destination
63771+
type: string
63772+
inputs:
63773+
description: A list of component IDs whose output is used as the `input` for this component.
63774+
example: ["filter-processor"]
63775+
items:
63776+
description: The ID of a component whose output is used as input for this destination.
63777+
type: string
63778+
type: array
63779+
skip_unknown_fields:
63780+
description: |-
63781+
When `true`, fields not present in the target table schema are dropped instead of causing insert errors.
63782+
When unset, the ClickHouse server's own `input_format_skip_unknown_fields` setting applies.
63783+
example: true
63784+
nullable: true
63785+
type: boolean
63786+
table:
63787+
description: Target ClickHouse table name. Events are inserted into this table.
63788+
example: application_logs
63789+
type: string
63790+
tls:
63791+
$ref: "#/components/schemas/ObservabilityPipelineTls"
63792+
type:
63793+
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationType"
63794+
required:
63795+
- id
63796+
- type
63797+
- inputs
63798+
- table
63799+
type: object
63800+
x-pipeline-types: [logs]
63801+
ObservabilityPipelineClickhouseDestinationAuth:
63802+
description: |-
63803+
HTTP Basic Authentication credentials for the ClickHouse destination.
63804+
When `strategy` is `basic`, provide `username_key` and `password_key` that reference environment variables or secrets containing the credentials.
63805+
properties:
63806+
password_key:
63807+
description: Name of the environment variable or secret that contains the ClickHouse password.
63808+
example: CLICKHOUSE_PASSWORD
63809+
type: string
63810+
strategy:
63811+
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationAuthStrategy"
63812+
username_key:
63813+
description: Name of the environment variable or secret that contains the ClickHouse username.
63814+
example: CLICKHOUSE_USERNAME
63815+
type: string
63816+
required:
63817+
- strategy
63818+
type: object
63819+
ObservabilityPipelineClickhouseDestinationAuthStrategy:
63820+
description: The authentication strategy for ClickHouse HTTP requests. Only `basic` is supported.
63821+
enum:
63822+
- basic
63823+
example: basic
63824+
type: string
63825+
x-enum-varnames:
63826+
- BASIC
63827+
ObservabilityPipelineClickhouseDestinationBatch:
63828+
description: Batching configuration for ClickHouse inserts.
63829+
properties:
63830+
max_events:
63831+
description: Maximum number of events per batch before it is flushed.
63832+
example: 1000
63833+
format: int64
63834+
minimum: 1
63835+
type: integer
63836+
timeout_secs:
63837+
description: Maximum number of seconds to wait before flushing a partial batch.
63838+
example: 1
63839+
format: int64
63840+
maximum: 65535
63841+
minimum: 1
63842+
type: integer
63843+
type: object
63844+
ObservabilityPipelineClickhouseDestinationBatchEncoding:
63845+
description: |-
63846+
Batch encoding configuration for the ClickHouse destination.
63847+
Required when `format` is `arrow_stream`. The `codec` field must be set to `arrow_stream`.
63848+
properties:
63849+
allow_nullable_fields:
63850+
description: |-
63851+
When `true`, null values are allowed for non-nullable fields in the ClickHouse schema.
63852+
When `false` (default), missing values for non-nullable columns cause encoding errors.
63853+
example: false
63854+
type: boolean
63855+
codec:
63856+
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationBatchEncodingCodec"
63857+
required:
63858+
- codec
63859+
type: object
63860+
ObservabilityPipelineClickhouseDestinationBatchEncodingCodec:
63861+
description: The codec used for batch encoding. Only `arrow_stream` is supported.
63862+
enum:
63863+
- arrow_stream
63864+
example: arrow_stream
63865+
type: string
63866+
x-enum-varnames:
63867+
- ARROW_STREAM
63868+
ObservabilityPipelineClickhouseDestinationCompression:
63869+
description: |-
63870+
Compression setting for outbound HTTP requests to ClickHouse.
63871+
Can be specified as a shorthand string (`"gzip"` or `"none"`) or as an object
63872+
with an `algorithm` field and an optional `level` (gzip only, 1–9).
63873+
oneOf:
63874+
- $ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationCompressionAlgorithm"
63875+
- $ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationCompressionObject"
63876+
ObservabilityPipelineClickhouseDestinationCompressionAlgorithm:
63877+
description: The compression algorithm applied to outbound HTTP requests.
63878+
enum:
63879+
- gzip
63880+
- none
63881+
example: gzip
63882+
type: string
63883+
x-enum-varnames:
63884+
- GZIP
63885+
- NONE
63886+
ObservabilityPipelineClickhouseDestinationCompressionObject:
63887+
description: |-
63888+
Structured compression configuration for the ClickHouse destination.
63889+
Use `algorithm` to specify the compression type and `level` (optional, gzip only) to control compression strength.
63890+
properties:
63891+
algorithm:
63892+
$ref: "#/components/schemas/ObservabilityPipelineClickhouseDestinationCompressionAlgorithm"
63893+
level:
63894+
description: Compression level (1–9). Only applicable when `algorithm` is `gzip`.
63895+
example: 6
63896+
format: int64
63897+
maximum: 9
63898+
minimum: 1
63899+
type: integer
63900+
required:
63901+
- algorithm
63902+
type: object
63903+
ObservabilityPipelineClickhouseDestinationFormat:
63904+
description: |-
63905+
Insert format for events sent to ClickHouse.
63906+
- `json_each_row`: Maps event fields to columns by name (ClickHouse `JSONEachRow`).
63907+
- `json_as_object`: Inserts each event into a single `Object('json')` / `JSON` column (ClickHouse `JSONAsObject`).
63908+
- `json_as_string`: Inserts each event into a single `String`-typed column as raw JSON (ClickHouse `JSONAsString`).
63909+
- `arrow_stream`: Batches events using Apache Arrow IPC streaming format. Requires `batch_encoding`.
63910+
enum:
63911+
- json_each_row
63912+
- json_as_object
63913+
- json_as_string
63914+
- arrow_stream
63915+
example: json_each_row
63916+
type: string
63917+
x-enum-varnames:
63918+
- JSON_EACH_ROW
63919+
- JSON_AS_OBJECT
63920+
- JSON_AS_STRING
63921+
- ARROW_STREAM
63922+
ObservabilityPipelineClickhouseDestinationType:
63923+
default: clickhouse
63924+
description: The destination type. The value must be `clickhouse`.
63925+
enum:
63926+
- clickhouse
63927+
example: clickhouse
63928+
type: string
63929+
x-enum-varnames:
63930+
- CLICKHOUSE
6373863931
ObservabilityPipelineCloudPremDestination:
6373963932
description: |-
6374063933
The `cloud_prem` destination sends logs to Datadog CloudPrem.
@@ -63834,6 +64027,7 @@ components:
6383464027
- $ref: "#/components/schemas/ObservabilityPipelineAmazonS3GenericDestination"
6383564028
- $ref: "#/components/schemas/ObservabilityPipelineAmazonSecurityLakeDestination"
6383664029
- $ref: "#/components/schemas/AzureStorageDestination"
64030+
- $ref: "#/components/schemas/ObservabilityPipelineClickhouseDestination"
6383764031
- $ref: "#/components/schemas/ObservabilityPipelineCloudPremDestination"
6383864032
- $ref: "#/components/schemas/ObservabilityPipelineCrowdStrikeNextGenSiemDestination"
6383964033
- $ref: "#/components/schemas/ObservabilityPipelineDatadogLogsDestination"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-06-22T20:44:30.778Z

cassettes/features/v2/observability_pipelines/Validate-an-observability-pipeline-with-ClickHouse-destination-arrow-stream-format-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.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-06-22T20:44:32.514Z

cassettes/features/v2/observability_pipelines/Validate-an-observability-pipeline-with-ClickHouse-destination-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: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Validate an observability pipeline with ClickHouse destination 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::ObservabilityPipelineClickhouseDestination.new({
12+
id: "clickhouse-destination",
13+
inputs: [
14+
"my-processor-group",
15+
],
16+
type: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationType::CLICKHOUSE,
17+
table: "application_logs",
18+
database: "my_database",
19+
compression: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationCompressionAlgorithm::GZIP,
20+
auth: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationAuth.new({
21+
strategy: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationAuthStrategy::BASIC,
22+
username_key: "CLICKHOUSE_USERNAME",
23+
password_key: "CLICKHOUSE_PASSWORD",
24+
}),
25+
batch: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationBatch.new({
26+
max_events: 1000,
27+
timeout_secs: 1,
28+
}),
29+
}),
30+
],
31+
processor_groups: [
32+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
33+
enabled: true,
34+
id: "my-processor-group",
35+
include: "service:my-service",
36+
inputs: [
37+
"datadog-agent-source",
38+
],
39+
processors: [
40+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
41+
enabled: true,
42+
id: "filter-processor",
43+
include: "status:error",
44+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
45+
}),
46+
],
47+
}),
48+
],
49+
sources: [
50+
DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSource.new({
51+
id: "datadog-agent-source",
52+
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSourceType::DATADOG_AGENT,
53+
}),
54+
],
55+
}),
56+
name: "Pipeline with ClickHouse Destination",
57+
}),
58+
type: "pipelines",
59+
}),
60+
})
61+
p api_instance.validate_pipeline(body)
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Validate an observability pipeline with ClickHouse destination arrow_stream format 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::ObservabilityPipelineClickhouseDestination.new({
12+
id: "clickhouse-destination",
13+
inputs: [
14+
"my-processor-group",
15+
],
16+
type: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationType::CLICKHOUSE,
17+
table: "application_logs",
18+
database: "my_database",
19+
format: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationFormat::ARROW_STREAM,
20+
batch_encoding: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationBatchEncoding.new({
21+
codec: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationBatchEncodingCodec::ARROW_STREAM,
22+
allow_nullable_fields: false,
23+
}),
24+
compression: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationCompressionAlgorithm::GZIP,
25+
auth: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationAuth.new({
26+
strategy: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationAuthStrategy::BASIC,
27+
username_key: "CLICKHOUSE_USERNAME",
28+
password_key: "CLICKHOUSE_PASSWORD",
29+
}),
30+
batch: DatadogAPIClient::V2::ObservabilityPipelineClickhouseDestinationBatch.new({
31+
max_events: 1000,
32+
timeout_secs: 1,
33+
}),
34+
}),
35+
],
36+
processor_groups: [
37+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
38+
enabled: true,
39+
id: "my-processor-group",
40+
include: "service:my-service",
41+
inputs: [
42+
"datadog-agent-source",
43+
],
44+
processors: [
45+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
46+
enabled: true,
47+
id: "filter-processor",
48+
include: "status:error",
49+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
50+
}),
51+
],
52+
}),
53+
],
54+
sources: [
55+
DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSource.new({
56+
id: "datadog-agent-source",
57+
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSourceType::DATADOG_AGENT,
58+
}),
59+
],
60+
}),
61+
name: "Pipeline with ClickHouse Destination Arrow Stream",
62+
}),
63+
type: "pipelines",
64+
}),
65+
})
66+
p api_instance.validate_pipeline(body)

0 commit comments

Comments
 (0)