diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 692ab25bd4..42276a3346 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.py b/examples/v2/metrics/CreateTagIndexingRule.py index 0b9b0d90c9..f01027490c 100644 --- a/examples/v2/metrics/CreateTagIndexingRule.py +++ b/examples/v2/metrics/CreateTagIndexingRule.py @@ -45,7 +45,6 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] -configuration.unstable_operations["create_tag_indexing_rule"] = True with ApiClient(configuration) as api_client: api_instance = MetricsApi(api_client) response = api_instance.create_tag_indexing_rule(body=body) diff --git a/examples/v2/metrics/CreateTagIndexingRule_2435129406.py b/examples/v2/metrics/CreateTagIndexingRule_2435129406.py index cfd1bf3092..ddabc520f8 100644 --- a/examples/v2/metrics/CreateTagIndexingRule_2435129406.py +++ b/examples/v2/metrics/CreateTagIndexingRule_2435129406.py @@ -44,7 +44,6 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] -configuration.unstable_operations["create_tag_indexing_rule"] = True with ApiClient(configuration) as api_client: api_instance = MetricsApi(api_client) response = api_instance.create_tag_indexing_rule(body=body) diff --git a/examples/v2/metrics/DeleteTagIndexingRule.py b/examples/v2/metrics/DeleteTagIndexingRule.py index 134454a430..19976ba8a0 100644 --- a/examples/v2/metrics/DeleteTagIndexingRule.py +++ b/examples/v2/metrics/DeleteTagIndexingRule.py @@ -11,7 +11,6 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] -configuration.unstable_operations["delete_tag_indexing_rule"] = True with ApiClient(configuration) as api_client: api_instance = MetricsApi(api_client) api_instance.delete_tag_indexing_rule( diff --git a/examples/v2/metrics/GetTagIndexingRule.py b/examples/v2/metrics/GetTagIndexingRule.py index ec27ea557c..c5b6066cce 100644 --- a/examples/v2/metrics/GetTagIndexingRule.py +++ b/examples/v2/metrics/GetTagIndexingRule.py @@ -11,7 +11,6 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] -configuration.unstable_operations["get_tag_indexing_rule"] = True with ApiClient(configuration) as api_client: api_instance = MetricsApi(api_client) response = api_instance.get_tag_indexing_rule( diff --git a/examples/v2/metrics/ListTagIndexingRules.py b/examples/v2/metrics/ListTagIndexingRules.py index 04c888b091..873e5f6b22 100644 --- a/examples/v2/metrics/ListTagIndexingRules.py +++ b/examples/v2/metrics/ListTagIndexingRules.py @@ -8,7 +8,6 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] -configuration.unstable_operations["list_tag_indexing_rules"] = True with ApiClient(configuration) as api_client: api_instance = MetricsApi(api_client) response = api_instance.list_tag_indexing_rules() diff --git a/examples/v2/metrics/ListTagIndexingRulesForMetric.py b/examples/v2/metrics/ListTagIndexingRulesForMetric.py index 82872cd3d6..b4d080747d 100644 --- a/examples/v2/metrics/ListTagIndexingRulesForMetric.py +++ b/examples/v2/metrics/ListTagIndexingRulesForMetric.py @@ -8,7 +8,6 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] -configuration.unstable_operations["list_tag_indexing_rules_for_metric"] = True with ApiClient(configuration) as api_client: api_instance = MetricsApi(api_client) response = api_instance.list_tag_indexing_rules_for_metric( diff --git a/examples/v2/metrics/ReorderTagIndexingRules.py b/examples/v2/metrics/ReorderTagIndexingRules.py index 13b020e21c..ff488aeaa3 100644 --- a/examples/v2/metrics/ReorderTagIndexingRules.py +++ b/examples/v2/metrics/ReorderTagIndexingRules.py @@ -26,7 +26,6 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] -configuration.unstable_operations["reorder_tag_indexing_rules"] = True with ApiClient(configuration) as api_client: api_instance = MetricsApi(api_client) api_instance.reorder_tag_indexing_rules(body=body) diff --git a/examples/v2/metrics/UpdateTagIndexingRule.py b/examples/v2/metrics/UpdateTagIndexingRule.py index a99a9fb13b..5a71ab35ac 100644 --- a/examples/v2/metrics/UpdateTagIndexingRule.py +++ b/examples/v2/metrics/UpdateTagIndexingRule.py @@ -47,7 +47,6 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] -configuration.unstable_operations["update_tag_indexing_rule"] = True with ApiClient(configuration) as api_client: api_instance = MetricsApi(api_client) response = api_instance.update_tag_indexing_rule(id=TAG_INDEXING_RULE_DATA_ID, body=body) diff --git a/examples/v2/metrics/UpdateTagIndexingRule_4127399471.py b/examples/v2/metrics/UpdateTagIndexingRule_4127399471.py index 128da5b53b..6ad1ad9219 100644 --- a/examples/v2/metrics/UpdateTagIndexingRule_4127399471.py +++ b/examples/v2/metrics/UpdateTagIndexingRule_4127399471.py @@ -47,7 +47,6 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] -configuration.unstable_operations["update_tag_indexing_rule"] = True with ApiClient(configuration) as api_client: api_instance = MetricsApi(api_client) response = api_instance.update_tag_indexing_rule(id=TAG_INDEXING_RULE_EXCLUDE_MODE_DATA_ID, body=body) diff --git a/src/datadog_api_client/configuration.py b/src/datadog_api_client/configuration.py index e3e10d4b7a..8fe945e5ea 100644 --- a/src/datadog_api_client/configuration.py +++ b/src/datadog_api_client/configuration.py @@ -724,19 +724,12 @@ def __init__( "v2.replace_restriction_query": False, "v2.update_restriction_query": False, "v2.create_historical_metrics_configuration": False, - "v2.create_tag_indexing_rule": False, "v2.create_tag_indexing_rule_exemption": False, "v2.delete_historical_metrics_configuration": False, - "v2.delete_tag_indexing_rule": False, "v2.delete_tag_indexing_rule_exemption": False, "v2.get_historical_metrics_configuration": False, - "v2.get_tag_indexing_rule": False, "v2.get_tag_indexing_rule_exemption": False, "v2.list_tag_indexing_rule_exemptions": False, - "v2.list_tag_indexing_rules": False, - "v2.list_tag_indexing_rules_for_metric": False, - "v2.reorder_tag_indexing_rules": False, - "v2.update_tag_indexing_rule": False, "v2.update_tag_indexing_rule_exemption": False, "v2.delete_model_lab_run": False, "v2.get_model_lab_artifact_content": False, diff --git a/tests/v2/features/metrics.feature b/tests/v2/features/metrics.feature index c8810c750a..2350a4b1c4 100644 --- a/tests/v2/features/metrics.feature +++ b/tests/v2/features/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"