Skip to content

Commit 81d3b70

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 72a9f6a of spec repo
1 parent 42ce8d5 commit 81d3b70

15 files changed

+426
-2
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": "bd643af",
3-
"generated": "2025-07-22 16:43:14.580"
2+
"spec_repo_commit": "72a9f6a",
3+
"generated": "2025-07-23 08:34:24.106"
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.field
5573+
type: string
5574+
target:
5575+
description: Name of the log attribute that contains the decoded data.
5576+
example: decoded.field
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:

docs/datadog_api_client.v1.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,6 +1719,34 @@ datadog\_api\_client.v1.model.logs\_date\_remapper\_type module
17191719
:members:
17201720
:show-inheritance:
17211721

1722+
datadog\_api\_client.v1.model.logs\_decoder\_processor module
1723+
-------------------------------------------------------------
1724+
1725+
.. automodule:: datadog_api_client.v1.model.logs_decoder_processor
1726+
:members:
1727+
:show-inheritance:
1728+
1729+
datadog\_api\_client.v1.model.logs\_decoder\_processor\_binary\_to\_text\_encoding module
1730+
-----------------------------------------------------------------------------------------
1731+
1732+
.. automodule:: datadog_api_client.v1.model.logs_decoder_processor_binary_to_text_encoding
1733+
:members:
1734+
:show-inheritance:
1735+
1736+
datadog\_api\_client.v1.model.logs\_decoder\_processor\_input\_representation module
1737+
------------------------------------------------------------------------------------
1738+
1739+
.. automodule:: datadog_api_client.v1.model.logs_decoder_processor_input_representation
1740+
:members:
1741+
:show-inheritance:
1742+
1743+
datadog\_api\_client.v1.model.logs\_decoder\_processor\_type module
1744+
-------------------------------------------------------------------
1745+
1746+
.. automodule:: datadog_api_client.v1.model.logs_decoder_processor_type
1747+
:members:
1748+
:show-inheritance:
1749+
17221750
datadog\_api\_client.v1.model.logs\_exclusion module
17231751
----------------------------------------------------
17241752

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
"""
2+
Create a pipeline with Decoder Processor returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v1.api.logs_pipelines_api import LogsPipelinesApi
7+
from datadog_api_client.v1.model.logs_decoder_processor import LogsDecoderProcessor
8+
from datadog_api_client.v1.model.logs_decoder_processor_binary_to_text_encoding import (
9+
LogsDecoderProcessorBinaryToTextEncoding,
10+
)
11+
from datadog_api_client.v1.model.logs_decoder_processor_input_representation import (
12+
LogsDecoderProcessorInputRepresentation,
13+
)
14+
from datadog_api_client.v1.model.logs_decoder_processor_type import LogsDecoderProcessorType
15+
from datadog_api_client.v1.model.logs_filter import LogsFilter
16+
from datadog_api_client.v1.model.logs_pipeline import LogsPipeline
17+
18+
body = LogsPipeline(
19+
filter=LogsFilter(
20+
query="source:python",
21+
),
22+
name="testDecoderProcessor",
23+
processors=[
24+
LogsDecoderProcessor(
25+
type=LogsDecoderProcessorType.DECODER_PROCESSOR,
26+
is_enabled=True,
27+
name="test_decoder",
28+
source="encoded.field",
29+
target="decoded.field",
30+
binary_to_text_encoding=LogsDecoderProcessorBinaryToTextEncoding.BASE16,
31+
input_representation=LogsDecoderProcessorInputRepresentation.UTF_8,
32+
),
33+
],
34+
tags=[],
35+
)
36+
37+
configuration = Configuration()
38+
with ApiClient(configuration) as api_client:
39+
api_instance = LogsPipelinesApi(api_client)
40+
response = api_instance.create_logs_pipeline(body=body)
41+
42+
print(response)
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v1.model.logs_decoder_processor_binary_to_text_encoding import (
18+
LogsDecoderProcessorBinaryToTextEncoding,
19+
)
20+
from datadog_api_client.v1.model.logs_decoder_processor_input_representation import (
21+
LogsDecoderProcessorInputRepresentation,
22+
)
23+
from datadog_api_client.v1.model.logs_decoder_processor_type import LogsDecoderProcessorType
24+
25+
26+
class LogsDecoderProcessor(ModelNormal):
27+
@cached_property
28+
def openapi_types(_):
29+
from datadog_api_client.v1.model.logs_decoder_processor_binary_to_text_encoding import (
30+
LogsDecoderProcessorBinaryToTextEncoding,
31+
)
32+
from datadog_api_client.v1.model.logs_decoder_processor_input_representation import (
33+
LogsDecoderProcessorInputRepresentation,
34+
)
35+
from datadog_api_client.v1.model.logs_decoder_processor_type import LogsDecoderProcessorType
36+
37+
return {
38+
"binary_to_text_encoding": (LogsDecoderProcessorBinaryToTextEncoding,),
39+
"input_representation": (LogsDecoderProcessorInputRepresentation,),
40+
"is_enabled": (bool,),
41+
"name": (str,),
42+
"source": (str,),
43+
"target": (str,),
44+
"type": (LogsDecoderProcessorType,),
45+
}
46+
47+
attribute_map = {
48+
"binary_to_text_encoding": "binary_to_text_encoding",
49+
"input_representation": "input_representation",
50+
"is_enabled": "is_enabled",
51+
"name": "name",
52+
"source": "source",
53+
"target": "target",
54+
"type": "type",
55+
}
56+
57+
def __init__(
58+
self_,
59+
binary_to_text_encoding: LogsDecoderProcessorBinaryToTextEncoding,
60+
input_representation: LogsDecoderProcessorInputRepresentation,
61+
source: str,
62+
target: str,
63+
type: LogsDecoderProcessorType,
64+
is_enabled: Union[bool, UnsetType] = unset,
65+
name: Union[str, UnsetType] = unset,
66+
**kwargs,
67+
):
68+
"""
69+
The decoder processor decodes any source attribute containing a
70+
base64/base16-encoded UTF-8/ASCII string back to its original value, storing the
71+
result in a target attribute.
72+
73+
:param binary_to_text_encoding: The encoding used to represent the binary data.
74+
:type binary_to_text_encoding: LogsDecoderProcessorBinaryToTextEncoding
75+
76+
:param input_representation: The original representation of input string.
77+
:type input_representation: LogsDecoderProcessorInputRepresentation
78+
79+
:param is_enabled: Whether the processor is enabled.
80+
:type is_enabled: bool, optional
81+
82+
:param name: Name of the processor.
83+
:type name: str, optional
84+
85+
:param source: Name of the log attribute with the encoded data.
86+
:type source: str
87+
88+
:param target: Name of the log attribute that contains the decoded data.
89+
:type target: str
90+
91+
:param type: Type of logs decoder processor.
92+
:type type: LogsDecoderProcessorType
93+
"""
94+
if is_enabled is not unset:
95+
kwargs["is_enabled"] = is_enabled
96+
if name is not unset:
97+
kwargs["name"] = name
98+
super().__init__(kwargs)
99+
100+
self_.binary_to_text_encoding = binary_to_text_encoding
101+
self_.input_representation = input_representation
102+
self_.source = source
103+
self_.target = target
104+
self_.type = type
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class LogsDecoderProcessorBinaryToTextEncoding(ModelSimple):
16+
"""
17+
The encoding used to represent the binary data.
18+
19+
:param value: Must be one of ["base64", "base16"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"base64",
25+
"base16",
26+
}
27+
BASE64: ClassVar["LogsDecoderProcessorBinaryToTextEncoding"]
28+
BASE16: ClassVar["LogsDecoderProcessorBinaryToTextEncoding"]
29+
30+
@cached_property
31+
def openapi_types(_):
32+
return {
33+
"value": (str,),
34+
}
35+
36+
37+
LogsDecoderProcessorBinaryToTextEncoding.BASE64 = LogsDecoderProcessorBinaryToTextEncoding("base64")
38+
LogsDecoderProcessorBinaryToTextEncoding.BASE16 = LogsDecoderProcessorBinaryToTextEncoding("base16")
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class LogsDecoderProcessorInputRepresentation(ModelSimple):
16+
"""
17+
The original representation of input string.
18+
19+
:param value: Must be one of ["utf_8", "integer"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"utf_8",
25+
"integer",
26+
}
27+
UTF_8: ClassVar["LogsDecoderProcessorInputRepresentation"]
28+
INTEGER: ClassVar["LogsDecoderProcessorInputRepresentation"]
29+
30+
@cached_property
31+
def openapi_types(_):
32+
return {
33+
"value": (str,),
34+
}
35+
36+
37+
LogsDecoderProcessorInputRepresentation.UTF_8 = LogsDecoderProcessorInputRepresentation("utf_8")
38+
LogsDecoderProcessorInputRepresentation.INTEGER = LogsDecoderProcessorInputRepresentation("integer")
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class LogsDecoderProcessorType(ModelSimple):
16+
"""
17+
Type of logs decoder processor.
18+
19+
:param value: If omitted defaults to "decoder-processor". Must be one of ["decoder-processor"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"decoder-processor",
25+
}
26+
DECODER_PROCESSOR: ClassVar["LogsDecoderProcessorType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
LogsDecoderProcessorType.DECODER_PROCESSOR = LogsDecoderProcessorType("decoder-processor")

0 commit comments

Comments
 (0)