From 1fd203d317242b0ba5e9762f45bc3976a8ee3729 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 30 Oct 2026 18:11:24 +0000 Subject: [PATCH] Regenerate client from commit d58dce9 of spec repo --- .generator/schemas/v2/openapi.yaml | 31 +---- .../v2/metrics/CreateTagIndexingRule.java | 1 - .../CreateTagIndexingRule_2435129406.java | 1 - .../v2/metrics/DeleteTagIndexingRule.java | 1 - examples/v2/metrics/GetTagIndexingRule.java | 1 - examples/v2/metrics/ListTagIndexingRules.java | 1 - .../ListTagIndexingRulesForMetric.java | 1 - .../v2/metrics/ReorderTagIndexingRules.java | 1 - .../v2/metrics/UpdateTagIndexingRule.java | 1 - .../UpdateTagIndexingRule_4127399471.java | 1 - .../com/datadog/api/client/ApiClient.java | 7 -- .../datadog/api/client/v2/api/MetricsApi.java | 119 ------------------ .../datadog/api/client/v2/api/metrics.feature | 23 ---- 13 files changed, 5 insertions(+), 184 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 692ab25bd41..42276a3346a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -204222,7 +204222,7 @@ paths: permissions: - metrics_read x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. + **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/tag-indexing-rules: get: @@ -204300,9 +204300,6 @@ paths: operator: OR permissions: - metrics_read - x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- Create a tag indexing rule for the org. `rule_order` is assigned server-side as max+1 @@ -204381,9 +204378,6 @@ paths: operator: OR permissions: - metric_tags_write - x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/tag-indexing-rules/order: post: description: |- @@ -204447,9 +204441,6 @@ paths: operator: OR permissions: - metric_tags_write - x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/tag-indexing-rules/{id}: delete: description: |- @@ -204492,9 +204483,6 @@ paths: operator: OR permissions: - metric_tags_write - x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: Get a single tag indexing rule by its UUID. operationId: GetTagIndexingRule @@ -204559,9 +204547,6 @@ paths: operator: OR permissions: - metrics_read - x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: description: |- Partially update a tag indexing rule. Fields omitted from the request body are left unchanged. @@ -204653,9 +204638,6 @@ paths: operator: OR permissions: - metric_tags_write - x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/{metric_name}/active-configurations: get: description: |- @@ -205121,7 +205103,7 @@ paths: permissions: - metric_tags_write x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. + **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: |- @@ -205191,7 +205173,7 @@ paths: permissions: - metrics_read x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. + **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- @@ -205266,7 +205248,7 @@ paths: permissions: - metric_tags_write x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. + **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: description: |- @@ -205348,7 +205330,7 @@ paths: permissions: - metric_tags_write x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. + **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/{metric_name}/tag-indexing-rules: get: @@ -205401,9 +205383,6 @@ paths: operator: OR permissions: - metrics_read - x-unstable: |- - **Note**: The Tag Indexing Rules feature is currently in Preview. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/{metric_name}/tags: delete: description: |- diff --git a/examples/v2/metrics/CreateTagIndexingRule.java b/examples/v2/metrics/CreateTagIndexingRule.java index d2e2d73a7a4..2474a1f7933 100644 --- a/examples/v2/metrics/CreateTagIndexingRule.java +++ b/examples/v2/metrics/CreateTagIndexingRule.java @@ -19,7 +19,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.createTagIndexingRule", true); MetricsApi apiInstance = new MetricsApi(defaultClient); TagIndexingRuleCreateRequest body = diff --git a/examples/v2/metrics/CreateTagIndexingRule_2435129406.java b/examples/v2/metrics/CreateTagIndexingRule_2435129406.java index 8e8637befd8..eeae1055b5b 100644 --- a/examples/v2/metrics/CreateTagIndexingRule_2435129406.java +++ b/examples/v2/metrics/CreateTagIndexingRule_2435129406.java @@ -18,7 +18,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.createTagIndexingRule", true); MetricsApi apiInstance = new MetricsApi(defaultClient); TagIndexingRuleCreateRequest body = diff --git a/examples/v2/metrics/DeleteTagIndexingRule.java b/examples/v2/metrics/DeleteTagIndexingRule.java index 2befb8aa0d8..cdc15b32c08 100644 --- a/examples/v2/metrics/DeleteTagIndexingRule.java +++ b/examples/v2/metrics/DeleteTagIndexingRule.java @@ -8,7 +8,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.deleteTagIndexingRule", true); MetricsApi apiInstance = new MetricsApi(defaultClient); // there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/GetTagIndexingRule.java b/examples/v2/metrics/GetTagIndexingRule.java index a944028b60e..ec12c27a2f5 100644 --- a/examples/v2/metrics/GetTagIndexingRule.java +++ b/examples/v2/metrics/GetTagIndexingRule.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.getTagIndexingRule", true); MetricsApi apiInstance = new MetricsApi(defaultClient); // there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/ListTagIndexingRules.java b/examples/v2/metrics/ListTagIndexingRules.java index 866eccfb183..28ba8e84c50 100644 --- a/examples/v2/metrics/ListTagIndexingRules.java +++ b/examples/v2/metrics/ListTagIndexingRules.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.listTagIndexingRules", true); MetricsApi apiInstance = new MetricsApi(defaultClient); try { diff --git a/examples/v2/metrics/ListTagIndexingRulesForMetric.java b/examples/v2/metrics/ListTagIndexingRulesForMetric.java index 9ea63098b9a..e4d17c254e8 100644 --- a/examples/v2/metrics/ListTagIndexingRulesForMetric.java +++ b/examples/v2/metrics/ListTagIndexingRulesForMetric.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.listTagIndexingRulesForMetric", true); MetricsApi apiInstance = new MetricsApi(defaultClient); try { diff --git a/examples/v2/metrics/ReorderTagIndexingRules.java b/examples/v2/metrics/ReorderTagIndexingRules.java index db64fc0d0b1..b6ae6a61da0 100644 --- a/examples/v2/metrics/ReorderTagIndexingRules.java +++ b/examples/v2/metrics/ReorderTagIndexingRules.java @@ -13,7 +13,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.reorderTagIndexingRules", true); MetricsApi apiInstance = new MetricsApi(defaultClient); // there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/UpdateTagIndexingRule.java b/examples/v2/metrics/UpdateTagIndexingRule.java index f9271aae5e5..2808911bab5 100644 --- a/examples/v2/metrics/UpdateTagIndexingRule.java +++ b/examples/v2/metrics/UpdateTagIndexingRule.java @@ -19,7 +19,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.updateTagIndexingRule", true); MetricsApi apiInstance = new MetricsApi(defaultClient); // there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/UpdateTagIndexingRule_4127399471.java b/examples/v2/metrics/UpdateTagIndexingRule_4127399471.java index cf74aa213a9..d98c7d7759d 100644 --- a/examples/v2/metrics/UpdateTagIndexingRule_4127399471.java +++ b/examples/v2/metrics/UpdateTagIndexingRule_4127399471.java @@ -18,7 +18,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.updateTagIndexingRule", true); MetricsApi apiInstance = new MetricsApi(defaultClient); // there is a valid "tag_indexing_rule_exclude_mode" in the system diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index 2ad77cccc31..ed9b2f4f79f 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -1528,19 +1528,12 @@ public class ApiClient { put("v2.replaceRestrictionQuery", false); put("v2.updateRestrictionQuery", false); put("v2.createHistoricalMetricsConfiguration", false); - put("v2.createTagIndexingRule", false); put("v2.createTagIndexingRuleExemption", false); put("v2.deleteHistoricalMetricsConfiguration", false); - put("v2.deleteTagIndexingRule", false); put("v2.deleteTagIndexingRuleExemption", false); put("v2.getHistoricalMetricsConfiguration", false); - put("v2.getTagIndexingRule", false); put("v2.getTagIndexingRuleExemption", false); put("v2.listTagIndexingRuleExemptions", false); - put("v2.listTagIndexingRules", false); - put("v2.listTagIndexingRulesForMetric", false); - put("v2.reorderTagIndexingRules", false); - put("v2.updateTagIndexingRule", false); put("v2.updateTagIndexingRuleExemption", false); put("v2.deleteModelLabRun", false); put("v2.getModelLabArtifactContent", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java b/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java index 641afd8f10d..20bf3a9120c 100644 --- a/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java @@ -598,13 +598,6 @@ public CompletableFuture createTagIndexingRuleAsync( */ public ApiResponse createTagIndexingRuleWithHttpInfo( TagIndexingRuleCreateRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "createTagIndexingRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -647,16 +640,6 @@ public ApiResponse createTagIndexingRuleWithHttpInfo( */ public CompletableFuture> createTagIndexingRuleWithHttpInfoAsync(TagIndexingRuleCreateRequest body) { - // Check if unstable operation is enabled - String operationId = "createTagIndexingRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -1364,13 +1347,6 @@ public CompletableFuture deleteTagIndexingRuleAsync(String id) { * */ public ApiResponse deleteTagIndexingRuleWithHttpInfo(String id) throws ApiException { - // Check if unstable operation is enabled - String operationId = "deleteTagIndexingRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1414,16 +1390,6 @@ public ApiResponse deleteTagIndexingRuleWithHttpInfo(String id) throws Api * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> deleteTagIndexingRuleWithHttpInfoAsync(String id) { - // Check if unstable operation is enabled - String operationId = "deleteTagIndexingRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -2424,13 +2390,6 @@ public CompletableFuture getTagIndexingRuleAsync(String */ public ApiResponse getTagIndexingRuleWithHttpInfo(String id) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getTagIndexingRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -2475,16 +2434,6 @@ public ApiResponse getTagIndexingRuleWithHttpInfo(Strin */ public CompletableFuture> getTagIndexingRuleWithHttpInfoAsync(String id) { - // Check if unstable operation is enabled - String operationId = "getTagIndexingRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -4165,13 +4114,6 @@ public CompletableFuture listTagIndexingRulesAsync( */ public ApiResponse listTagIndexingRulesWithHttpInfo( ListTagIndexingRulesOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listTagIndexingRules"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; Long pageLimit = parameters.pageLimit; Long pageOffset = parameters.pageOffset; @@ -4216,16 +4158,6 @@ public ApiResponse listTagIndexingRulesWithHttpInfo( */ public CompletableFuture> listTagIndexingRulesWithHttpInfoAsync(ListTagIndexingRulesOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "listTagIndexingRules"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; Long pageLimit = parameters.pageLimit; Long pageOffset = parameters.pageOffset; @@ -4318,13 +4250,6 @@ public CompletableFuture listTagIndexingRulesForMetric */ public ApiResponse listTagIndexingRulesForMetricWithHttpInfo( String metricName) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listTagIndexingRulesForMetric"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'metricName' is set @@ -4371,16 +4296,6 @@ public ApiResponse listTagIndexingRulesForMetricWithHt */ public CompletableFuture> listTagIndexingRulesForMetricWithHttpInfoAsync(String metricName) { - // Check if unstable operation is enabled - String operationId = "listTagIndexingRulesForMetric"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'metricName' is set @@ -5250,13 +5165,6 @@ public CompletableFuture reorderTagIndexingRulesAsync(TagIndexingRuleOrder */ public ApiResponse reorderTagIndexingRulesWithHttpInfo(TagIndexingRuleOrderRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "reorderTagIndexingRules"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -5299,16 +5207,6 @@ public ApiResponse reorderTagIndexingRulesWithHttpInfo(TagIndexingRuleOrde */ public CompletableFuture> reorderTagIndexingRulesWithHttpInfoAsync( TagIndexingRuleOrderRequest body) { - // Check if unstable operation is enabled - String operationId = "reorderTagIndexingRules"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -5946,13 +5844,6 @@ public CompletableFuture updateTagIndexingRuleAsync( */ public ApiResponse updateTagIndexingRuleWithHttpInfo( String id, TagIndexingRuleUpdateRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "updateTagIndexingRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'id' is set @@ -6004,16 +5895,6 @@ public ApiResponse updateTagIndexingRuleWithHttpInfo( */ public CompletableFuture> updateTagIndexingRuleWithHttpInfoAsync(String id, TagIndexingRuleUpdateRequest body) { - // Check if unstable operation is enabled - String operationId = "updateTagIndexingRule"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'id' is set diff --git a/src/test/resources/com/datadog/api/client/v2/api/metrics.feature b/src/test/resources/com/datadog/api/client/v2/api/metrics.feature index c8810c750a0..2350a4b1c45 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/metrics.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/metrics.feature @@ -96,7 +96,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Create a tag indexing rule returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "CreateTagIndexingRule" enabled And new "CreateTagIndexingRule" request And body with value {"data": {"type": "tag_indexing_rules", "attributes": {"name": "test", "metric_name_matches": ["dd.test.*"], "options": {"version": 99, "data": {"override_previous_rules": false, "manage_preexisting_metrics": true}}}}} When the request is sent @@ -105,7 +104,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Create a tag indexing rule returns "Created" response Given a valid "appKeyAuth" key in the system - And operation "CreateTagIndexingRule" enabled And new "CreateTagIndexingRule" request And body with value {"data": {"attributes": {"exclude_tags_mode": false, "ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {}, "manage_preexisting_metrics": true, "metric_match": {"queried_window_seconds": 3600}, "override_previous_rules": false}, "version": 1}, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} When the request is sent @@ -114,7 +112,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Create a tag indexing rule with exclude-mode tag usage fields returns "Created" response Given a valid "appKeyAuth" key in the system - And operation "CreateTagIndexingRule" enabled And new "CreateTagIndexingRule" request And body with value {"data": {"attributes": {"exclude_tags_mode": true, "ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {"exclude_not_queried_window_seconds": 3600, "exclude_not_used_in_assets": true}, "manage_preexisting_metrics": true, "override_previous_rules": false}, "version": 1}, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} When the request is sent @@ -123,7 +120,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Create a tag indexing rule with exclude_not_queried_window_seconds and exclude_tags_mode false returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "CreateTagIndexingRule" enabled And new "CreateTagIndexingRule" request And body with value {"data": {"attributes": {"exclude_tags_mode": false, "ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {"exclude_not_queried_window_seconds": 3600}, "manage_preexisting_metrics": true, "override_previous_rules": false}, "version": 1}, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} When the request is sent @@ -132,7 +128,6 @@ Feature: Metrics @skip @team:ddoghq/metrics-experience Scenario: Create a tag indexing rule with exclude_not_queried_window_seconds over the maximum returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "CreateTagIndexingRule" enabled And new "CreateTagIndexingRule" request And body with value {"data": {"attributes": {"exclude_tags_mode": true, "ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {"exclude_not_queried_window_seconds": 7776001}, "manage_preexisting_metrics": true, "override_previous_rules": false}, "version": 1}, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} When the request is sent @@ -141,7 +136,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Create a tag indexing rule with exclude_not_used_in_assets and exclude_tags_mode false returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "CreateTagIndexingRule" enabled And new "CreateTagIndexingRule" request And body with value {"data": {"attributes": {"exclude_tags_mode": false, "ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {"exclude_not_used_in_assets": true}, "manage_preexisting_metrics": true, "override_previous_rules": false}, "version": 1}, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} When the request is sent @@ -222,7 +216,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Delete a tag indexing rule returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "DeleteTagIndexingRule" enabled And new "DeleteTagIndexingRule" request And request contains "id" parameter with value "not-a-valid-uuid" When the request is sent @@ -231,7 +224,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Delete a tag indexing rule returns "No Content" response Given a valid "appKeyAuth" key in the system - And operation "DeleteTagIndexingRule" enabled And there is a valid "tag_indexing_rule" in the system And new "DeleteTagIndexingRule" request And request contains "id" parameter from "tag_indexing_rule.data.id" @@ -412,7 +404,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Get a tag indexing rule returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "GetTagIndexingRule" enabled And new "GetTagIndexingRule" request And request contains "id" parameter with value "not-a-valid-uuid" When the request is sent @@ -421,7 +412,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Get a tag indexing rule returns "Not Found" response Given a valid "appKeyAuth" key in the system - And operation "GetTagIndexingRule" enabled And new "GetTagIndexingRule" request And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" When the request is sent @@ -430,7 +420,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Get a tag indexing rule returns "OK" response Given a valid "appKeyAuth" key in the system - And operation "GetTagIndexingRule" enabled And there is a valid "tag_indexing_rule" in the system And new "GetTagIndexingRule" request And request contains "id" parameter from "tag_indexing_rule.data.id" @@ -561,7 +550,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: List tag indexing rules for a metric returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "ListTagIndexingRulesForMetric" enabled And new "ListTagIndexingRulesForMetric" request And request contains "metric_name" parameter with value "1invalid" When the request is sent @@ -570,7 +558,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: List tag indexing rules for a metric returns "OK" response Given a valid "appKeyAuth" key in the system - And operation "ListTagIndexingRulesForMetric" enabled And new "ListTagIndexingRulesForMetric" request And request contains "metric_name" parameter with value "{{ unique_alnum }}" When the request is sent @@ -579,7 +566,6 @@ Feature: Metrics @generated @skip @team:ddoghq/metrics-experience Scenario: List tag indexing rules returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "ListTagIndexingRules" enabled And new "ListTagIndexingRules" request When the request is sent Then the response status is 400 Bad Request @@ -587,7 +573,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: List tag indexing rules returns "OK" response Given a valid "appKeyAuth" key in the system - And operation "ListTagIndexingRules" enabled And new "ListTagIndexingRules" request When the request is sent Then the response status is 200 OK @@ -672,7 +657,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Reorder tag indexing rules returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "ReorderTagIndexingRules" enabled And new "ReorderTagIndexingRules" request And body with value {"data": {"attributes": {"rule_ids": []}, "type": "tag_indexing_rules"}} When the request is sent @@ -681,7 +665,6 @@ Feature: Metrics @skip-terraform-config @team:ddoghq/metrics-experience Scenario: Reorder tag indexing rules returns "No Content" response Given a valid "appKeyAuth" key in the system - And operation "ReorderTagIndexingRules" enabled And there is a valid "tag_indexing_rule" in the system And new "ReorderTagIndexingRules" request And body with value {"data": {"attributes": {"rule_ids": ["{{ tag_indexing_rule.data.id }}"]}, "type": "tag_indexing_rules"}} @@ -691,7 +674,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Reorder tag indexing rules returns "Not Found" response Given a valid "appKeyAuth" key in the system - And operation "ReorderTagIndexingRules" enabled And new "ReorderTagIndexingRules" request And body with value {"data": {"attributes": {"rule_ids": ["00000000-0000-0000-0000-000000000001", "00000000-0000-0000-0000-000000000002"]}, "type": "tag_indexing_rules"}} When the request is sent @@ -1236,7 +1218,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Update a tag indexing rule returns "Bad Request" response Given a valid "appKeyAuth" key in the system - And operation "UpdateTagIndexingRule" enabled And new "UpdateTagIndexingRule" request And request contains "id" parameter with value "not-a-valid-uuid" And body with value {"data": {"attributes": {"ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {}, "manage_preexisting_metrics": true, "metric_match": {"queried_window_seconds": 3600}, "override_previous_rules": false}, "version": 1}, "rule_order": 2, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} @@ -1246,7 +1227,6 @@ Feature: Metrics @generated @skip @team:ddoghq/metrics-experience Scenario: Update a tag indexing rule returns "Conflict" response Given a valid "appKeyAuth" key in the system - And operation "UpdateTagIndexingRule" enabled And new "UpdateTagIndexingRule" request And request contains "id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {"exclude_not_queried_window_seconds": 3600, "exclude_not_used_in_assets": false}, "manage_preexisting_metrics": true, "metric_match": {"queried_window_seconds": 3600}, "override_previous_rules": false}, "version": 1}, "rule_order": 2, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} @@ -1256,7 +1236,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Update a tag indexing rule returns "Not Found" response Given a valid "appKeyAuth" key in the system - And operation "UpdateTagIndexingRule" enabled And new "UpdateTagIndexingRule" request And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" And body with value {"data": {"attributes": {"ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {}, "manage_preexisting_metrics": true, "metric_match": {"queried_window_seconds": 3600}, "override_previous_rules": false}, "version": 1}, "rule_order": 2, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} @@ -1266,7 +1245,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Update a tag indexing rule returns "OK" response Given a valid "appKeyAuth" key in the system - And operation "UpdateTagIndexingRule" enabled And there is a valid "tag_indexing_rule" in the system And new "UpdateTagIndexingRule" request And request contains "id" parameter from "tag_indexing_rule.data.id" @@ -1277,7 +1255,6 @@ Feature: Metrics @team:ddoghq/metrics-experience Scenario: Update a tag indexing rule with exclude-mode tag usage fields returns "OK" response Given a valid "appKeyAuth" key in the system - And operation "UpdateTagIndexingRule" enabled And there is a valid "tag_indexing_rule_exclude_mode" in the system And new "UpdateTagIndexingRule" request And request contains "id" parameter from "tag_indexing_rule_exclude_mode.data.id"