Skip to content

Commit 3acf1e1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2651fb1 of spec repo
1 parent b35ba40 commit 3acf1e1

File tree

21 files changed

+740
-7
lines changed

21 files changed

+740
-7
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43973,6 +43973,36 @@ components:
4397343973
type: string
4397443974
x-enum-varnames:
4397543975
- ELASTICSEARCH
43976+
ObservabilityPipelineEnrichmentTableFieldEventLookup:
43977+
description: Specifies an event field path to use as the enrichment table lookup key.
43978+
properties:
43979+
event:
43980+
description: Path to the field in the log event.
43981+
example: log.user.id
43982+
type: string
43983+
required:
43984+
- event
43985+
type: object
43986+
ObservabilityPipelineEnrichmentTableFieldSecretLookup:
43987+
description: Specifies a secret reference to use as the enrichment table lookup key.
43988+
properties:
43989+
secret:
43990+
description: The name of the secret whose value is used as the lookup key.
43991+
example: LOOKUP_KEY_SECRET
43992+
type: string
43993+
required:
43994+
- secret
43995+
type: object
43996+
ObservabilityPipelineEnrichmentTableFieldVrlLookup:
43997+
description: Specifies a VRL expression to compute the enrichment table lookup key.
43998+
properties:
43999+
vrl:
44000+
description: A VRL expression that resolves to the lookup key value.
44001+
example: .user_id
44002+
type: string
44003+
required:
44004+
- vrl
44005+
type: object
4397644006
ObservabilityPipelineEnrichmentTableFile:
4397744007
description: Defines a static enrichment table loaded from a CSV file.
4397844008
properties:
@@ -44023,6 +44053,18 @@ components:
4402344053
type: string
4402444054
x-enum-varnames:
4402544055
- CSV
44056+
ObservabilityPipelineEnrichmentTableFileKeyItemField:
44057+
description: |-
44058+
Specifies the source of the key value used for enrichment table lookups.
44059+
Can be a plain field path string, or an object specifying the lookup type (`event`, `vrl`, or `secret`).
44060+
example: log.user.id
44061+
oneOf:
44062+
- description: A plain field path in the log event.
44063+
example: log.user.id
44064+
type: string
44065+
- $ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFieldEventLookup"
44066+
- $ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFieldVrlLookup"
44067+
- $ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFieldSecretLookup"
4402644068
ObservabilityPipelineEnrichmentTableFileKeyItems:
4402744069
description: Defines how to map log fields to enrichment table columns during lookups.
4402844070
properties:
@@ -44033,9 +44075,7 @@ components:
4403344075
comparison:
4403444076
$ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFileKeyItemsComparison"
4403544077
field:
44036-
description: The `items` `field`.
44037-
example: log.user.id
44038-
type: string
44078+
$ref: "#/components/schemas/ObservabilityPipelineEnrichmentTableFileKeyItemField"
4403944079
required:
4404044080
- column
4404144081
- comparison
@@ -47056,6 +47096,8 @@ components:
4705647096
description: Name of the environment variable or secret that holds the Splunk HEC token.
4705747097
example: SPLUNK_HEC_TOKEN
4705847098
type: string
47099+
token_strategy:
47100+
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecDestinationTokenStrategy"
4705947101
type:
4706047102
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecDestinationType"
4706147103
required:
@@ -47074,6 +47116,16 @@ components:
4707447116
x-enum-varnames:
4707547117
- JSON
4707647118
- RAW_MESSAGE
47119+
ObservabilityPipelineSplunkHecDestinationTokenStrategy:
47120+
description: Controls how the Splunk HEC token is supplied. Use `custom` to provide a token via `token_key`, or `from_source` to forward the token received from an upstream Splunk HEC source.
47121+
enum:
47122+
- custom
47123+
- from_source
47124+
example: custom
47125+
type: string
47126+
x-enum-varnames:
47127+
- CUSTOM
47128+
- FROM_SOURCE
4707747129
ObservabilityPipelineSplunkHecDestinationType:
4707847130
default: splunk_hec
4707947131
description: The destination type. Always `splunk_hec`.
@@ -47097,6 +47149,12 @@ components:
4709747149
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).
4709847150
example: splunk-hec-source
4709947151
type: string
47152+
store_hec_token:
47153+
description: |-
47154+
When `true`, the Splunk HEC token from the incoming request is stored in the event.
47155+
This allows downstream components to forward the token to other Splunk HEC destinations.
47156+
example: true
47157+
type: boolean
4710047158
tls:
4710147159
$ref: "#/components/schemas/ObservabilityPipelineTls"
4710247160
type:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-04-08T15:11:59.762Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Observability Pipelines/Validate an observability pipeline with Splunk HEC destination token_strategy returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "71464a8fa8e1502453de0fde42aaea8c",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 553,
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": 583,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"config\":{\"destinations\":[{\"id\":\"splunk-hec-destination\",\"inputs\":[\"my-processor-group\"],\"token_key\":\"SPLUNK_HEC_TOKEN\",\"token_strategy\":\"custom\",\"type\":\"splunk_hec\"}],\"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 Splunk HEC token_strategy\"},\"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": 370,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2026-04-08T15:11:59.764Z",
61+
"time": 370
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-04-08T15:11:59.370Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Observability Pipelines/Validate an observability pipeline with Splunk HEC source store_hec_token returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "af5cae27d9df78c907ef82b805cf3c0f",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 515,
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": 583,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"my-processor-group\"],\"type\":\"datadog_logs\"}],\"processor_groups\":[{\"enabled\":true,\"id\":\"my-processor-group\",\"include\":\"service:my-service\",\"inputs\":[\"splunk-hec-source\"],\"processors\":[{\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"splunk-hec-source\",\"store_hec_token\":true,\"type\":\"splunk_hec\"}]},\"name\":\"Pipeline with Splunk HEC store_hec_token\"},\"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": 369,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2026-04-08T15:11:59.373Z",
61+
"time": 383
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-04-08T15:12:00.140Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Observability Pipelines/Validate an observability pipeline with enrichment table secret field lookup returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "df9c8c32fbd4dea286796af74e2e30fb",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 776,
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": 583,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"my-processor-group\"],\"type\":\"datadog_logs\"}],\"processor_groups\":[{\"enabled\":true,\"id\":\"my-processor-group\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"enabled\":true,\"file\":{\"encoding\":{\"delimiter\":\",\",\"includes_headers\":true,\"type\":\"csv\"},\"key\":[{\"column\":\"user_id\",\"comparison\":\"equals\",\"field\":{\"secret\":\"LOOKUP_KEY_SECRET\"}}],\"path\":\"/etc/enrichment/lookup.csv\",\"schema\":[{\"column\":\"user_id\",\"type\":\"string\"}]},\"id\":\"enrichment-processor\",\"include\":\"*\",\"target\":\"enriched\",\"type\":\"enrichment_table\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]},\"name\":\"Pipeline with Enrichment Table Secret Field\"},\"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": 370,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2026-04-08T15:12:00.144Z",
61+
"time": 378
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/**
2+
* Validate an observability pipeline with Splunk HEC destination token_strategy returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.ObservabilityPipelinesApi(configuration);
9+
10+
const params: v2.ObservabilityPipelinesApiValidatePipelineRequest = {
11+
body: {
12+
data: {
13+
attributes: {
14+
config: {
15+
destinations: [
16+
{
17+
id: "splunk-hec-destination",
18+
inputs: ["my-processor-group"],
19+
type: "splunk_hec",
20+
tokenKey: "SPLUNK_HEC_TOKEN",
21+
tokenStrategy: "custom",
22+
},
23+
],
24+
processorGroups: [
25+
{
26+
enabled: true,
27+
id: "my-processor-group",
28+
include: "service:my-service",
29+
inputs: ["datadog-agent-source"],
30+
processors: [
31+
{
32+
enabled: true,
33+
id: "filter-processor",
34+
include: "status:error",
35+
type: "filter",
36+
},
37+
],
38+
},
39+
],
40+
sources: [
41+
{
42+
id: "datadog-agent-source",
43+
type: "datadog_agent",
44+
},
45+
],
46+
},
47+
name: "Pipeline with Splunk HEC token_strategy",
48+
},
49+
type: "pipelines",
50+
},
51+
},
52+
};
53+
54+
apiInstance
55+
.validatePipeline(params)
56+
.then((data: v2.ValidationResponse) => {
57+
console.log(
58+
"API called successfully. Returned data: " + JSON.stringify(data)
59+
);
60+
})
61+
.catch((error: any) => console.error(error));

0 commit comments

Comments
 (0)