Skip to content

Commit e861425

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a435f1bd of spec repo
1 parent 0ba89bd commit e861425

18 files changed

+2065
-8
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-26 17:56:33.436535",
8-
"spec_repo_commit": "76086f13"
7+
"regenerated": "2025-06-27 13:26:00.996431",
8+
"spec_repo_commit": "a435f1bd"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-26 17:56:33.454744",
13-
"spec_repo_commit": "76086f13"
12+
"regenerated": "2025-06-27 13:26:01.012733",
13+
"spec_repo_commit": "a435f1bd"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5156,6 +5156,143 @@ components:
51565156
type: string
51575157
x-enum-varnames:
51585158
- ARITHMETIC_PROCESSOR
5159+
LogsArrayProcessor:
5160+
description: 'A processor for extracting, aggregating, or transforming values
5161+
from JSON arrays within your logs.
5162+
5163+
Supported operations are:
5164+
5165+
- Select value from matching element
5166+
5167+
- Compute array length
5168+
5169+
- Append a value to an array'
5170+
properties:
5171+
is_enabled:
5172+
default: false
5173+
description: Whether or not the processor is enabled.
5174+
type: boolean
5175+
name:
5176+
description: Name of the processor.
5177+
type: string
5178+
operation:
5179+
$ref: '#/components/schemas/LogsArrayProcessorOperation'
5180+
type:
5181+
$ref: '#/components/schemas/LogsArrayProcessorType'
5182+
required:
5183+
- operation
5184+
- type
5185+
type: object
5186+
LogsArrayProcessorOperation:
5187+
description: Configuration of the array processor operation to perform.
5188+
oneOf:
5189+
- $ref: '#/components/schemas/LogsArrayProcessorOperationAppend'
5190+
- $ref: '#/components/schemas/LogsArrayProcessorOperationLength'
5191+
- $ref: '#/components/schemas/LogsArrayProcessorOperationSelect'
5192+
LogsArrayProcessorOperationAppend:
5193+
description: Operation that appends a value to a target array attribute.
5194+
properties:
5195+
preserve_source:
5196+
default: true
5197+
description: Remove or preserve the remapped source element.
5198+
type: boolean
5199+
source:
5200+
description: Attribute path containing the value to append.
5201+
example: network.client.ip
5202+
type: string
5203+
target:
5204+
description: Attribute path of the array to append to.
5205+
example: sourceIps
5206+
type: string
5207+
type:
5208+
$ref: '#/components/schemas/LogsArrayProcessorOperationAppendType'
5209+
required:
5210+
- type
5211+
- source
5212+
- target
5213+
type: object
5214+
LogsArrayProcessorOperationAppendType:
5215+
description: Operation type.
5216+
enum:
5217+
- append
5218+
example: append
5219+
type: string
5220+
x-enum-varnames:
5221+
- APPEND
5222+
LogsArrayProcessorOperationLength:
5223+
description: Operation that computes the length of a `source` array and stores
5224+
the result in the `target` attribute.
5225+
properties:
5226+
source:
5227+
description: Attribute path of the array to measure.
5228+
example: tags
5229+
type: string
5230+
target:
5231+
description: Attribute that receives the computed length.
5232+
example: tagCount
5233+
type: string
5234+
type:
5235+
$ref: '#/components/schemas/LogsArrayProcessorOperationLengthType'
5236+
required:
5237+
- type
5238+
- source
5239+
- target
5240+
type: object
5241+
LogsArrayProcessorOperationLengthType:
5242+
description: Operation type.
5243+
enum:
5244+
- length
5245+
example: length
5246+
type: string
5247+
x-enum-varnames:
5248+
- LENGTH
5249+
LogsArrayProcessorOperationSelect:
5250+
description: Operation that finds an object in a `source` array using a `filter`,
5251+
and then extracts a specific value into the `target` attribute.
5252+
properties:
5253+
filter:
5254+
description: Filter condition expressed as `key:value` used to find the
5255+
matching element.
5256+
example: name:Referrer
5257+
type: string
5258+
source:
5259+
description: Attribute path of the array to search into.
5260+
example: httpRequest.headers
5261+
type: string
5262+
target:
5263+
description: Attribute that receives the extracted value.
5264+
example: referrer
5265+
type: string
5266+
type:
5267+
$ref: '#/components/schemas/LogsArrayProcessorOperationSelectType'
5268+
value_to_extract:
5269+
description: Key of the value to extract from the matching element.
5270+
example: value
5271+
type: string
5272+
required:
5273+
- type
5274+
- source
5275+
- target
5276+
- filter
5277+
- value_to_extract
5278+
type: object
5279+
LogsArrayProcessorOperationSelectType:
5280+
description: Operation type.
5281+
enum:
5282+
- select
5283+
example: select
5284+
type: string
5285+
x-enum-varnames:
5286+
- SELECT
5287+
LogsArrayProcessorType:
5288+
default: array-processor
5289+
description: Type of logs array processor.
5290+
enum:
5291+
- array-processor
5292+
example: array-processor
5293+
type: string
5294+
x-enum-varnames:
5295+
- ARRAY_PROCESSOR
51595296
LogsAttributeRemapper:
51605297
description: 'The remapper processor remaps any source attribute(s) or tag to
51615298
another target attribute or tag.
@@ -6053,6 +6190,7 @@ components:
60536190
- $ref: '#/components/schemas/ReferenceTableLogsLookupProcessor'
60546191
- $ref: '#/components/schemas/LogsTraceRemapper'
60556192
- $ref: '#/components/schemas/LogsSpanRemapper'
6193+
- $ref: '#/components/schemas/LogsArrayProcessor'
60566194
LogsQueryCompute:
60576195
description: Define computation for a log query.
60586196
properties:
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Create a pipeline with Array Processor Append Operation returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v1.api.LogsPipelinesApi;
6+
import com.datadog.api.client.v1.model.LogsArrayProcessor;
7+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperation;
8+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperationAppend;
9+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperationAppendType;
10+
import com.datadog.api.client.v1.model.LogsArrayProcessorType;
11+
import com.datadog.api.client.v1.model.LogsFilter;
12+
import com.datadog.api.client.v1.model.LogsPipeline;
13+
import com.datadog.api.client.v1.model.LogsProcessor;
14+
import java.util.Collections;
15+
16+
public class Example {
17+
public static void main(String[] args) {
18+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
19+
LogsPipelinesApi apiInstance = new LogsPipelinesApi(defaultClient);
20+
21+
LogsPipeline body =
22+
new LogsPipeline()
23+
.filter(new LogsFilter().query("source:python"))
24+
.name("testPipelineArrayAppend")
25+
.processors(
26+
Collections.singletonList(
27+
new LogsProcessor(
28+
new LogsArrayProcessor()
29+
.type(LogsArrayProcessorType.ARRAY_PROCESSOR)
30+
.isEnabled(true)
31+
.name("append_ip_to_array")
32+
.operation(
33+
new LogsArrayProcessorOperation(
34+
new LogsArrayProcessorOperationAppend()
35+
.type(LogsArrayProcessorOperationAppendType.APPEND)
36+
.source("network.client.ip")
37+
.target("sourceIps"))))));
38+
39+
try {
40+
LogsPipeline result = apiInstance.createLogsPipeline(body);
41+
System.out.println(result);
42+
} catch (ApiException e) {
43+
System.err.println("Exception when calling LogsPipelinesApi#createLogsPipeline");
44+
System.err.println("Status code: " + e.getCode());
45+
System.err.println("Reason: " + e.getResponseBody());
46+
System.err.println("Response headers: " + e.getResponseHeaders());
47+
e.printStackTrace();
48+
}
49+
}
50+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Create a pipeline with Array Processor Select Operation returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v1.api.LogsPipelinesApi;
6+
import com.datadog.api.client.v1.model.LogsArrayProcessor;
7+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperation;
8+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperationSelect;
9+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperationSelectType;
10+
import com.datadog.api.client.v1.model.LogsArrayProcessorType;
11+
import com.datadog.api.client.v1.model.LogsFilter;
12+
import com.datadog.api.client.v1.model.LogsPipeline;
13+
import com.datadog.api.client.v1.model.LogsProcessor;
14+
import java.util.Collections;
15+
16+
public class Example {
17+
public static void main(String[] args) {
18+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
19+
LogsPipelinesApi apiInstance = new LogsPipelinesApi(defaultClient);
20+
21+
LogsPipeline body =
22+
new LogsPipeline()
23+
.filter(new LogsFilter().query("source:python"))
24+
.name("testPipelineArraySelect")
25+
.processors(
26+
Collections.singletonList(
27+
new LogsProcessor(
28+
new LogsArrayProcessor()
29+
.type(LogsArrayProcessorType.ARRAY_PROCESSOR)
30+
.isEnabled(true)
31+
.name("extract_referrer")
32+
.operation(
33+
new LogsArrayProcessorOperation(
34+
new LogsArrayProcessorOperationSelect()
35+
.type(LogsArrayProcessorOperationSelectType.SELECT)
36+
.source("httpRequest.headers")
37+
.target("referrer")
38+
.filter("name:Referrer")
39+
.valueToExtract("value"))))));
40+
41+
try {
42+
LogsPipeline result = apiInstance.createLogsPipeline(body);
43+
System.out.println(result);
44+
} catch (ApiException e) {
45+
System.err.println("Exception when calling LogsPipelinesApi#createLogsPipeline");
46+
System.err.println("Status code: " + e.getCode());
47+
System.err.println("Reason: " + e.getResponseBody());
48+
System.err.println("Response headers: " + e.getResponseHeaders());
49+
e.printStackTrace();
50+
}
51+
}
52+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Create a pipeline with Array Processor Length Operation returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v1.api.LogsPipelinesApi;
6+
import com.datadog.api.client.v1.model.LogsArrayProcessor;
7+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperation;
8+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperationLength;
9+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperationLengthType;
10+
import com.datadog.api.client.v1.model.LogsArrayProcessorType;
11+
import com.datadog.api.client.v1.model.LogsFilter;
12+
import com.datadog.api.client.v1.model.LogsPipeline;
13+
import com.datadog.api.client.v1.model.LogsProcessor;
14+
import java.util.Collections;
15+
16+
public class Example {
17+
public static void main(String[] args) {
18+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
19+
LogsPipelinesApi apiInstance = new LogsPipelinesApi(defaultClient);
20+
21+
LogsPipeline body =
22+
new LogsPipeline()
23+
.filter(new LogsFilter().query("source:python"))
24+
.name("testPipelineArrayLength")
25+
.processors(
26+
Collections.singletonList(
27+
new LogsProcessor(
28+
new LogsArrayProcessor()
29+
.type(LogsArrayProcessorType.ARRAY_PROCESSOR)
30+
.isEnabled(true)
31+
.name("count_tags")
32+
.operation(
33+
new LogsArrayProcessorOperation(
34+
new LogsArrayProcessorOperationLength()
35+
.type(LogsArrayProcessorOperationLengthType.LENGTH)
36+
.source("tags")
37+
.target("tagCount"))))));
38+
39+
try {
40+
LogsPipeline result = apiInstance.createLogsPipeline(body);
41+
System.out.println(result);
42+
} catch (ApiException e) {
43+
System.err.println("Exception when calling LogsPipelinesApi#createLogsPipeline");
44+
System.err.println("Status code: " + e.getCode());
45+
System.err.println("Reason: " + e.getResponseBody());
46+
System.err.println("Response headers: " + e.getResponseHeaders());
47+
e.printStackTrace();
48+
}
49+
}
50+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Create a pipeline with Array Processor Append Operation with preserve_source true returns "OK"
2+
// response
3+
4+
import com.datadog.api.client.ApiClient;
5+
import com.datadog.api.client.ApiException;
6+
import com.datadog.api.client.v1.api.LogsPipelinesApi;
7+
import com.datadog.api.client.v1.model.LogsArrayProcessor;
8+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperation;
9+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperationAppend;
10+
import com.datadog.api.client.v1.model.LogsArrayProcessorOperationAppendType;
11+
import com.datadog.api.client.v1.model.LogsArrayProcessorType;
12+
import com.datadog.api.client.v1.model.LogsFilter;
13+
import com.datadog.api.client.v1.model.LogsPipeline;
14+
import com.datadog.api.client.v1.model.LogsProcessor;
15+
import java.util.Collections;
16+
17+
public class Example {
18+
public static void main(String[] args) {
19+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
20+
LogsPipelinesApi apiInstance = new LogsPipelinesApi(defaultClient);
21+
22+
LogsPipeline body =
23+
new LogsPipeline()
24+
.filter(new LogsFilter().query("source:python"))
25+
.name("testPipelineArrayAppendPreserve")
26+
.processors(
27+
Collections.singletonList(
28+
new LogsProcessor(
29+
new LogsArrayProcessor()
30+
.type(LogsArrayProcessorType.ARRAY_PROCESSOR)
31+
.isEnabled(true)
32+
.name("append_ip_and_keep_source")
33+
.operation(
34+
new LogsArrayProcessorOperation(
35+
new LogsArrayProcessorOperationAppend()
36+
.type(LogsArrayProcessorOperationAppendType.APPEND)
37+
.source("network.client.ip")
38+
.target("sourceIps")
39+
.preserveSource(true))))));
40+
41+
try {
42+
LogsPipeline result = apiInstance.createLogsPipeline(body);
43+
System.out.println(result);
44+
} catch (ApiException e) {
45+
System.err.println("Exception when calling LogsPipelinesApi#createLogsPipeline");
46+
System.err.println("Status code: " + e.getCode());
47+
System.err.println("Reason: " + e.getResponseBody());
48+
System.err.println("Response headers: " + e.getResponseHeaders());
49+
e.printStackTrace();
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)