Skip to content

Commit 162559a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a435f1bd of spec repo
1 parent 1a13175 commit 162559a

22 files changed

+951
-4
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:18.417997",
8-
"spec_repo_commit": "76086f13"
7+
"regenerated": "2025-06-27 13:26:02.150708",
8+
"spec_repo_commit": "a435f1bd"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-26 17:56:18.433709",
13-
"spec_repo_commit": "76086f13"
12+
"regenerated": "2025-06-27 13:26:02.165650",
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:

docs/datadog_api_client.v1.model.rst

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,69 @@ datadog\_api\_client.v1.model.logs\_arithmetic\_processor\_type module
15721572
:members:
15731573
:show-inheritance:
15741574

1575+
datadog\_api\_client.v1.model.logs\_array\_processor module
1576+
-----------------------------------------------------------
1577+
1578+
.. automodule:: datadog_api_client.v1.model.logs_array_processor
1579+
:members:
1580+
:show-inheritance:
1581+
1582+
datadog\_api\_client.v1.model.logs\_array\_processor\_operation module
1583+
----------------------------------------------------------------------
1584+
1585+
.. automodule:: datadog_api_client.v1.model.logs_array_processor_operation
1586+
:members:
1587+
:show-inheritance:
1588+
1589+
datadog\_api\_client.v1.model.logs\_array\_processor\_operation\_append module
1590+
------------------------------------------------------------------------------
1591+
1592+
.. automodule:: datadog_api_client.v1.model.logs_array_processor_operation_append
1593+
:members:
1594+
:show-inheritance:
1595+
1596+
datadog\_api\_client.v1.model.logs\_array\_processor\_operation\_append\_type module
1597+
------------------------------------------------------------------------------------
1598+
1599+
.. automodule:: datadog_api_client.v1.model.logs_array_processor_operation_append_type
1600+
:members:
1601+
:show-inheritance:
1602+
1603+
datadog\_api\_client.v1.model.logs\_array\_processor\_operation\_length module
1604+
------------------------------------------------------------------------------
1605+
1606+
.. automodule:: datadog_api_client.v1.model.logs_array_processor_operation_length
1607+
:members:
1608+
:show-inheritance:
1609+
1610+
datadog\_api\_client.v1.model.logs\_array\_processor\_operation\_length\_type module
1611+
------------------------------------------------------------------------------------
1612+
1613+
.. automodule:: datadog_api_client.v1.model.logs_array_processor_operation_length_type
1614+
:members:
1615+
:show-inheritance:
1616+
1617+
datadog\_api\_client.v1.model.logs\_array\_processor\_operation\_select module
1618+
------------------------------------------------------------------------------
1619+
1620+
.. automodule:: datadog_api_client.v1.model.logs_array_processor_operation_select
1621+
:members:
1622+
:show-inheritance:
1623+
1624+
datadog\_api\_client.v1.model.logs\_array\_processor\_operation\_select\_type module
1625+
------------------------------------------------------------------------------------
1626+
1627+
.. automodule:: datadog_api_client.v1.model.logs_array_processor_operation_select_type
1628+
:members:
1629+
:show-inheritance:
1630+
1631+
datadog\_api\_client.v1.model.logs\_array\_processor\_type module
1632+
-----------------------------------------------------------------
1633+
1634+
.. automodule:: datadog_api_client.v1.model.logs_array_processor_type
1635+
:members:
1636+
:show-inheritance:
1637+
15751638
datadog\_api\_client.v1.model.logs\_attribute\_remapper module
15761639
--------------------------------------------------------------
15771640

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"""
2+
Create a pipeline with Array Processor Append Operation 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_array_processor import LogsArrayProcessor
8+
from datadog_api_client.v1.model.logs_array_processor_operation_append import LogsArrayProcessorOperationAppend
9+
from datadog_api_client.v1.model.logs_array_processor_operation_append_type import LogsArrayProcessorOperationAppendType
10+
from datadog_api_client.v1.model.logs_array_processor_type import LogsArrayProcessorType
11+
from datadog_api_client.v1.model.logs_filter import LogsFilter
12+
from datadog_api_client.v1.model.logs_pipeline import LogsPipeline
13+
14+
body = LogsPipeline(
15+
filter=LogsFilter(
16+
query="source:python",
17+
),
18+
name="testPipelineArrayAppend",
19+
processors=[
20+
LogsArrayProcessor(
21+
type=LogsArrayProcessorType.ARRAY_PROCESSOR,
22+
is_enabled=True,
23+
name="append_ip_to_array",
24+
operation=LogsArrayProcessorOperationAppend(
25+
type=LogsArrayProcessorOperationAppendType.APPEND,
26+
source="network.client.ip",
27+
target="sourceIps",
28+
),
29+
),
30+
],
31+
tags=[],
32+
)
33+
34+
configuration = Configuration()
35+
with ApiClient(configuration) as api_client:
36+
api_instance = LogsPipelinesApi(api_client)
37+
response = api_instance.create_logs_pipeline(body=body)
38+
39+
print(response)
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
"""
2+
Create a pipeline with Array Processor Select Operation 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_array_processor import LogsArrayProcessor
8+
from datadog_api_client.v1.model.logs_array_processor_operation_select import LogsArrayProcessorOperationSelect
9+
from datadog_api_client.v1.model.logs_array_processor_operation_select_type import LogsArrayProcessorOperationSelectType
10+
from datadog_api_client.v1.model.logs_array_processor_type import LogsArrayProcessorType
11+
from datadog_api_client.v1.model.logs_filter import LogsFilter
12+
from datadog_api_client.v1.model.logs_pipeline import LogsPipeline
13+
14+
body = LogsPipeline(
15+
filter=LogsFilter(
16+
query="source:python",
17+
),
18+
name="testPipelineArraySelect",
19+
processors=[
20+
LogsArrayProcessor(
21+
type=LogsArrayProcessorType.ARRAY_PROCESSOR,
22+
is_enabled=True,
23+
name="extract_referrer",
24+
operation=LogsArrayProcessorOperationSelect(
25+
type=LogsArrayProcessorOperationSelectType.SELECT,
26+
source="httpRequest.headers",
27+
target="referrer",
28+
filter="name:Referrer",
29+
value_to_extract="value",
30+
),
31+
),
32+
],
33+
tags=[],
34+
)
35+
36+
configuration = Configuration()
37+
with ApiClient(configuration) as api_client:
38+
api_instance = LogsPipelinesApi(api_client)
39+
response = api_instance.create_logs_pipeline(body=body)
40+
41+
print(response)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"""
2+
Create a pipeline with Array Processor Length Operation 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_array_processor import LogsArrayProcessor
8+
from datadog_api_client.v1.model.logs_array_processor_operation_length import LogsArrayProcessorOperationLength
9+
from datadog_api_client.v1.model.logs_array_processor_operation_length_type import LogsArrayProcessorOperationLengthType
10+
from datadog_api_client.v1.model.logs_array_processor_type import LogsArrayProcessorType
11+
from datadog_api_client.v1.model.logs_filter import LogsFilter
12+
from datadog_api_client.v1.model.logs_pipeline import LogsPipeline
13+
14+
body = LogsPipeline(
15+
filter=LogsFilter(
16+
query="source:python",
17+
),
18+
name="testPipelineArrayLength",
19+
processors=[
20+
LogsArrayProcessor(
21+
type=LogsArrayProcessorType.ARRAY_PROCESSOR,
22+
is_enabled=True,
23+
name="count_tags",
24+
operation=LogsArrayProcessorOperationLength(
25+
type=LogsArrayProcessorOperationLengthType.LENGTH,
26+
source="tags",
27+
target="tagCount",
28+
),
29+
),
30+
],
31+
tags=[],
32+
)
33+
34+
configuration = Configuration()
35+
with ApiClient(configuration) as api_client:
36+
api_instance = LogsPipelinesApi(api_client)
37+
response = api_instance.create_logs_pipeline(body=body)
38+
39+
print(response)

0 commit comments

Comments
 (0)