Skip to content

Commit e765cda

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0a5dee4 of spec repo
1 parent 61c2cb8 commit e765cda

9 files changed

Lines changed: 87 additions & 223 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64968,9 +64968,6 @@ components:
6496864968
description: The ID of a component whose output is used as input for this destination.
6496964969
type: string
6497064970
type: array
64971-
tls:
64972-
$ref: "#/components/schemas/ObservabilityPipelineTls"
64973-
description: Configuration for TLS encryption.
6497464971
type:
6497564972
$ref: "#/components/schemas/ObservabilityPipelineCloudPremDestinationType"
6497664973
required:
@@ -67693,6 +67690,10 @@ components:
6769367690
The `parse_grok` processor extracts structured fields from unstructured log messages using Grok patterns.
6769467691

6769567692
**Supported pipeline types:** logs
67693+
example:
67694+
id: "parse-grok-processor"
67695+
include: "service:my-service"
67696+
type: "parse_grok"
6769667697
properties:
6769767698
disable_library_rules:
6769867699
default: false
@@ -67705,6 +67706,10 @@ components:
6770567706
description: Indicates whether the processor is enabled.
6770667707
example: true
6770767708
type: boolean
67709+
field:
67710+
description: The log field to parse with the Grok rules.
67711+
example: "message"
67712+
type: string
6770867713
id:
6770967714
description: A unique identifier for this processor.
6771067715
example: "parse-grok-processor"
@@ -67714,20 +67719,46 @@ components:
6771467719
example: "service:my-service"
6771567720
type: string
6771667721
rules:
67717-
description: The list of Grok parsing rules. If multiple matching rules are provided, they are evaluated in order. The first successful match is applied.
67718-
items:
67719-
$ref: "#/components/schemas/ObservabilityPipelineParseGrokProcessorRule"
67720-
type: array
67722+
$ref: "#/components/schemas/ObservabilityPipelineParseGrokProcessorRules"
6772167723
type:
6772267724
$ref: "#/components/schemas/ObservabilityPipelineParseGrokProcessorType"
6772367725
required:
6772467726
- id
6772567727
- type
6772667728
- include
67727-
- rules
67728-
- enabled
6772967729
type: object
6773067730
x-pipeline-types: [logs]
67731+
ObservabilityPipelineParseGrokProcessorIncludeRule:
67732+
description: |-
67733+
A Grok parsing rule selected using the `include` query. Each rule defines how to extract structured fields
67734+
from logs matching a Datadog search query.
67735+
properties:
67736+
include:
67737+
description: A Datadog search query used to determine which logs this Grok rule targets.
67738+
example: "service:my-service"
67739+
type: string
67740+
match_rules:
67741+
description: |-
67742+
A list of Grok parsing rules that define how to extract fields from matching logs.
67743+
Each rule must contain a name and a valid Grok pattern.
67744+
example:
67745+
- name: "MyParsingRule"
67746+
rule: '%{word:user} connected on %{date("MM/dd/yyyy"):date}'
67747+
items:
67748+
$ref: "#/components/schemas/ObservabilityPipelineParseGrokProcessorRuleMatchRule"
67749+
type: array
67750+
support_rules:
67751+
description: A list of Grok helper rules that can be referenced by the parsing rules.
67752+
example:
67753+
- name: "user"
67754+
rule: "%{word:user.name}"
67755+
items:
67756+
$ref: "#/components/schemas/ObservabilityPipelineParseGrokProcessorRuleSupportRule"
67757+
type: array
67758+
required:
67759+
- include
67760+
- match_rules
67761+
type: object
6773167762
ObservabilityPipelineParseGrokProcessorRule:
6773267763
description: |-
6773367764
A Grok parsing rule used in the `parse_grok` processor. Each rule defines how to extract structured fields
@@ -67792,6 +67823,15 @@ components:
6779267823
- name
6779367824
- rule
6779467825
type: object
67826+
ObservabilityPipelineParseGrokProcessorRules:
67827+
anyOf:
67828+
- items:
67829+
$ref: "#/components/schemas/ObservabilityPipelineParseGrokProcessorRule"
67830+
type: array
67831+
- items:
67832+
$ref: "#/components/schemas/ObservabilityPipelineParseGrokProcessorIncludeRule"
67833+
type: array
67834+
description: The list of Grok parsing rules selected using the `source` field or `include` query.
6779567835
ObservabilityPipelineParseGrokProcessorType:
6779667836
default: parse_grok
6779767837
description: The processor type. The value should always be `parse_grok`.

docs/datadog_api_client.v2.model.rst

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27990,27 +27990,6 @@ datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor mo
2799027990
:members:
2799127991
:show-inheritance:
2799227992

27993-
datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor\_rule module
27994-
------------------------------------------------------------------------------------------
27995-
27996-
.. automodule:: datadog_api_client.v2.model.observability_pipeline_parse_grok_processor_rule
27997-
:members:
27998-
:show-inheritance:
27999-
28000-
datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor\_rule\_match\_rule module
28001-
-------------------------------------------------------------------------------------------------------
28002-
28003-
.. automodule:: datadog_api_client.v2.model.observability_pipeline_parse_grok_processor_rule_match_rule
28004-
:members:
28005-
:show-inheritance:
28006-
28007-
datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor\_rule\_support\_rule module
28008-
---------------------------------------------------------------------------------------------------------
28009-
28010-
.. automodule:: datadog_api_client.v2.model.observability_pipeline_parse_grok_processor_rule_support_rule
28011-
:members:
28012-
:show-inheritance:
28013-
2801427993
datadog\_api\_client.v2.model.observability\_pipeline\_parse\_grok\_processor\_type module
2801527994
------------------------------------------------------------------------------------------
2801627995

src/datadog_api_client/v2/model/observability_pipeline_cloud_prem_destination.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
18-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
1918
from datadog_api_client.v2.model.observability_pipeline_cloud_prem_destination_type import (
2019
ObservabilityPipelineCloudPremDestinationType,
2120
)
@@ -34,7 +33,6 @@ class ObservabilityPipelineCloudPremDestination(ModelNormal):
3433
@cached_property
3534
def openapi_types(_):
3635
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
37-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
3836
from datadog_api_client.v2.model.observability_pipeline_cloud_prem_destination_type import (
3937
ObservabilityPipelineCloudPremDestinationType,
4038
)
@@ -44,7 +42,6 @@ def openapi_types(_):
4442
"endpoint_url_key": (str,),
4543
"id": (str,),
4644
"inputs": ([str],),
47-
"tls": (ObservabilityPipelineTls,),
4845
"type": (ObservabilityPipelineCloudPremDestinationType,),
4946
}
5047

@@ -53,7 +50,6 @@ def openapi_types(_):
5350
"endpoint_url_key": "endpoint_url_key",
5451
"id": "id",
5552
"inputs": "inputs",
56-
"tls": "tls",
5753
"type": "type",
5854
}
5955

@@ -70,7 +66,6 @@ def __init__(
7066
UnsetType,
7167
] = unset,
7268
endpoint_url_key: Union[str, UnsetType] = unset,
73-
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
7469
**kwargs,
7570
):
7671
"""
@@ -90,18 +85,13 @@ def __init__(
9085
:param inputs: A list of component IDs whose output is used as the ``input`` for this component.
9186
:type inputs: [str]
9287
93-
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services.
94-
:type tls: ObservabilityPipelineTls, optional
95-
9688
:param type: The destination type. The value should always be ``cloud_prem``.
9789
:type type: ObservabilityPipelineCloudPremDestinationType
9890
"""
9991
if buffer is not unset:
10092
kwargs["buffer"] = buffer
10193
if endpoint_url_key is not unset:
10294
kwargs["endpoint_url_key"] = endpoint_url_key
103-
if tls is not unset:
104-
kwargs["tls"] = tls
10595
super().__init__(kwargs)
10696

10797
self_.id = id

src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ def __init__(self, **kwargs):
7575
:param disable_library_rules: If set to `true`, disables the default Grok rules provided by Datadog.
7676
:type disable_library_rules: bool, optional
7777
78-
:param rules: The list of Grok parsing rules. If multiple matching rules are provided, they are evaluated in order. The first successful match is applied.
79-
:type rules: [ObservabilityPipelineParseGrokProcessorRule]
78+
:param field: The log field to parse with the Grok rules.
79+
:type field: str, optional
8080
81-
:param field: The name of the log field that contains a JSON string.
82-
:type field: str
81+
:param rules: The list of Grok parsing rules selected using the `source` field or `include` query.
82+
:type rules: bool, date, datetime, dict, float, int, list, str, UUID, none_type, optional
8383
8484
:param always_use_text_key: Whether to always use a text key for element content.
8585
:type always_use_text_key: bool, optional

src/datadog_api_client/v2/model/observability_pipeline_parse_grok_processor.py

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import List, Union, TYPE_CHECKING
6+
from typing import Any, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
date,
12+
datetime,
13+
none_type,
1114
unset,
1215
UnsetType,
16+
UUID,
1317
)
1418

1519

1620
if TYPE_CHECKING:
17-
from datadog_api_client.v2.model.observability_pipeline_parse_grok_processor_rule import (
18-
ObservabilityPipelineParseGrokProcessorRule,
19-
)
2021
from datadog_api_client.v2.model.observability_pipeline_parse_grok_processor_type import (
2122
ObservabilityPipelineParseGrokProcessorType,
2223
)
@@ -25,9 +26,6 @@
2526
class ObservabilityPipelineParseGrokProcessor(ModelNormal):
2627
@cached_property
2728
def openapi_types(_):
28-
from datadog_api_client.v2.model.observability_pipeline_parse_grok_processor_rule import (
29-
ObservabilityPipelineParseGrokProcessorRule,
30-
)
3129
from datadog_api_client.v2.model.observability_pipeline_parse_grok_processor_type import (
3230
ObservabilityPipelineParseGrokProcessorType,
3331
)
@@ -36,16 +34,29 @@ def openapi_types(_):
3634
"disable_library_rules": (bool,),
3735
"display_name": (str,),
3836
"enabled": (bool,),
37+
"field": (str,),
3938
"id": (str,),
4039
"include": (str,),
41-
"rules": ([ObservabilityPipelineParseGrokProcessorRule],),
40+
"rules": (
41+
bool,
42+
date,
43+
datetime,
44+
dict,
45+
float,
46+
int,
47+
list,
48+
str,
49+
UUID,
50+
none_type,
51+
),
4252
"type": (ObservabilityPipelineParseGrokProcessorType,),
4353
}
4454

4555
attribute_map = {
4656
"disable_library_rules": "disable_library_rules",
4757
"display_name": "display_name",
4858
"enabled": "enabled",
59+
"field": "field",
4960
"id": "id",
5061
"include": "include",
5162
"rules": "rules",
@@ -54,13 +65,14 @@ def openapi_types(_):
5465

5566
def __init__(
5667
self_,
57-
enabled: bool,
5868
id: str,
5969
include: str,
60-
rules: List[ObservabilityPipelineParseGrokProcessorRule],
6170
type: ObservabilityPipelineParseGrokProcessorType,
6271
disable_library_rules: Union[bool, UnsetType] = unset,
6372
display_name: Union[str, UnsetType] = unset,
73+
enabled: Union[bool, UnsetType] = unset,
74+
field: Union[str, UnsetType] = unset,
75+
rules: Union[Any, UnsetType] = unset,
6476
**kwargs,
6577
):
6678
"""
@@ -75,16 +87,19 @@ def __init__(
7587
:type display_name: str, optional
7688
7789
:param enabled: Indicates whether the processor is enabled.
78-
:type enabled: bool
90+
:type enabled: bool, optional
91+
92+
:param field: The log field to parse with the Grok rules.
93+
:type field: str, optional
7994
8095
:param id: A unique identifier for this processor.
8196
:type id: str
8297
8398
:param include: A Datadog search query used to determine which logs this processor targets.
8499
:type include: str
85100
86-
:param rules: The list of Grok parsing rules. If multiple matching rules are provided, they are evaluated in order. The first successful match is applied.
87-
:type rules: [ObservabilityPipelineParseGrokProcessorRule]
101+
:param rules: The list of Grok parsing rules selected using the ``source`` field or ``include`` query.
102+
:type rules: bool, date, datetime, dict, float, int, list, str, UUID, none_type, optional
88103
89104
:param type: The processor type. The value should always be ``parse_grok``.
90105
:type type: ObservabilityPipelineParseGrokProcessorType
@@ -93,10 +108,14 @@ def __init__(
93108
kwargs["disable_library_rules"] = disable_library_rules
94109
if display_name is not unset:
95110
kwargs["display_name"] = display_name
111+
if enabled is not unset:
112+
kwargs["enabled"] = enabled
113+
if field is not unset:
114+
kwargs["field"] = field
115+
if rules is not unset:
116+
kwargs["rules"] = rules
96117
super().__init__(kwargs)
97118

98-
self_.enabled = enabled
99119
self_.id = id
100120
self_.include = include
101-
self_.rules = rules
102121
self_.type = type

0 commit comments

Comments
 (0)