Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35144,6 +35144,8 @@ components:
description: The `add_env_vars` processor adds environment variable values to
log events.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -35199,6 +35201,8 @@ components:
ObservabilityPipelineAddFieldsProcessor:
description: The `add_fields` processor adds static key-value fields to logs.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -35515,6 +35519,10 @@ components:
role session.
type: string
type: object
ObservabilityPipelineComponentDisplayName:
description: The display name for a component.
example: my component
type: string
ObservabilityPipelineConfig:
description: Specifies the pipeline's configuration, including its sources,
processors, and destinations.
Expand Down Expand Up @@ -35605,6 +35613,8 @@ components:
include: status:error
type: filter
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor group is enabled.
example: true
Expand Down Expand Up @@ -35768,6 +35778,8 @@ components:
Remap Language (VRL)](https://vector.dev/docs/reference/vrl/) scripts with
advanced filtering capabilities.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -35935,6 +35947,8 @@ components:
properties:
action:
$ref: '#/components/schemas/ObservabilityPipelineDatadogTagsProcessorAction'
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -36016,6 +36030,8 @@ components:
ObservabilityPipelineDedupeProcessor:
description: The `dedupe` processor removes duplicate fields in log events.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -36253,6 +36269,8 @@ components:
description: The `enrichment_table` processor enriches logs using a static CSV
file or GeoIP database.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -36312,6 +36330,8 @@ components:
on a Datadog search query. Logs that match the `include` query are passed
through; others are discarded.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -36414,6 +36434,8 @@ components:
Metrics can be counters, gauges, or distributions and optionally grouped by
log fields.'
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -37035,6 +37057,8 @@ components:
description: The `ocsf_mapper` processor transforms logs into the OCSF schema
using a predefined mapping configuration.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -37166,6 +37190,8 @@ components:
by Datadog.
example: true
type: boolean
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -37278,6 +37304,8 @@ components:
and flattens it into the event. This is useful when logs contain embedded
JSON as a string.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -37331,6 +37359,8 @@ components:
a specified filter. When the configured daily quota is met, the processor
can drop or alert.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
drop_events:
description: If set to `true`, logs that matched the quota filter and sent
after the quota has been met are dropped; only logs that did not match
Expand Down Expand Up @@ -37462,6 +37492,8 @@ components:
description: The `reduce` processor aggregates and merges logs based on matching
keys and merge strategies.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -37554,6 +37586,8 @@ components:
ObservabilityPipelineRemoveFieldsProcessor:
description: The `remove_fields` processor deletes specified fields from logs.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -37598,6 +37632,8 @@ components:
ObservabilityPipelineRenameFieldsProcessor:
description: The `rename_fields` processor changes field names.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -37733,6 +37769,8 @@ components:
description: The `sample` processor allows probabilistic sampling of logs at
a fixed rate.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -37780,6 +37818,8 @@ components:
description: The `sensitive_data_scanner` processor detects and optionally redacts
sensitive data in log events.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down Expand Up @@ -38769,6 +38809,8 @@ components:
description: The `throttle` processor limits the number of events that pass
through over a given time window.
properties:
display_name:
$ref: '#/components/schemas/ObservabilityPipelineComponentDisplayName'
enabled:
description: Whether this processor is enabled.
example: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import List, TYPE_CHECKING
from typing import List, Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


Expand All @@ -31,6 +33,7 @@ def openapi_types(_):
)

return {
"display_name": (str,),
"enabled": (bool,),
"id": (str,),
"include": (str,),
Expand All @@ -39,6 +42,7 @@ def openapi_types(_):
}

attribute_map = {
"display_name": "display_name",
"enabled": "enabled",
"id": "id",
"include": "include",
Expand All @@ -53,11 +57,15 @@ def __init__(
include: str,
type: ObservabilityPipelineAddEnvVarsProcessorType,
variables: List[ObservabilityPipelineAddEnvVarsProcessorVariable],
display_name: Union[str, UnsetType] = unset,
**kwargs,
):
"""
The ``add_env_vars`` processor adds environment variable values to log events.
:param display_name: The display name for a component.
:type display_name: str, optional
:param enabled: Whether this processor is enabled.
:type enabled: bool
Expand All @@ -73,6 +81,8 @@ def __init__(
:param variables: A list of environment variable mappings to apply to log fields.
:type variables: [ObservabilityPipelineAddEnvVarsProcessorVariable]
"""
if display_name is not unset:
kwargs["display_name"] = display_name
super().__init__(kwargs)

self_.enabled = enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import List, TYPE_CHECKING
from typing import List, Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


Expand All @@ -27,6 +29,7 @@ def openapi_types(_):
)

return {
"display_name": (str,),
"enabled": (bool,),
"fields": ([ObservabilityPipelineFieldValue],),
"id": (str,),
Expand All @@ -35,6 +38,7 @@ def openapi_types(_):
}

attribute_map = {
"display_name": "display_name",
"enabled": "enabled",
"fields": "fields",
"id": "id",
Expand All @@ -49,11 +53,15 @@ def __init__(
id: str,
include: str,
type: ObservabilityPipelineAddFieldsProcessorType,
display_name: Union[str, UnsetType] = unset,
**kwargs,
):
"""
The ``add_fields`` processor adds static key-value fields to logs.

:param display_name: The display name for a component.
:type display_name: str, optional

:param enabled: Whether this processor is enabled.
:type enabled: bool

Expand All @@ -69,6 +77,8 @@ def __init__(
:param type: The processor type. The value should always be ``add_fields``.
:type type: ObservabilityPipelineAddFieldsProcessorType
"""
if display_name is not unset:
kwargs["display_name"] = display_name
super().__init__(kwargs)

self_.enabled = enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


Expand Down Expand Up @@ -67,6 +69,7 @@ def openapi_types(_):
)

return {
"display_name": (str,),
"enabled": (bool,),
"id": (str,),
"include": (str,),
Expand All @@ -75,6 +78,7 @@ def openapi_types(_):
}

attribute_map = {
"display_name": "display_name",
"enabled": "enabled",
"id": "id",
"include": "include",
Expand Down Expand Up @@ -111,11 +115,15 @@ def __init__(
ObservabilityPipelineDatadogTagsProcessor,
]
],
display_name: Union[str, UnsetType] = unset,
**kwargs,
):
"""
A group of processors.

:param display_name: The display name for a component.
:type display_name: str, optional

:param enabled: Whether this processor group is enabled.
:type enabled: bool

Expand All @@ -131,6 +139,8 @@ def __init__(
:param processors: Processors applied sequentially within this group. Events flow through each processor in order.
:type processors: [ObservabilityPipelineConfigProcessorItem]
"""
if display_name is not unset:
kwargs["display_name"] = display_name
super().__init__(kwargs)

self_.enabled = enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def __init__(self, **kwargs):
"""
A processor for the pipeline.
:param display_name: The display name for a component.
:type display_name: str, optional
:param enabled: Whether this processor is enabled.
:type enabled: bool
Expand Down
Loading