Skip to content

Commit b29582c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 98aea43 of spec repo
1 parent a36c0ba commit b29582c

11 files changed

+788
-6
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "f2ae7eb",
3-
"generated": "2025-07-17 19:54:51.613"
2+
"spec_repo_commit": "98aea43",
3+
"generated": "2025-07-17 21:14:30.171"
44
}

.generator/schemas/v1/openapi.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5547,6 +5547,72 @@ components:
55475547
type: string
55485548
x-enum-varnames:
55495549
- DATE_REMAPPER
5550+
LogsDecoderProcessor:
5551+
description: 'The decoder processor decodes any source attribute containing
5552+
a
5553+
5554+
base64/base16-encoded UTF-8/ASCII string back to its original value, storing
5555+
the
5556+
5557+
result in a target attribute.'
5558+
properties:
5559+
binary_to_text_encoding:
5560+
$ref: '#/components/schemas/LogsDecoderProcessorBinaryToTextEncoding'
5561+
input_representation:
5562+
$ref: '#/components/schemas/LogsDecoderProcessorInputRepresentation'
5563+
is_enabled:
5564+
default: false
5565+
description: Whether the processor is enabled.
5566+
type: boolean
5567+
name:
5568+
description: Name of the processor.
5569+
type: string
5570+
source:
5571+
description: Name of the log attribute with the encoded data.
5572+
example: encoded_message
5573+
type: string
5574+
target:
5575+
description: Name of the log attribute that contains the decoded data.
5576+
example: decoded_message
5577+
type: string
5578+
type:
5579+
$ref: '#/components/schemas/LogsDecoderProcessorType'
5580+
required:
5581+
- source
5582+
- target
5583+
- binary_to_text_encoding
5584+
- input_representation
5585+
- type
5586+
type: object
5587+
LogsDecoderProcessorBinaryToTextEncoding:
5588+
description: The encoding used to represent the binary data.
5589+
enum:
5590+
- base64
5591+
- base16
5592+
example: base64
5593+
type: string
5594+
x-enum-varnames:
5595+
- BASE64
5596+
- BASE16
5597+
LogsDecoderProcessorInputRepresentation:
5598+
description: The original representation of input string.
5599+
enum:
5600+
- utf_8
5601+
- integer
5602+
example: utf_8
5603+
type: string
5604+
x-enum-varnames:
5605+
- UTF_8
5606+
- INTEGER
5607+
LogsDecoderProcessorType:
5608+
default: decoder-processor
5609+
description: Type of logs decoder processor.
5610+
enum:
5611+
- decoder-processor
5612+
example: decoder-processor
5613+
type: string
5614+
x-enum-varnames:
5615+
- DECODER_PROCESSOR
55505616
LogsExclusion:
55515617
description: Represents the index exclusion filter object from configuration
55525618
API.
@@ -6215,6 +6281,7 @@ components:
62156281
- $ref: '#/components/schemas/LogsTraceRemapper'
62166282
- $ref: '#/components/schemas/LogsSpanRemapper'
62176283
- $ref: '#/components/schemas/LogsArrayProcessor'
6284+
- $ref: '#/components/schemas/LogsDecoderProcessor'
62186285
LogsQueryCompute:
62196286
description: Define computation for a log query.
62206287
properties:
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Create a pipeline with Decoder Processor 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.LogsDecoderProcessor;
7+
import com.datadog.api.client.v1.model.LogsDecoderProcessorBinaryToTextEncoding;
8+
import com.datadog.api.client.v1.model.LogsDecoderProcessorInputRepresentation;
9+
import com.datadog.api.client.v1.model.LogsDecoderProcessorType;
10+
import com.datadog.api.client.v1.model.LogsFilter;
11+
import com.datadog.api.client.v1.model.LogsPipeline;
12+
import com.datadog.api.client.v1.model.LogsProcessor;
13+
import java.util.Collections;
14+
15+
public class Example {
16+
public static void main(String[] args) {
17+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
18+
LogsPipelinesApi apiInstance = new LogsPipelinesApi(defaultClient);
19+
20+
LogsPipeline body =
21+
new LogsPipeline()
22+
.filter(new LogsFilter().query("source:python"))
23+
.name("testDecoderProcessor")
24+
.processors(
25+
Collections.singletonList(
26+
new LogsProcessor(
27+
new LogsDecoderProcessor()
28+
.type(LogsDecoderProcessorType.DECODER_PROCESSOR)
29+
.isEnabled(true)
30+
.name("test_decoder")
31+
.source("encoded_message")
32+
.target("decoded_message")
33+
.binaryToTextEncoding(LogsDecoderProcessorBinaryToTextEncoding.BASE16)
34+
.inputRepresentation(LogsDecoderProcessorInputRepresentation.UTF_8))));
35+
36+
try {
37+
LogsPipeline result = apiInstance.createLogsPipeline(body);
38+
System.out.println(result);
39+
} catch (ApiException e) {
40+
System.err.println("Exception when calling LogsPipelinesApi#createLogsPipeline");
41+
System.err.println("Status code: " + e.getCode());
42+
System.err.println("Reason: " + e.getResponseBody());
43+
System.err.println("Response headers: " + e.getResponseHeaders());
44+
e.printStackTrace();
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)