diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3bec741a12..e9a10925fb 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -11611,6 +11611,7 @@ components: - gcp_iam_service_account - gcp_iam_policy items: + description: A cloud resource type identifier. type: string type: array required: @@ -11642,6 +11643,7 @@ components: defaultGroupByFields: description: The default group by fields. items: + description: A field name used for default grouping. type: string nullable: true type: array @@ -11652,6 +11654,7 @@ components: userGroupByFields: description: Fields to use to group findings by when sending signals. items: + description: A field name to group findings by. type: string nullable: true type: array @@ -11834,13 +11837,16 @@ components: hostTags: description: The host tags defining where this policy is deployed items: + description: A host tag used to identify where this policy is deployed. type: string type: array hostTagsLists: description: The host tags defining where this policy is deployed, the inner values are linked with AND, the outer values are linked with OR items: + description: A list of host tags linked with AND logic. items: + description: A host tag used to filter the deployment scope. type: string type: array type: array @@ -11906,13 +11912,16 @@ components: hostTags: description: The host tags defining where this policy is deployed items: + description: A host tag used to identify where this policy is deployed. type: string type: array hostTagsLists: description: The host tags defining where this policy is deployed, the inner values are linked with AND, the outer values are linked with OR items: + description: A list of host tags linked with AND logic. items: + description: A host tag used to filter the deployment scope. type: string type: array type: array @@ -11987,13 +11996,16 @@ components: hostTags: description: The host tags defining where this policy is deployed items: + description: A host tag used to identify where this policy is deployed. type: string type: array hostTagsLists: description: The host tags defining where this policy is deployed, the inner values are linked with AND, the outer values are linked with OR items: + description: A list of host tags linked with AND logic. items: + description: A host tag used to filter the deployment scope. type: string type: array type: array @@ -12148,6 +12160,7 @@ components: blocking: description: The blocking policies that the rule belongs to items: + description: The ID of a blocking policy that this rule belongs to. type: string type: array category: @@ -12176,6 +12189,7 @@ components: disabled: description: The disabled policies that the rule belongs to items: + description: The ID of a disabled policy that this rule belongs to. type: string type: array enabled: @@ -12189,11 +12203,13 @@ components: filters: description: The platforms the Agent rule is supported on items: + description: A platform filter that the Agent rule is supported on. type: string type: array monitoring: description: The monitoring policies that the rule belongs to items: + description: The ID of a monitoring policy that this rule belongs to. type: string type: array name: @@ -12203,6 +12219,7 @@ components: product_tags: description: The list of product tags associated with the rule items: + description: A product tag associated with the rule. type: string type: array silent: @@ -12242,6 +12259,7 @@ components: blocking: description: The blocking policies that the rule belongs to. items: + description: The ID of a blocking policy that this rule belongs to. type: string type: array description: @@ -12251,6 +12269,7 @@ components: disabled: description: The disabled policies that the rule belongs to. items: + description: The ID of a disabled policy that this rule belongs to. type: string type: array enabled: @@ -12264,11 +12283,13 @@ components: filters: description: The platforms the Agent rule is supported on. items: + description: A platform filter that the Agent rule is supported on. type: string type: array monitoring: description: The monitoring policies that the rule belongs to. items: + description: The ID of a monitoring policy that this rule belongs to. type: string type: array name: @@ -12282,6 +12303,7 @@ components: product_tags: description: The list of product tags associated with the rule. items: + description: A product tag associated with the rule. type: string type: array silent: @@ -12373,6 +12395,7 @@ components: blocking: description: The blocking policies that the rule belongs to items: + description: The ID of a blocking policy that this rule belongs to. type: string type: array description: @@ -12382,6 +12405,7 @@ components: disabled: description: The disabled policies that the rule belongs to items: + description: The ID of a disabled policy that this rule belongs to. type: string type: array enabled: @@ -12395,6 +12419,7 @@ components: monitoring: description: The monitoring policies that the rule belongs to items: + description: The ID of a monitoring policy that this rule belongs to. type: string type: array policy_id: @@ -12404,6 +12429,7 @@ components: product_tags: description: The list of product tags associated with the rule items: + description: A product tag associated with the rule. type: string type: array silent: @@ -14162,6 +14188,7 @@ components: example: - '' items: + description: A job result ID. type: string type: array notifications: @@ -14169,6 +14196,7 @@ components: example: - '' items: + description: A notification recipient handle. type: string type: array signalMessage: @@ -16668,6 +16696,7 @@ components: cluster_name: description: List of cluster names associated with the Agent. items: + description: A cluster name associated with the Agent. type: string type: array datadog_agent: @@ -16679,6 +16708,7 @@ components: envs: description: List of environments associated with the Agent. items: + description: An environment name associated with the Agent. type: string nullable: true type: array @@ -18023,6 +18053,7 @@ components: example: - '["def-000-abc"]' items: + description: A rule ID associated with the control. type: string type: array required: @@ -34786,6 +34817,7 @@ components: tags: description: Tags for generated signals. items: + description: A tag string in `key:value` format. type: string type: array thirdPartyCases: @@ -34834,6 +34866,8 @@ components: example: - '@sns-cloudtrail-results' items: + description: A notification recipient handle (for example, `@user` or + `@channel`). type: string type: array to: @@ -44821,7 +44855,7 @@ components: Protocol (OTLP) over gRPC and HTTP. - **Supported pipeline types:** logs, metrics' + **Supported pipeline types:** logs' properties: grpc_address_key: description: Environment variable name containing the gRPC server address @@ -44851,7 +44885,6 @@ components: type: object x-pipeline-types: - logs - - metrics ObservabilityPipelineOpentelemetrySourceType: default: opentelemetry description: The source type. The value should always be `opentelemetry`. @@ -57740,6 +57773,7 @@ components: - team:database - source:cloudtrail items: + description: A tag string in `key:value` format. type: string type: array update_author_id: @@ -57791,6 +57825,7 @@ components: - team:database - source:cloudtrail items: + description: A tag string in `key:value` format. type: string type: array required: @@ -57884,6 +57919,7 @@ components: - technique:T1110-brute-force - source:cloudtrail items: + description: A tag string in `key:value` format. type: string type: array version: @@ -58077,6 +58113,7 @@ components: - def-000-u7q - def-000-7dd items: + description: A rule ID to include in the bulk export. type: string minItems: 1 type: array @@ -58693,6 +58730,7 @@ components: False otherwise.' items: + description: Whether the rule query result matched the expected result. type: boolean type: array type: object @@ -60107,6 +60145,7 @@ components: - technique:T1110-brute-force - source:cloudtrail items: + description: A tag string in `key:value` format. type: string type: array update_date: @@ -60176,6 +60215,7 @@ components: - technique:T1110-brute-force - source:cloudtrail items: + description: A tag string in `key:value` format. type: string type: array required: @@ -60306,6 +60346,7 @@ components: - technique:T1110-brute-force - source:cloudtrail items: + description: A tag string in `key:value` format. type: string type: array version: diff --git a/examples/v2/observability-pipelines/ValidatePipeline_884022323.py b/examples/v2/observability-pipelines/ValidatePipeline_884022323.py deleted file mode 100644 index fda04b4c53..0000000000 --- a/examples/v2/observability-pipelines/ValidatePipeline_884022323.py +++ /dev/null @@ -1,84 +0,0 @@ -""" -Validate a metrics pipeline with opentelemetry source returns "OK" response -""" - -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.observability_pipelines_api import ObservabilityPipelinesApi -from datadog_api_client.v2.model.observability_pipeline_config import ObservabilityPipelineConfig -from datadog_api_client.v2.model.observability_pipeline_config_pipeline_type import ( - ObservabilityPipelineConfigPipelineType, -) -from datadog_api_client.v2.model.observability_pipeline_config_processor_group import ( - ObservabilityPipelineConfigProcessorGroup, -) -from datadog_api_client.v2.model.observability_pipeline_data_attributes import ObservabilityPipelineDataAttributes -from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination import ( - ObservabilityPipelineDatadogMetricsDestination, -) -from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination_type import ( - ObservabilityPipelineDatadogMetricsDestinationType, -) -from datadog_api_client.v2.model.observability_pipeline_filter_processor import ObservabilityPipelineFilterProcessor -from datadog_api_client.v2.model.observability_pipeline_filter_processor_type import ( - ObservabilityPipelineFilterProcessorType, -) -from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import ( - ObservabilityPipelineOpentelemetrySource, -) -from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source_type import ( - ObservabilityPipelineOpentelemetrySourceType, -) -from datadog_api_client.v2.model.observability_pipeline_spec import ObservabilityPipelineSpec -from datadog_api_client.v2.model.observability_pipeline_spec_data import ObservabilityPipelineSpecData - -body = ObservabilityPipelineSpec( - data=ObservabilityPipelineSpecData( - attributes=ObservabilityPipelineDataAttributes( - config=ObservabilityPipelineConfig( - pipeline_type=ObservabilityPipelineConfigPipelineType.METRICS, - destinations=[ - ObservabilityPipelineDatadogMetricsDestination( - id="datadog-metrics-destination", - inputs=[ - "my-processor-group", - ], - type=ObservabilityPipelineDatadogMetricsDestinationType.DATADOG_METRICS, - ), - ], - processor_groups=[ - ObservabilityPipelineConfigProcessorGroup( - enabled=True, - id="my-processor-group", - include="*", - inputs=[ - "opentelemetry-source", - ], - processors=[ - ObservabilityPipelineFilterProcessor( - enabled=True, - id="filter-processor", - include="env:production", - type=ObservabilityPipelineFilterProcessorType.FILTER, - ), - ], - ), - ], - sources=[ - ObservabilityPipelineOpentelemetrySource( - id="opentelemetry-source", - type=ObservabilityPipelineOpentelemetrySourceType.OPENTELEMETRY, - ), - ], - ), - name="Metrics OTel Pipeline", - ), - type="pipelines", - ), -) - -configuration = Configuration() -with ApiClient(configuration) as api_client: - api_instance = ObservabilityPipelinesApi(api_client) - response = api_instance.validate_pipeline(body=body) - - print(response) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_opentelemetry_source.py b/src/datadog_api_client/v2/model/observability_pipeline_opentelemetry_source.py index da09b968f1..ac6090dcd9 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_opentelemetry_source.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_opentelemetry_source.py @@ -56,7 +56,7 @@ def __init__( """ The ``opentelemetry`` source receives telemetry data using the OpenTelemetry Protocol (OTLP) over gRPC and HTTP. - **Supported pipeline types:** logs, metrics + **Supported pipeline types:** logs :param grpc_address_key: Environment variable name containing the gRPC server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only). :type grpc_address_key: str, optional diff --git a/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.frozen deleted file mode 100644 index 9218d08a36..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.frozen +++ /dev/null @@ -1 +0,0 @@ -2026-03-10T16:11:47.487Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.yaml deleted file mode 100644 index b09e25bdb7..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_validate_a_metrics_pipeline_with_opentelemetry_source_returns_ok_response.yaml +++ /dev/null @@ -1,23 +0,0 @@ -interactions: -- request: - body: '{"data":{"attributes":{"config":{"destinations":[{"id":"datadog-metrics-destination","inputs":["my-processor-group"],"type":"datadog_metrics"}],"pipeline_type":"metrics","processor_groups":[{"enabled":true,"id":"my-processor-group","include":"*","inputs":["opentelemetry-source"],"processors":[{"enabled":true,"id":"filter-processor","include":"env:production","type":"filter"}]}],"sources":[{"id":"opentelemetry-source","type":"opentelemetry"}]},"name":"Metrics - OTel Pipeline"},"type":"pipelines"}}' - headers: - accept: - - application/json - content-type: - - application/json - method: POST - uri: https://api.datadoghq.com/api/v2/obs-pipelines/pipelines/validate - response: - body: - string: '{"errors":[]} - - ' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -version: 1 diff --git a/tests/v2/features/observability_pipelines.feature b/tests/v2/features/observability_pipelines.feature index e272303955..bf90c06c13 100644 --- a/tests/v2/features/observability_pipelines.feature +++ b/tests/v2/features/observability_pipelines.feature @@ -149,14 +149,6 @@ Feature: Observability Pipelines And the response "data.attributes.config.destinations" has length 1 And the response "data.attributes.config.destinations[0].id" is equal to "updated-datadog-logs-destination-id" - @team:DataDog/observability-pipelines - Scenario: Validate a metrics pipeline with opentelemetry source returns "OK" response - Given new "ValidatePipeline" request - And body with value {"data": {"attributes": {"config": {"pipeline_type": "metrics", "destinations": [{"id": "datadog-metrics-destination", "inputs": ["my-processor-group"], "type": "datadog_metrics"}], "processor_groups": [{"enabled": true, "id": "my-processor-group", "include": "*", "inputs": ["opentelemetry-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "env:production", "type": "filter"}]}], "sources": [{"id": "opentelemetry-source", "type": "opentelemetry"}]}, "name": "Metrics OTel Pipeline"}, "type": "pipelines"}} - When the request is sent - Then the response status is 200 OK - And the response "errors" has length 0 - @team:DataDog/observability-pipelines Scenario: Validate an observability pipeline returns "Bad Request" response Given new "ValidatePipeline" request