Skip to content

Commit d68a0a2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 30e9724 of spec repo
1 parent 9206cb5 commit d68a0a2

20 files changed

Lines changed: 838 additions & 7 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43989,6 +43989,40 @@ components:
4398943989
type: string
4399043990
x-enum-varnames:
4399143991
- ELASTICSEARCH
43992+
ObservabilityPipelineEnrichmentTableFieldEventLookup:
43993+
description: Looks up a value from a field path in the log event.
43994+
properties:
43995+
event:
43996+
description: The path to the field in the log event to use as the lookup key.
43997+
example: log.user.id
43998+
type: string
43999+
required:
44000+
- event
44001+
type: object
44002+
ObservabilityPipelineEnrichmentTableFieldSecretLookup:
44003+
description: Looks up a value stored as a pipeline secret.
44004+
properties:
44005+
secret:
44006+
description: The name of the secret containing the lookup key value.
44007+
example: MY_LOOKUP_SECRET
44008+
type: string
44009+
required:
44010+
- secret
44011+
type: object
44012+
ObservabilityPipelineEnrichmentTableFieldStringPath:
44013+
description: A plain field path in the log event, used as the lookup key.
44014+
example: log.user.id
44015+
type: string
44016+
ObservabilityPipelineEnrichmentTableFieldVrlLookup:
44017+
description: Evaluates a VRL expression to produce the lookup key.
44018+
properties:
44019+
vrl:
44020+
description: A VRL expression that returns the value to use as the lookup key.
44021+
example: .log.user.id
44022+
type: string
44023+
required:
44024+
- vrl
44025+
type: object
4399244026
ObservabilityPipelineEnrichmentTableFile:
4399344027
description: Defines a static enrichment table loaded from a CSV file.
4399444028
properties:
@@ -44039,6 +44073,16 @@ components:
4403944073
type: string
4404044074
x-enum-varnames:
4404144075
- CSV
44076+
ObservabilityPipelineEnrichmentTableFileKeyItemField:
44077+
description: |-
44078+
Specifies the source of the key value used for enrichment table lookups.
44079+
Can be a plain field path string or an object specifying `event`, `vrl`, or `secret`.
44080+
example: log.user.id
44081+
oneOf:
44082+
- $ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFieldStringPath"
44083+
- $ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFieldEventLookup"
44084+
- $ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFieldVrlLookup"
44085+
- $ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFieldSecretLookup"
4404244086
ObservabilityPipelineEnrichmentTableFileKeyItems:
4404344087
description: Defines how to map log fields to enrichment table columns during lookups.
4404444088
properties:
@@ -44049,9 +44093,7 @@ components:
4404944093
comparison:
4405044094
$ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFileKeyItemsComparison"
4405144095
field:
44052-
description: The `items` `field`.
44053-
example: log.user.id
44054-
type: string
44096+
$ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFileKeyItemField"
4405544097
required:
4405644098
- column
4405744099
- comparison
@@ -47072,6 +47114,8 @@ components:
4707247114
description: Name of the environment variable or secret that holds the Splunk HEC token.
4707347115
example: SPLUNK_HEC_TOKEN
4707447116
type: string
47117+
token_strategy:
47118+
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecDestinationTokenStrategy"
4707547119
type:
4707647120
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecDestinationType"
4707747121
required:
@@ -47090,6 +47134,16 @@ components:
4709047134
x-enum-varnames:
4709147135
- JSON
4709247136
- RAW_MESSAGE
47137+
ObservabilityPipelineSplunkHecDestinationTokenStrategy:
47138+
description: Controls how the Splunk HEC token is supplied. Use `custom` to provide a token with `token_key`, or `from_source` to forward the token received from an upstream Splunk HEC source.
47139+
enum:
47140+
- custom
47141+
- from_source
47142+
example: custom
47143+
type: string
47144+
x-enum-varnames:
47145+
- CUSTOM
47146+
- FROM_SOURCE
4709347147
ObservabilityPipelineSplunkHecDestinationType:
4709447148
default: splunk_hec
4709547149
description: The destination type. Always `splunk_hec`.
@@ -47113,6 +47167,12 @@ components:
4711347167
description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
4711447168
example: splunk-hec-source
4711547169
type: string
47170+
store_hec_token:
47171+
description: |-
47172+
When `true`, the Splunk HEC token from the incoming request is stored in the event metadata.
47173+
This allows downstream components to forward the token to other Splunk HEC destinations.
47174+
example: true
47175+
type: boolean
4711647176
tls:
4711747177
$ref: "#/components/schemas/ObservabilityPipelineTls"
4711847178
type:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-04-08T15:11:59.762Z

cassettes/features/v2/observability_pipelines/Validate-an-observability-pipeline-with-Splunk-HEC-destination-token-strategy-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-04-08T15:11:59.370Z

cassettes/features/v2/observability_pipelines/Validate-an-observability-pipeline-with-Splunk-HEC-source-store-hec-token-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-04-09T11:54:29.220Z

cassettes/features/v2/observability_pipelines/Validate-an-observability-pipeline-with-enrichment-table-secret-field-lookup-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: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Validate an observability pipeline with Splunk HEC destination token_strategy 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::ObservabilityPipelineSplunkHecDestination.new({
12+
id: "splunk-hec-destination",
13+
inputs: [
14+
"my-processor-group",
15+
],
16+
type: DatadogAPIClient::V2::ObservabilityPipelineSplunkHecDestinationType::SPLUNK_HEC,
17+
token_key: "SPLUNK_HEC_TOKEN",
18+
token_strategy: DatadogAPIClient::V2::ObservabilityPipelineSplunkHecDestinationTokenStrategy::CUSTOM,
19+
}),
20+
],
21+
processor_groups: [
22+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
23+
enabled: true,
24+
id: "my-processor-group",
25+
include: "service:my-service",
26+
inputs: [
27+
"datadog-agent-source",
28+
],
29+
processors: [
30+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
31+
enabled: true,
32+
id: "filter-processor",
33+
include: "status:error",
34+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
35+
}),
36+
],
37+
}),
38+
],
39+
sources: [
40+
DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSource.new({
41+
id: "datadog-agent-source",
42+
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSourceType::DATADOG_AGENT,
43+
}),
44+
],
45+
}),
46+
name: "Pipeline with Splunk HEC token_strategy",
47+
}),
48+
type: "pipelines",
49+
}),
50+
})
51+
p api_instance.validate_pipeline(body)
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Validate an observability pipeline with Splunk HEC source store_hec_token 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::ObservabilityPipelineDatadogLogsDestination.new({
12+
id: "datadog-logs-destination",
13+
inputs: [
14+
"my-processor-group",
15+
],
16+
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestinationType::DATADOG_LOGS,
17+
}),
18+
],
19+
processor_groups: [
20+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
21+
enabled: true,
22+
id: "my-processor-group",
23+
include: "service:my-service",
24+
inputs: [
25+
"splunk-hec-source",
26+
],
27+
processors: [
28+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
29+
enabled: true,
30+
id: "filter-processor",
31+
include: "status:error",
32+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
33+
}),
34+
],
35+
}),
36+
],
37+
sources: [
38+
DatadogAPIClient::V2::ObservabilityPipelineSplunkHecSource.new({
39+
id: "splunk-hec-source",
40+
type: DatadogAPIClient::V2::ObservabilityPipelineSplunkHecSourceType::SPLUNK_HEC,
41+
store_hec_token: true,
42+
}),
43+
],
44+
}),
45+
name: "Pipeline with Splunk HEC store_hec_token",
46+
}),
47+
type: "pipelines",
48+
}),
49+
})
50+
p api_instance.validate_pipeline(body)
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Validate an observability pipeline with enrichment table secret field lookup 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::ObservabilityPipelineDatadogLogsDestination.new({
12+
id: "datadog-logs-destination",
13+
inputs: [
14+
"my-processor-group",
15+
],
16+
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestinationType::DATADOG_LOGS,
17+
}),
18+
],
19+
processor_groups: [
20+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
21+
enabled: true,
22+
id: "my-processor-group",
23+
include: "service:my-service",
24+
inputs: [
25+
"datadog-agent-source",
26+
],
27+
processors: [
28+
DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableProcessor.new({
29+
enabled: true,
30+
id: "enrichment-processor",
31+
include: "*",
32+
target: "enriched",
33+
type: DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableProcessorType::ENRICHMENT_TABLE,
34+
file: DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableFile.new({
35+
encoding: DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableFileEncoding.new({
36+
delimiter: ",",
37+
type: DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableFileEncodingType::CSV,
38+
includes_headers: true,
39+
}),
40+
key: [
41+
DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableFileKeyItems.new({
42+
column: "user_id",
43+
comparison: DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableFileKeyItemsComparison::EQUALS,
44+
field: DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableFieldSecretLookup.new({
45+
secret: "LOOKUP_KEY_SECRET",
46+
}),
47+
}),
48+
],
49+
path: "/etc/enrichment/lookup.csv",
50+
schema: [
51+
DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableFileSchemaItems.new({
52+
column: "user_id",
53+
type: DatadogAPIClient::V2::ObservabilityPipelineEnrichmentTableFileSchemaItemsType::STRING,
54+
}),
55+
],
56+
}),
57+
}),
58+
],
59+
}),
60+
],
61+
sources: [
62+
DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSource.new({
63+
id: "datadog-agent-source",
64+
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogAgentSourceType::DATADOG_AGENT,
65+
}),
66+
],
67+
}),
68+
name: "Pipeline with Enrichment Table Secret Field Lookup",
69+
}),
70+
type: "pipelines",
71+
}),
72+
})
73+
p api_instance.validate_pipeline(body)

0 commit comments

Comments
 (0)