Skip to content

Commit 73573c0

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fe153a35 of spec repo
1 parent cc0be3f commit 73573c0

File tree

32 files changed

+1156
-4
lines changed

32 files changed

+1156
-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-07-02 11:31:44.914188",
8-
"spec_repo_commit": "ab77d015"
7+
"regenerated": "2025-07-02 12:56:07.523444",
8+
"spec_repo_commit": "fe153a35"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-02 11:31:44.929324",
13-
"spec_repo_commit": "ab77d015"
12+
"regenerated": "2025-07-02 12:56:07.538926",
13+
"spec_repo_commit": "fe153a35"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5163,6 +5163,143 @@ components:
51635163
type: string
51645164
x-enum-varnames:
51655165
- ARITHMETIC_PROCESSOR
5166+
LogsArrayProcessor:
5167+
description: 'A processor for extracting, aggregating, or transforming values
5168+
from JSON arrays within your logs.
5169+
5170+
Supported operations are:
5171+
5172+
- Select value from matching element
5173+
5174+
- Compute array length
5175+
5176+
- Append a value to an array'
5177+
properties:
5178+
is_enabled:
5179+
default: false
5180+
description: Whether or not the processor is enabled.
5181+
type: boolean
5182+
name:
5183+
description: Name of the processor.
5184+
type: string
5185+
operation:
5186+
$ref: '#/components/schemas/LogsArrayProcessorOperation'
5187+
type:
5188+
$ref: '#/components/schemas/LogsArrayProcessorType'
5189+
required:
5190+
- operation
5191+
- type
5192+
type: object
5193+
LogsArrayProcessorOperation:
5194+
description: Configuration of the array processor operation to perform.
5195+
oneOf:
5196+
- $ref: '#/components/schemas/LogsArrayProcessorOperationAppend'
5197+
- $ref: '#/components/schemas/LogsArrayProcessorOperationLength'
5198+
- $ref: '#/components/schemas/LogsArrayProcessorOperationSelect'
5199+
LogsArrayProcessorOperationAppend:
5200+
description: Operation that appends a value to a target array attribute.
5201+
properties:
5202+
preserve_source:
5203+
default: true
5204+
description: Remove or preserve the remapped source element.
5205+
type: boolean
5206+
source:
5207+
description: Attribute path containing the value to append.
5208+
example: network.client.ip
5209+
type: string
5210+
target:
5211+
description: Attribute path of the array to append to.
5212+
example: sourceIps
5213+
type: string
5214+
type:
5215+
$ref: '#/components/schemas/LogsArrayProcessorOperationAppendType'
5216+
required:
5217+
- type
5218+
- source
5219+
- target
5220+
type: object
5221+
LogsArrayProcessorOperationAppendType:
5222+
description: Operation type.
5223+
enum:
5224+
- append
5225+
example: append
5226+
type: string
5227+
x-enum-varnames:
5228+
- APPEND
5229+
LogsArrayProcessorOperationLength:
5230+
description: Operation that computes the length of a `source` array and stores
5231+
the result in the `target` attribute.
5232+
properties:
5233+
source:
5234+
description: Attribute path of the array to measure.
5235+
example: tags
5236+
type: string
5237+
target:
5238+
description: Attribute that receives the computed length.
5239+
example: tagCount
5240+
type: string
5241+
type:
5242+
$ref: '#/components/schemas/LogsArrayProcessorOperationLengthType'
5243+
required:
5244+
- type
5245+
- source
5246+
- target
5247+
type: object
5248+
LogsArrayProcessorOperationLengthType:
5249+
description: Operation type.
5250+
enum:
5251+
- length
5252+
example: length
5253+
type: string
5254+
x-enum-varnames:
5255+
- LENGTH
5256+
LogsArrayProcessorOperationSelect:
5257+
description: Operation that finds an object in a `source` array using a `filter`,
5258+
and then extracts a specific value into the `target` attribute.
5259+
properties:
5260+
filter:
5261+
description: Filter condition expressed as `key:value` used to find the
5262+
matching element.
5263+
example: name:Referrer
5264+
type: string
5265+
source:
5266+
description: Attribute path of the array to search into.
5267+
example: httpRequest.headers
5268+
type: string
5269+
target:
5270+
description: Attribute that receives the extracted value.
5271+
example: referrer
5272+
type: string
5273+
type:
5274+
$ref: '#/components/schemas/LogsArrayProcessorOperationSelectType'
5275+
value_to_extract:
5276+
description: Key of the value to extract from the matching element.
5277+
example: value
5278+
type: string
5279+
required:
5280+
- type
5281+
- source
5282+
- target
5283+
- filter
5284+
- value_to_extract
5285+
type: object
5286+
LogsArrayProcessorOperationSelectType:
5287+
description: Operation type.
5288+
enum:
5289+
- select
5290+
example: select
5291+
type: string
5292+
x-enum-varnames:
5293+
- SELECT
5294+
LogsArrayProcessorType:
5295+
default: array-processor
5296+
description: Type of logs array processor.
5297+
enum:
5298+
- array-processor
5299+
example: array-processor
5300+
type: string
5301+
x-enum-varnames:
5302+
- ARRAY_PROCESSOR
51665303
LogsAttributeRemapper:
51675304
description: 'The remapper processor remaps any source attribute(s) or tag to
51685305
another target attribute or tag.
@@ -6060,6 +6197,7 @@ components:
60606197
- $ref: '#/components/schemas/ReferenceTableLogsLookupProcessor'
60616198
- $ref: '#/components/schemas/LogsTraceRemapper'
60626199
- $ref: '#/components/schemas/LogsSpanRemapper'
6200+
- $ref: '#/components/schemas/LogsArrayProcessor'
60636201
LogsQueryCompute:
60646202
description: Define computation for a log query.
60656203
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)