diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 196165112d..cfbcb7286a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 @@ -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 @@ -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. @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/src/datadog_api_client/v2/model/observability_pipeline_add_env_vars_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_add_env_vars_processor.py index 879b74ebce..afef01d8e9 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_add_env_vars_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_add_env_vars_processor.py @@ -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, ) @@ -31,6 +33,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -39,6 +42,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", @@ -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 @@ -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 diff --git a/src/datadog_api_client/v2/model/observability_pipeline_add_fields_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_add_fields_processor.py index 229c27128d..47e7dd254c 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_add_fields_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_add_fields_processor.py @@ -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, ) @@ -27,6 +29,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "fields": ([ObservabilityPipelineFieldValue],), "id": (str,), @@ -35,6 +38,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "fields": "fields", "id": "id", @@ -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 @@ -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 diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config_processor_group.py b/src/datadog_api_client/v2/model/observability_pipeline_config_processor_group.py index 3e0036e396..6579870f58 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_processor_group.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_processor_group.py @@ -8,6 +8,8 @@ from datadog_api_client.model_utils import ( ModelNormal, cached_property, + unset, + UnsetType, ) @@ -67,6 +69,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -75,6 +78,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", @@ -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 @@ -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 diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py b/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py index fc1d8480e7..8becc43c0d 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py @@ -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 diff --git a/src/datadog_api_client/v2/model/observability_pipeline_custom_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_custom_processor.py index 4219ae2d87..3304418aaf 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_custom_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_custom_processor.py @@ -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, ) @@ -37,6 +39,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -45,6 +48,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", @@ -58,11 +62,15 @@ def __init__( id: str, remaps: List[ObservabilityPipelineCustomProcessorRemap], type: ObservabilityPipelineCustomProcessorType, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ The ``custom_processor`` processor transforms events using `Vector Remap Language (VRL) `_ scripts with advanced filtering capabilities. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -78,6 +86,8 @@ def __init__( :param type: The processor type. The value should always be ``custom_processor``. :type type: ObservabilityPipelineCustomProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) include = kwargs.get("include", "*") diff --git a/src/datadog_api_client/v2/model/observability_pipeline_datadog_tags_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_datadog_tags_processor.py index 8864ee8c29..c96b59c4a6 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_datadog_tags_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_datadog_tags_processor.py @@ -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, ) @@ -38,6 +40,7 @@ def openapi_types(_): return { "action": (ObservabilityPipelineDatadogTagsProcessorAction,), + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -48,6 +51,7 @@ def openapi_types(_): attribute_map = { "action": "action", + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", @@ -65,6 +69,7 @@ def __init__( keys: List[str], mode: ObservabilityPipelineDatadogTagsProcessorMode, type: ObservabilityPipelineDatadogTagsProcessorType, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ @@ -73,6 +78,9 @@ def __init__( :param action: The action to take on tags with matching keys. :type action: ObservabilityPipelineDatadogTagsProcessorAction + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -91,6 +99,8 @@ def __init__( :param type: The processor type. The value should always be ``datadog_tags``. :type type: ObservabilityPipelineDatadogTagsProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.action = action diff --git a/src/datadog_api_client/v2/model/observability_pipeline_dedupe_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_dedupe_processor.py index e4abb6a8ff..9c4e3999c9 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_dedupe_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_dedupe_processor.py @@ -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, ) @@ -31,6 +33,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "fields": ([str],), "id": (str,), @@ -40,6 +43,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "fields": "fields", "id": "id", @@ -56,11 +60,15 @@ def __init__( include: str, mode: ObservabilityPipelineDedupeProcessorMode, type: ObservabilityPipelineDedupeProcessorType, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ The ``dedupe`` processor removes duplicate fields in 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 @@ -79,6 +87,8 @@ def __init__( :param type: The processor type. The value should always be ``dedupe``. :type type: ObservabilityPipelineDedupeProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/observability_pipeline_enrichment_table_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_enrichment_table_processor.py index 2bc18bd802..3483c95ae4 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_enrichment_table_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_enrichment_table_processor.py @@ -39,6 +39,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "file": (ObservabilityPipelineEnrichmentTableFile,), "geoip": (ObservabilityPipelineEnrichmentTableGeoIp,), @@ -49,6 +50,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "file": "file", "geoip": "geoip", @@ -65,6 +67,7 @@ def __init__( include: str, target: str, type: ObservabilityPipelineEnrichmentTableProcessorType, + display_name: Union[str, UnsetType] = unset, file: Union[ObservabilityPipelineEnrichmentTableFile, UnsetType] = unset, geoip: Union[ObservabilityPipelineEnrichmentTableGeoIp, UnsetType] = unset, **kwargs, @@ -72,6 +75,9 @@ def __init__( """ The ``enrichment_table`` processor enriches logs using a static CSV file or GeoIP database. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -93,6 +99,8 @@ def __init__( :param type: The processor type. The value should always be ``enrichment_table``. :type type: ObservabilityPipelineEnrichmentTableProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name if file is not unset: kwargs["file"] = file if geoip is not unset: diff --git a/src/datadog_api_client/v2/model/observability_pipeline_filter_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_filter_processor.py index 30a2bfed16..1098a4c6a6 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_filter_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_filter_processor.py @@ -3,11 +3,13 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import TYPE_CHECKING +from typing import Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, + unset, + UnsetType, ) @@ -25,6 +27,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -32,16 +35,28 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", "type": "type", } - def __init__(self_, enabled: bool, id: str, include: str, type: ObservabilityPipelineFilterProcessorType, **kwargs): + def __init__( + self_, + enabled: bool, + id: str, + include: str, + type: ObservabilityPipelineFilterProcessorType, + display_name: Union[str, UnsetType] = unset, + **kwargs, + ): """ The ``filter`` processor allows conditional processing of logs based on a Datadog search query. Logs that match the ``include`` query are passed through; others are discarded. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -54,6 +69,8 @@ def __init__(self_, enabled: bool, id: str, include: str, type: ObservabilityPip :param type: The processor type. The value should always be ``filter``. :type type: ObservabilityPipelineFilterProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/observability_pipeline_generate_metrics_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_generate_metrics_processor.py index 058f6e5d68..97aa67e007 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_generate_metrics_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_generate_metrics_processor.py @@ -31,6 +31,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -39,6 +40,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", @@ -51,6 +53,7 @@ def __init__( enabled: bool, id: str, type: ObservabilityPipelineGenerateMetricsProcessorType, + display_name: Union[str, UnsetType] = unset, include: Union[str, UnsetType] = unset, metrics: Union[List[ObservabilityPipelineGeneratedMetric], UnsetType] = unset, **kwargs, @@ -59,6 +62,9 @@ def __init__( The ``generate_datadog_metrics`` processor creates custom metrics from logs and sends them to Datadog. Metrics can be counters, gauges, or distributions and optionally grouped by log fields. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -74,6 +80,8 @@ def __init__( :param type: The processor type. Always ``generate_datadog_metrics``. :type type: ObservabilityPipelineGenerateMetricsProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name if include is not unset: kwargs["include"] = include if metrics is not unset: diff --git a/src/datadog_api_client/v2/model/observability_pipeline_ocsf_mapper_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_ocsf_mapper_processor.py index e49bde37ec..45ce411dc2 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_ocsf_mapper_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_ocsf_mapper_processor.py @@ -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, ) @@ -31,6 +33,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -39,6 +42,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", @@ -53,11 +57,15 @@ def __init__( include: str, mappings: List[ObservabilityPipelineOcsfMapperProcessorMapping], type: ObservabilityPipelineOcsfMapperProcessorType, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ The ``ocsf_mapper`` processor transforms logs into the OCSF schema using a predefined mapping configuration. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -73,6 +81,8 @@ def __init__( :param type: The processor type. The value should always be ``ocsf_mapper``. :type type: ObservabilityPipelineOcsfMapperProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/observability_pipeline_parse_grok_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_parse_grok_processor.py index a527670797..32e6da60d0 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_parse_grok_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_parse_grok_processor.py @@ -34,6 +34,7 @@ def openapi_types(_): return { "disable_library_rules": (bool,), + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -43,6 +44,7 @@ def openapi_types(_): attribute_map = { "disable_library_rules": "disable_library_rules", + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", @@ -58,6 +60,7 @@ def __init__( rules: List[ObservabilityPipelineParseGrokProcessorRule], type: ObservabilityPipelineParseGrokProcessorType, disable_library_rules: Union[bool, UnsetType] = unset, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ @@ -66,6 +69,9 @@ def __init__( :param disable_library_rules: If set to ``true`` , disables the default Grok rules provided by Datadog. :type disable_library_rules: bool, optional + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -83,6 +89,8 @@ def __init__( """ if disable_library_rules is not unset: kwargs["disable_library_rules"] = disable_library_rules + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/observability_pipeline_parse_json_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_parse_json_processor.py index 7325c2f261..134700560c 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_parse_json_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_parse_json_processor.py @@ -3,11 +3,13 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import TYPE_CHECKING +from typing import Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, + unset, + UnsetType, ) @@ -25,6 +27,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "field": (str,), "id": (str,), @@ -33,6 +36,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "field": "field", "id": "id", @@ -47,11 +51,15 @@ def __init__( id: str, include: str, type: ObservabilityPipelineParseJSONProcessorType, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ The ``parse_json`` processor extracts JSON from a specified field and flattens it into the event. This is useful when logs contain embedded JSON as a string. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -67,6 +75,8 @@ def __init__( :param type: The processor type. The value should always be ``parse_json``. :type type: ObservabilityPipelineParseJSONProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/observability_pipeline_quota_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_quota_processor.py index e4801029c9..a122a03915 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_quota_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_quota_processor.py @@ -45,6 +45,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "drop_events": (bool,), "enabled": (bool,), "id": (str,), @@ -59,6 +60,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "drop_events": "drop_events", "enabled": "enabled", "id": "id", @@ -80,6 +82,7 @@ def __init__( limit: ObservabilityPipelineQuotaProcessorLimit, name: str, type: ObservabilityPipelineQuotaProcessorType, + display_name: Union[str, UnsetType] = unset, drop_events: Union[bool, UnsetType] = unset, ignore_when_missing_partitions: Union[bool, UnsetType] = unset, overflow_action: Union[ObservabilityPipelineQuotaProcessorOverflowAction, UnsetType] = unset, @@ -90,6 +93,9 @@ def __init__( """ The Quota Processor measures logging traffic for logs that match a specified filter. When the configured daily quota is met, the processor can drop or alert. + :param display_name: The display name for a component. + :type display_name: str, optional + :param drop_events: 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 the filter query continue through the pipeline. :type drop_events: bool, optional @@ -127,6 +133,8 @@ def __init__( :param type: The processor type. The value should always be ``quota``. :type type: ObservabilityPipelineQuotaProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name if drop_events is not unset: kwargs["drop_events"] = drop_events if ignore_when_missing_partitions is not unset: diff --git a/src/datadog_api_client/v2/model/observability_pipeline_reduce_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_reduce_processor.py index 210ebd9f3d..86cf0c092a 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_reduce_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_reduce_processor.py @@ -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, ) @@ -31,6 +33,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "group_by": ([str],), "id": (str,), @@ -40,6 +43,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "group_by": "group_by", "id": "id", @@ -56,11 +60,15 @@ def __init__( include: str, merge_strategies: List[ObservabilityPipelineReduceProcessorMergeStrategy], type: ObservabilityPipelineReduceProcessorType, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ The ``reduce`` processor aggregates and merges logs based on matching keys and merge strategies. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -79,6 +87,8 @@ def __init__( :param type: The processor type. The value should always be ``reduce``. :type type: ObservabilityPipelineReduceProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/observability_pipeline_remove_fields_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_remove_fields_processor.py index ace4d0d308..d439328fca 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_remove_fields_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_remove_fields_processor.py @@ -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, ) @@ -25,6 +27,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "fields": ([str],), "id": (str,), @@ -33,6 +36,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "fields": "fields", "id": "id", @@ -47,11 +51,15 @@ def __init__( id: str, include: str, type: ObservabilityPipelineRemoveFieldsProcessorType, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ The ``remove_fields`` processor deletes specified fields from 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 @@ -67,6 +75,8 @@ def __init__( :param type: The processor type. The value should always be ``remove_fields``. :type type: ObservabilityPipelineRemoveFieldsProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/observability_pipeline_rename_fields_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_rename_fields_processor.py index a9c84cf492..c32d90a194 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_rename_fields_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_rename_fields_processor.py @@ -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, ) @@ -31,6 +33,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "fields": ([ObservabilityPipelineRenameFieldsProcessorField],), "id": (str,), @@ -39,6 +42,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "fields": "fields", "id": "id", @@ -53,11 +57,15 @@ def __init__( id: str, include: str, type: ObservabilityPipelineRenameFieldsProcessorType, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ The ``rename_fields`` processor changes field names. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -73,6 +81,8 @@ def __init__( :param type: The processor type. The value should always be ``rename_fields``. :type type: ObservabilityPipelineRenameFieldsProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sample_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_sample_processor.py index 5d4a3bd479..b301a81a73 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_sample_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_sample_processor.py @@ -33,6 +33,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -42,6 +43,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", @@ -56,6 +58,7 @@ def __init__( id: str, include: str, type: ObservabilityPipelineSampleProcessorType, + display_name: Union[str, UnsetType] = unset, percentage: Union[float, UnsetType] = unset, rate: Union[int, UnsetType] = unset, **kwargs, @@ -63,6 +66,9 @@ def __init__( """ The ``sample`` processor allows probabilistic sampling of logs at a fixed rate. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -81,6 +87,8 @@ def __init__( :param type: The processor type. The value should always be ``sample``. :type type: ObservabilityPipelineSampleProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name if percentage is not unset: kwargs["percentage"] = percentage if rate is not unset: diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor.py index a6a755aa76..750d0619d3 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor.py @@ -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, ) @@ -31,6 +33,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "id": (str,), "include": (str,), @@ -39,6 +42,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "id": "id", "include": "include", @@ -53,11 +57,15 @@ def __init__( include: str, rules: List[ObservabilityPipelineSensitiveDataScannerProcessorRule], type: ObservabilityPipelineSensitiveDataScannerProcessorType, + display_name: Union[str, UnsetType] = unset, **kwargs, ): """ The ``sensitive_data_scanner`` processor detects and optionally redacts sensitive data in 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 @@ -73,6 +81,8 @@ def __init__( :param type: The processor type. The value should always be ``sensitive_data_scanner``. :type type: ObservabilityPipelineSensitiveDataScannerProcessorType """ + if display_name is not unset: + kwargs["display_name"] = display_name super().__init__(kwargs) self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/observability_pipeline_throttle_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_throttle_processor.py index 14c7c559e7..3240833d02 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_throttle_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_throttle_processor.py @@ -27,6 +27,7 @@ def openapi_types(_): ) return { + "display_name": (str,), "enabled": (bool,), "group_by": ([str],), "id": (str,), @@ -37,6 +38,7 @@ def openapi_types(_): } attribute_map = { + "display_name": "display_name", "enabled": "enabled", "group_by": "group_by", "id": "id", @@ -54,12 +56,16 @@ def __init__( threshold: int, type: ObservabilityPipelineThrottleProcessorType, window: float, + display_name: Union[str, UnsetType] = unset, group_by: Union[List[str], UnsetType] = unset, **kwargs, ): """ The ``throttle`` processor limits the number of events that pass through over a given time window. + :param display_name: The display name for a component. + :type display_name: str, optional + :param enabled: Whether this processor is enabled. :type enabled: bool @@ -81,6 +87,8 @@ def __init__( :param window: The time window in seconds over which the threshold applies. :type window: float """ + if display_name is not unset: + kwargs["display_name"] = display_name if group_by is not unset: kwargs["group_by"] = group_by super().__init__(kwargs) diff --git a/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_bad_request_response.frozen index ab5be24b5e..73133f1c75 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:38.830Z \ No newline at end of file +2025-12-18T16:15:15.575Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_ok_response.frozen index 54d3e11ac3..20165353d5 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_ok_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:39.315Z \ No newline at end of file +2025-12-18T16:15:16.062Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_ok_response.yaml index fa9c636940..6fc5f16843 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_create_a_new_pipeline_returns_ok_response.yaml @@ -11,13 +11,13 @@ interactions: uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines response: body: - string: '{"data":{"id":"512fbd46-d752-11f0-b25a-da7ad0900002","type":"pipelines","attributes":{"name":"Main + string: '{"data":{"id":"bd8d693c-dc2c-11f0-bf69-da7ad0900002","type":"pipelines","attributes":{"name":"Main Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["my-processor-group"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"my-processor-group","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} ' headers: content-type: - - application/json + - application/vnd.api+json status: code: 201 message: Created @@ -27,7 +27,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/512fbd46-d752-11f0-b25a-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/bd8d693c-dc2c-11f0-bf69-da7ad0900002 response: body: string: '' diff --git a/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_not_found_response.frozen index 11b70ae943..85deda9192 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_not_found_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:40.725Z \ No newline at end of file +2025-12-18T16:15:17.165Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_ok_response.frozen index 56c1eeacb0..201ee9bda8 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_ok_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:41.308Z \ No newline at end of file +2025-12-18T16:15:17.716Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_ok_response.yaml index 70ffde351f..c18e0ea31d 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_delete_a_pipeline_returns_ok_response.yaml @@ -1,6 +1,8 @@ interactions: - request: - body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main + body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main Observability Pipeline"},"type":"pipelines"}}' headers: accept: @@ -11,13 +13,15 @@ interactions: uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines response: body: - string: '{"data":{"id":"5260fb94-d752-11f0-b25c-da7ad0900002","type":"pipelines","attributes":{"name":"Main - Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} + string: '{"data":{"id":"be89fea4-dc2c-11f0-bdea-da7ad0900002","type":"pipelines","attributes":{"name":"Main + Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} ' headers: content-type: - - application/json + - application/vnd.api+json status: code: 201 message: Created @@ -27,7 +31,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/5260fb94-d752-11f0-b25c-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/be89fea4-dc2c-11f0-bdea-da7ad0900002 response: body: string: '' @@ -43,7 +47,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/5260fb94-d752-11f0-b25c-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/be89fea4-dc2c-11f0-bdea-da7ad0900002 response: body: string: '{"errors":[{"title":"Resource Not Found"}]} diff --git a/tests/v2/cassettes/test_scenarios/test_get_a_specific_pipeline_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_get_a_specific_pipeline_returns_ok_response.frozen index a850c336c3..2da6d0e5c1 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_a_specific_pipeline_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_get_a_specific_pipeline_returns_ok_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:43.689Z \ No newline at end of file +2025-12-18T16:15:20.018Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_a_specific_pipeline_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_get_a_specific_pipeline_returns_ok_response.yaml index fd74cae6b9..1d78b7a9d4 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_a_specific_pipeline_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_get_a_specific_pipeline_returns_ok_response.yaml @@ -1,6 +1,8 @@ interactions: - request: - body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main + body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main Observability Pipeline"},"type":"pipelines"}}' headers: accept: @@ -11,13 +13,15 @@ interactions: uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines response: body: - string: '{"data":{"id":"53caaa70-d752-11f0-b766-da7ad0900002","type":"pipelines","attributes":{"name":"Main - Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} + string: '{"data":{"id":"bfe664a4-dc2c-11f0-bdec-da7ad0900002","type":"pipelines","attributes":{"name":"Main + Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} ' headers: content-type: - - application/json + - application/vnd.api+json status: code: 201 message: Created @@ -27,16 +31,18 @@ interactions: accept: - application/json method: GET - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/53caaa70-d752-11f0-b766-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/bfe664a4-dc2c-11f0-bdec-da7ad0900002 response: body: - string: '{"data":{"id":"53caaa70-d752-11f0-b766-da7ad0900002","type":"pipelines","attributes":{"name":"Main - Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} + string: '{"data":{"id":"bfe664a4-dc2c-11f0-bdec-da7ad0900002","type":"pipelines","attributes":{"name":"Main + Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} ' headers: content-type: - - application/json + - application/vnd.api+json status: code: 200 message: OK @@ -46,7 +52,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/53caaa70-d752-11f0-b766-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/bfe664a4-dc2c-11f0-bdec-da7ad0900002 response: body: string: '' diff --git a/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_bad_request_response.frozen index 65b4915a71..a1ae2640d7 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:46.096Z \ No newline at end of file +2025-12-18T16:15:22.038Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_ok_response.frozen index d20c66e6ab..fb745af4ce 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_ok_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:46.582Z \ No newline at end of file +2025-12-18T16:15:22.507Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_ok_response.yaml index 000e87265d..65aa8d7f7f 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_list_pipelines_returns_ok_response.yaml @@ -1,6 +1,8 @@ interactions: - request: - body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main + body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main Observability Pipeline"},"type":"pipelines"}}' headers: accept: @@ -11,13 +13,15 @@ interactions: uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines response: body: - string: '{"data":{"id":"558588ee-d752-11f0-b25e-da7ad0900002","type":"pipelines","attributes":{"name":"Main - Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} + string: '{"data":{"id":"c162e83e-dc2c-11f0-bf6b-da7ad0900002","type":"pipelines","attributes":{"name":"Main + Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} ' headers: content-type: - - application/json + - application/vnd.api+json status: code: 201 message: Created @@ -30,8 +34,10 @@ interactions: uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines response: body: - string: '{"data":[{"id":"558588ee-d752-11f0-b25e-da7ad0900002","type":"pipelines","attributes":{"name":"Main - Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}],"meta":{"totalCount":1}} + string: '{"data":[{"id":"c162e83e-dc2c-11f0-bf6b-da7ad0900002","type":"pipelines","attributes":{"name":"Main + Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}],"meta":{"totalCount":1}} ' headers: @@ -46,7 +52,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/558588ee-d752-11f0-b25e-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/c162e83e-dc2c-11f0-bf6b-da7ad0900002 response: body: string: '' diff --git a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_bad_request_response.frozen index f2c06e4be3..92a0e9377f 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:48.747Z \ No newline at end of file +2025-12-18T16:15:24.455Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_bad_request_response.yaml index b8629796d9..390b6216f0 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_bad_request_response.yaml @@ -1,6 +1,8 @@ interactions: - request: - body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main + body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main Observability Pipeline"},"type":"pipelines"}}' headers: accept: @@ -11,13 +13,15 @@ interactions: uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines response: body: - string: '{"data":{"id":"56cdbe24-d752-11f0-b260-da7ad0900002","type":"pipelines","attributes":{"name":"Main - Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} + string: '{"data":{"id":"c28a5ad0-dc2c-11f0-bdee-da7ad0900002","type":"pipelines","attributes":{"name":"Main + Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} ' headers: content-type: - - application/json + - application/vnd.api+json status: code: 201 message: Created @@ -30,7 +34,7 @@ interactions: content-type: - application/json method: PUT - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/56cdbe24-d752-11f0-b260-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/c28a5ad0-dc2c-11f0-bdee-da7ad0900002 response: body: string: '{"errors":[{"title":"Component with ID my-processor-group is an unknown @@ -52,7 +56,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/56cdbe24-d752-11f0-b260-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/c28a5ad0-dc2c-11f0-bdee-da7ad0900002 response: body: string: '' diff --git a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_not_found_response.frozen index 90a907bd38..b083fd34ae 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_not_found_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:50.671Z \ No newline at end of file +2025-12-18T16:15:26.411Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_ok_response.frozen index 46edcdb93a..b9cbd5fcac 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_ok_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:51.160Z \ No newline at end of file +2025-12-18T16:15:26.929Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_ok_response.yaml index 7370f17da3..5e9ce1cb89 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_a_pipeline_returns_ok_response.yaml @@ -1,6 +1,8 @@ interactions: - request: - body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main + body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]},"name":"Main Observability Pipeline"},"type":"pipelines"}}' headers: accept: @@ -11,13 +13,15 @@ interactions: uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines response: body: - string: '{"data":{"id":"58407a12-d752-11f0-b262-da7ad0900002","type":"pipelines","attributes":{"name":"Main - Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} + string: '{"data":{"id":"c40401e0-dc2c-11f0-bf6d-da7ad0900002","type":"pipelines","attributes":{"name":"Main + Observability Pipeline","config":{"destinations":[{"id":"datadog-logs-destination","inputs":["processor-group-0"],"type":"datadog_logs"}],"processors":[{"display_name":"My + Processor Group","enabled":true,"id":"processor-group-0","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"display_name":"My + Filter Processor","enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} ' headers: content-type: - - application/json + - application/vnd.api+json status: code: 201 message: Created @@ -30,16 +34,16 @@ interactions: content-type: - application/json method: PUT - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/58407a12-d752-11f0-b262-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/c40401e0-dc2c-11f0-bf6d-da7ad0900002 response: body: - string: '{"data":{"id":"58407a12-d752-11f0-b262-da7ad0900002","type":"pipelines","attributes":{"name":"Updated + string: '{"data":{"id":"c40401e0-dc2c-11f0-bf6d-da7ad0900002","type":"pipelines","attributes":{"name":"Updated Pipeline Name","config":{"destinations":[{"id":"updated-datadog-logs-destination-id","inputs":["my-processor-group"],"type":"datadog_logs"}],"processors":[{"enabled":true,"id":"my-processor-group","include":"service:my-service","inputs":["datadog-agent-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"status:error","type":"filter"}]}],"sources":[{"id":"datadog-agent-source","type":"datadog_agent"}]}}}} ' headers: content-type: - - application/json + - application/vnd.api+json status: code: 200 message: OK @@ -49,7 +53,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/58407a12-d752-11f0-b262-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/remote_config/products/obs_pipelines/pipelines/c40401e0-dc2c-11f0-bf6d-da7ad0900002 response: body: string: '' diff --git a/tests/v2/cassettes/test_scenarios/test_validate_an_observability_pipeline_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_validate_an_observability_pipeline_returns_bad_request_response.frozen index 149cc2fb4c..745856e49a 100644 --- a/tests/v2/cassettes/test_scenarios/test_validate_an_observability_pipeline_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_validate_an_observability_pipeline_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:54.040Z \ No newline at end of file +2025-12-18T16:15:29.179Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_validate_an_observability_pipeline_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_validate_an_observability_pipeline_returns_ok_response.frozen index a4c7795147..ecfcc54162 100644 --- a/tests/v2/cassettes/test_scenarios/test_validate_an_observability_pipeline_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_validate_an_observability_pipeline_returns_ok_response.frozen @@ -1 +1 @@ -2025-12-12T12:01:54.520Z \ No newline at end of file +2025-12-18T16:15:29.647Z \ No newline at end of file diff --git a/tests/v2/features/given.json b/tests/v2/features/given.json index 8cf1925f45..5e9aa4d3b5 100644 --- a/tests/v2/features/given.json +++ b/tests/v2/features/given.json @@ -883,7 +883,7 @@ "parameters": [ { "name": "body", - "value": "{\n \"data\":{\n \"attributes\":{\n \"config\":{\n \"destinations\":[\n {\n \"id\":\"datadog-logs-destination\",\n \"inputs\":[\n \"processor-group-0\"\n ],\n \"type\":\"datadog_logs\"\n }\n ],\n \"processors\":[\n {\n \"id\":\"processor-group-0\",\n \"include\":\"service:my-service\",\n \"inputs\":[\n \"datadog-agent-source\"\n ],\n \"enabled\": true,\n \"processors\": [\n {\n \"id\": \"filter-processor\",\n \"type\": \"filter\",\n \"include\": \"status:error\",\n \"enabled\": true\n }\n ]\n }\n ],\n \"sources\":[\n {\n \"id\":\"datadog-agent-source\",\n \"type\":\"datadog_agent\"\n }\n ]\n },\n \"name\":\"Main Observability Pipeline\"\n },\n \"type\":\"pipelines\"\n }\n}" + "value": "{\n \"data\":{\n \"attributes\":{\n \"config\":{\n \"destinations\":[\n {\n \"id\":\"datadog-logs-destination\",\n \"inputs\":[\n \"processor-group-0\"\n ],\n \"type\":\"datadog_logs\"\n }\n ],\n \"processors\":[\n {\n \"id\":\"processor-group-0\",\n \"include\":\"service:my-service\",\n \"display_name\": \"My Processor Group\",\n \"inputs\":[\n \"datadog-agent-source\"\n ],\n \"enabled\": true,\n \"processors\": [\n {\n \"id\": \"filter-processor\",\n \"type\": \"filter\",\n \"include\": \"status:error\",\n \"display_name\": \"My Filter Processor\",\n \"enabled\": true\n }\n ]\n }\n ],\n \"sources\":[\n {\n \"id\":\"datadog-agent-source\",\n \"type\":\"datadog_agent\"\n }\n ]\n },\n \"name\":\"Main Observability Pipeline\"\n },\n \"type\":\"pipelines\"\n }\n}" } ], "step": "there is a valid \"pipeline\" in the system",