diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 3bec741a126..e9a10925fbf 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.java b/examples/v2/observability-pipelines/ValidatePipeline_884022323.java
deleted file mode 100644
index 75e3efa36de..00000000000
--- a/examples/v2/observability-pipelines/ValidatePipeline_884022323.java
+++ /dev/null
@@ -1,90 +0,0 @@
-// Validate a metrics pipeline with opentelemetry source returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.ObservabilityPipelinesApi;
-import com.datadog.api.client.v2.model.ObservabilityPipelineConfig;
-import com.datadog.api.client.v2.model.ObservabilityPipelineConfigDestinationItem;
-import com.datadog.api.client.v2.model.ObservabilityPipelineConfigPipelineType;
-import com.datadog.api.client.v2.model.ObservabilityPipelineConfigProcessorGroup;
-import com.datadog.api.client.v2.model.ObservabilityPipelineConfigProcessorItem;
-import com.datadog.api.client.v2.model.ObservabilityPipelineConfigSourceItem;
-import com.datadog.api.client.v2.model.ObservabilityPipelineDataAttributes;
-import com.datadog.api.client.v2.model.ObservabilityPipelineDatadogMetricsDestination;
-import com.datadog.api.client.v2.model.ObservabilityPipelineDatadogMetricsDestinationType;
-import com.datadog.api.client.v2.model.ObservabilityPipelineFilterProcessor;
-import com.datadog.api.client.v2.model.ObservabilityPipelineFilterProcessorType;
-import com.datadog.api.client.v2.model.ObservabilityPipelineOpentelemetrySource;
-import com.datadog.api.client.v2.model.ObservabilityPipelineOpentelemetrySourceType;
-import com.datadog.api.client.v2.model.ObservabilityPipelineSpec;
-import com.datadog.api.client.v2.model.ObservabilityPipelineSpecData;
-import com.datadog.api.client.v2.model.ValidationResponse;
-import java.util.Collections;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- ObservabilityPipelinesApi apiInstance = new ObservabilityPipelinesApi(defaultClient);
-
- ObservabilityPipelineSpec body =
- new ObservabilityPipelineSpec()
- .data(
- new ObservabilityPipelineSpecData()
- .attributes(
- new ObservabilityPipelineDataAttributes()
- .config(
- new ObservabilityPipelineConfig()
- .pipelineType(ObservabilityPipelineConfigPipelineType.METRICS)
- .destinations(
- Collections.singletonList(
- new ObservabilityPipelineConfigDestinationItem(
- new ObservabilityPipelineDatadogMetricsDestination()
- .id("datadog-metrics-destination")
- .inputs(
- Collections.singletonList(
- "my-processor-group"))
- .type(
- ObservabilityPipelineDatadogMetricsDestinationType
- .DATADOG_METRICS))))
- .processorGroups(
- Collections.singletonList(
- new ObservabilityPipelineConfigProcessorGroup()
- .enabled(true)
- .id("my-processor-group")
- .include("*")
- .inputs(
- Collections.singletonList(
- "opentelemetry-source"))
- .processors(
- Collections.singletonList(
- new ObservabilityPipelineConfigProcessorItem(
- new ObservabilityPipelineFilterProcessor()
- .enabled(true)
- .id("filter-processor")
- .include("env:production")
- .type(
- ObservabilityPipelineFilterProcessorType
- .FILTER))))))
- .sources(
- Collections.singletonList(
- new ObservabilityPipelineConfigSourceItem(
- new ObservabilityPipelineOpentelemetrySource()
- .id("opentelemetry-source")
- .type(
- ObservabilityPipelineOpentelemetrySourceType
- .OPENTELEMETRY)))))
- .name("Metrics OTel Pipeline"))
- .type("pipelines"));
-
- try {
- ValidationResponse result = apiInstance.validatePipeline(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ObservabilityPipelinesApi#validatePipeline");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpentelemetrySource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpentelemetrySource.java
index 221238d464d..2964bc439bb 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpentelemetrySource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpentelemetrySource.java
@@ -21,7 +21,7 @@
* The opentelemetry source receives telemetry data using the OpenTelemetry Protocol
* (OTLP) over gRPC and HTTP.
*
- *
Supported pipeline types: logs, metrics + *
Supported pipeline types: logs */ @JsonPropertyOrder({ ObservabilityPipelineOpentelemetrySource.JSON_PROPERTY_GRPC_ADDRESS_KEY, diff --git a/src/test/resources/cassettes/features/v2/Validate_a_metrics_pipeline_with_opentelemetry_source_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Validate_a_metrics_pipeline_with_opentelemetry_source_returns_OK_response.freeze deleted file mode 100644 index 9218d08a363..00000000000 --- a/src/test/resources/cassettes/features/v2/Validate_a_metrics_pipeline_with_opentelemetry_source_returns_OK_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2026-03-10T16:11:47.487Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Validate_a_metrics_pipeline_with_opentelemetry_source_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Validate_a_metrics_pipeline_with_opentelemetry_source_returns_OK_response.json deleted file mode 100644 index fd26d952407..00000000000 --- a/src/test/resources/cassettes/features/v2/Validate_a_metrics_pipeline_with_opentelemetry_source_returns_OK_response.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "httpRequest": { - "body": { - "type": "JSON", - "json": "{\"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": {}, - "method": "POST", - "path": "/api/v2/obs-pipelines/pipelines/validate", - "keepAlive": false, - "secure": true - }, - "httpResponse": { - "body": "{\"errors\":[]}\n", - "headers": { - "Content-Type": [ - "application/vnd.api+json" - ] - }, - "statusCode": 200, - "reasonPhrase": "OK" - }, - "times": { - "remainingTimes": 1 - }, - "timeToLive": { - "unlimited": true - }, - "id": "fd62c635-471a-b911-f21d-26a9cd87afdc" - } -] \ No newline at end of file diff --git a/src/test/resources/com/datadog/api/client/v2/api/observability_pipelines.feature b/src/test/resources/com/datadog/api/client/v2/api/observability_pipelines.feature index e272303955a..bf90c06c139 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/observability_pipelines.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/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