From c83dc0107e99203d4359231131ae542e039dcc86 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 16 Jun 2026 20:52:23 +0000 Subject: [PATCH] Regenerate client from commit 5839129 of spec repo --- .generator/schemas/v2/openapi.yaml | 30 ++++++++++ examples/v2/metrics/CreateTagIndexingRule.rb | 3 + .../metrics/CreateTagIndexingRuleExemption.rb | 3 + examples/v2/metrics/DeleteTagIndexingRule.rb | 3 + .../metrics/DeleteTagIndexingRuleExemption.rb | 3 + examples/v2/metrics/GetTagIndexingRule.rb | 3 + .../v2/metrics/GetTagIndexingRuleExemption.rb | 3 + examples/v2/metrics/ListTagIndexingRules.rb | 3 + .../metrics/ListTagIndexingRulesForMetric.rb | 3 + .../v2/metrics/ReorderTagIndexingRules.rb | 3 + examples/v2/metrics/UpdateTagIndexingRule.rb | 3 + features/v2/metrics.feature | 25 ++++++++ lib/datadog_api_client/configuration.rb | 10 ++++ lib/datadog_api_client/v2/api/metrics_api.rb | 60 +++++++++++++++++++ 14 files changed, 155 insertions(+) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 607e2e287b54..d9e8ee25dd7d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -148700,6 +148700,9 @@ 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 @@ -148778,6 +148781,9 @@ 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: |- @@ -148840,6 +148846,9 @@ 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: |- @@ -148882,6 +148891,9 @@ 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 @@ -148946,6 +148958,9 @@ 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. @@ -149037,6 +149052,9 @@ 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: |- @@ -149466,6 +149484,9 @@ 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: |- Returns why a metric is excluded from tag indexing rules. @@ -149529,6 +149550,9 @@ 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: |- Exempt a metric from all tag indexing rules. The response includes the created @@ -149598,6 +149622,9 @@ 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}/tag-indexing-rules: get: description: |- @@ -149649,6 +149676,9 @@ 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.rb b/examples/v2/metrics/CreateTagIndexingRule.rb index d4e1d8e4f14d..76028b26765f 100644 --- a/examples/v2/metrics/CreateTagIndexingRule.rb +++ b/examples/v2/metrics/CreateTagIndexingRule.rb @@ -1,6 +1,9 @@ # Create a tag indexing rule returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.create_tag_indexing_rule".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TagIndexingRuleCreateRequest.new({ diff --git a/examples/v2/metrics/CreateTagIndexingRuleExemption.rb b/examples/v2/metrics/CreateTagIndexingRuleExemption.rb index 131939597cb3..43729d2a43bb 100644 --- a/examples/v2/metrics/CreateTagIndexingRuleExemption.rb +++ b/examples/v2/metrics/CreateTagIndexingRuleExemption.rb @@ -1,6 +1,9 @@ # Create a tag indexing rule exemption returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.create_tag_indexing_rule_exemption".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TagIndexingRuleExemptionCreateRequest.new({ diff --git a/examples/v2/metrics/DeleteTagIndexingRule.rb b/examples/v2/metrics/DeleteTagIndexingRule.rb index 1ca601e65a1a..bf9c50c75e6a 100644 --- a/examples/v2/metrics/DeleteTagIndexingRule.rb +++ b/examples/v2/metrics/DeleteTagIndexingRule.rb @@ -1,6 +1,9 @@ # Delete a tag indexing rule returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.delete_tag_indexing_rule".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb b/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb index 749c14ab8827..b5fdaeb480a9 100644 --- a/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb +++ b/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb @@ -1,5 +1,8 @@ # Delete a tag indexing rule exemption returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.delete_tag_indexing_rule_exemption".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new api_instance.delete_tag_indexing_rule_exemption("metric_name") diff --git a/examples/v2/metrics/GetTagIndexingRule.rb b/examples/v2/metrics/GetTagIndexingRule.rb index 33d5ff091c9d..afd1c564dde2 100644 --- a/examples/v2/metrics/GetTagIndexingRule.rb +++ b/examples/v2/metrics/GetTagIndexingRule.rb @@ -1,6 +1,9 @@ # Get a tag indexing rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.get_tag_indexing_rule".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/GetTagIndexingRuleExemption.rb b/examples/v2/metrics/GetTagIndexingRuleExemption.rb index 92a823429487..ac287c25eae0 100644 --- a/examples/v2/metrics/GetTagIndexingRuleExemption.rb +++ b/examples/v2/metrics/GetTagIndexingRuleExemption.rb @@ -1,5 +1,8 @@ # Get a tag indexing rule exemption returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.get_tag_indexing_rule_exemption".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.get_tag_indexing_rule_exemption("metric_name") diff --git a/examples/v2/metrics/ListTagIndexingRules.rb b/examples/v2/metrics/ListTagIndexingRules.rb index d2979623e920..a123f4185fea 100644 --- a/examples/v2/metrics/ListTagIndexingRules.rb +++ b/examples/v2/metrics/ListTagIndexingRules.rb @@ -1,5 +1,8 @@ # List tag indexing rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.list_tag_indexing_rules".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.list_tag_indexing_rules() diff --git a/examples/v2/metrics/ListTagIndexingRulesForMetric.rb b/examples/v2/metrics/ListTagIndexingRulesForMetric.rb index f9ec7410893b..975b570aae31 100644 --- a/examples/v2/metrics/ListTagIndexingRulesForMetric.rb +++ b/examples/v2/metrics/ListTagIndexingRulesForMetric.rb @@ -1,5 +1,8 @@ # List tag indexing rules for a metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.list_tag_indexing_rules_for_metric".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.list_tag_indexing_rules_for_metric("ExampleMetric") diff --git a/examples/v2/metrics/ReorderTagIndexingRules.rb b/examples/v2/metrics/ReorderTagIndexingRules.rb index 2fa31d3e0083..547c01f78c95 100644 --- a/examples/v2/metrics/ReorderTagIndexingRules.rb +++ b/examples/v2/metrics/ReorderTagIndexingRules.rb @@ -1,6 +1,9 @@ # Reorder tag indexing rules returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.reorder_tag_indexing_rules".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/UpdateTagIndexingRule.rb b/examples/v2/metrics/UpdateTagIndexingRule.rb index ee521d16a70c..81986dc2a56e 100644 --- a/examples/v2/metrics/UpdateTagIndexingRule.rb +++ b/examples/v2/metrics/UpdateTagIndexingRule.rb @@ -1,6 +1,9 @@ # Update a tag indexing rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.update_tag_indexing_rule".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "tag_indexing_rule" in the system diff --git a/features/v2/metrics.feature b/features/v2/metrics.feature index 0d0dac2e9d09..24b766d5d565 100644 --- a/features/v2/metrics.feature +++ b/features/v2/metrics.feature @@ -71,6 +71,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Create a tag indexing rule exemption returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "CreateTagIndexingRuleExemption" enabled And new "CreateTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"reason": "This metric has a pre-existing tag configuration."}, "type": "tag_indexing_rule_exemptions"}} @@ -80,6 +81,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Create a tag indexing rule exemption returns "Created" response Given a valid "appKeyAuth" key in the system + And operation "CreateTagIndexingRuleExemption" enabled And new "CreateTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"reason": "This metric has a pre-existing tag configuration."}, "type": "tag_indexing_rule_exemptions"}} @@ -89,6 +91,7 @@ Feature: Metrics @team:DataDog/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 @@ -97,6 +100,7 @@ Feature: Metrics @team:DataDog/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": {"queried_tags_window_seconds": 3600, "related_asset_tags": false}, "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 @@ -123,6 +127,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Delete a tag indexing rule exemption returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "DeleteTagIndexingRuleExemption" enabled And new "DeleteTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -131,6 +136,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Delete a tag indexing rule exemption returns "No Content" response Given a valid "appKeyAuth" key in the system + And operation "DeleteTagIndexingRuleExemption" enabled And new "DeleteTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -139,6 +145,7 @@ Feature: Metrics @team:DataDog/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 @@ -147,6 +154,7 @@ Feature: Metrics @team:DataDog/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" @@ -222,6 +230,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Get a tag indexing rule exemption returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "GetTagIndexingRuleExemption" enabled And new "GetTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -230,6 +239,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Get a tag indexing rule exemption returns "Not Found" response Given a valid "appKeyAuth" key in the system + And operation "GetTagIndexingRuleExemption" enabled And new "GetTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -238,6 +248,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Get a tag indexing rule exemption returns "OK" response Given a valid "appKeyAuth" key in the system + And operation "GetTagIndexingRuleExemption" enabled And new "GetTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -246,6 +257,7 @@ Feature: Metrics @team:DataDog/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 @@ -254,6 +266,7 @@ Feature: Metrics @team:DataDog/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 @@ -262,6 +275,7 @@ Feature: Metrics @team:DataDog/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" @@ -368,6 +382,7 @@ Feature: Metrics @team:DataDog/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 @@ -376,6 +391,7 @@ Feature: Metrics @team:DataDog/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 @@ -384,6 +400,7 @@ Feature: Metrics @generated @skip @team:DataDog/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 @@ -391,6 +408,7 @@ Feature: Metrics @team:DataDog/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 @@ -475,6 +493,7 @@ Feature: Metrics @team:DataDog/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 @@ -483,6 +502,7 @@ Feature: Metrics @team:DataDog/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"}} @@ -492,6 +512,7 @@ Feature: Metrics @team:DataDog/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 @@ -961,6 +982,7 @@ Feature: Metrics @team:DataDog/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": {"queried_tags_window_seconds": 3600, "related_asset_tags": 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"}} @@ -970,6 +992,7 @@ Feature: Metrics @generated @skip @team:DataDog/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": {"queried_tags_window_seconds": 3600, "related_asset_tags": 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"}} @@ -979,6 +1002,7 @@ Feature: Metrics @team:DataDog/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": {"queried_tags_window_seconds": 3600, "related_asset_tags": 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"}} @@ -988,6 +1012,7 @@ Feature: Metrics @team:DataDog/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" diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index 13e999f11dfc..0961a5d47652 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -548,6 +548,16 @@ def initialize "v2.remove_role_from_restriction_query": false, "v2.replace_restriction_query": false, "v2.update_restriction_query": false, + "v2.create_tag_indexing_rule": false, + "v2.create_tag_indexing_rule_exemption": false, + "v2.delete_tag_indexing_rule": false, + "v2.delete_tag_indexing_rule_exemption": false, + "v2.get_tag_indexing_rule": false, + "v2.get_tag_indexing_rule_exemption": 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.delete_model_lab_run": false, "v2.get_model_lab_artifact_content": false, "v2.get_model_lab_project": false, diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index 7195d0e3ee11..1f827c5b1e03 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -195,6 +195,12 @@ def create_tag_indexing_rule(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleResponse, Integer, Hash)>] TagIndexingRuleResponse data, response status code and response headers def create_tag_indexing_rule_with_http_info(body, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.create_tag_indexing_rule".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_tag_indexing_rule") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_tag_indexing_rule")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.create_tag_indexing_rule ...' @@ -264,6 +270,12 @@ def create_tag_indexing_rule_exemption(metric_name, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleExemptionResponse, Integer, Hash)>] TagIndexingRuleExemptionResponse data, response status code and response headers def create_tag_indexing_rule_exemption_with_http_info(metric_name, body, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.create_tag_indexing_rule_exemption".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_tag_indexing_rule_exemption") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_tag_indexing_rule_exemption")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.create_tag_indexing_rule_exemption ...' @@ -479,6 +491,12 @@ def delete_tag_indexing_rule(id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_tag_indexing_rule_with_http_info(id, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.delete_tag_indexing_rule".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_tag_indexing_rule") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_tag_indexing_rule")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.delete_tag_indexing_rule ...' @@ -546,6 +564,12 @@ def delete_tag_indexing_rule_exemption(metric_name, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_tag_indexing_rule_exemption_with_http_info(metric_name, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.delete_tag_indexing_rule_exemption".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_tag_indexing_rule_exemption") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_tag_indexing_rule_exemption")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.delete_tag_indexing_rule_exemption ...' @@ -763,6 +787,12 @@ def get_tag_indexing_rule(id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleResponse, Integer, Hash)>] TagIndexingRuleResponse data, response status code and response headers def get_tag_indexing_rule_with_http_info(id, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.get_tag_indexing_rule".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_tag_indexing_rule") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_tag_indexing_rule")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.get_tag_indexing_rule ...' @@ -831,6 +861,12 @@ def get_tag_indexing_rule_exemption(metric_name, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleExemptionResponse, Integer, Hash)>] TagIndexingRuleExemptionResponse data, response status code and response headers def get_tag_indexing_rule_exemption_with_http_info(metric_name, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.get_tag_indexing_rule_exemption".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_tag_indexing_rule_exemption") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_tag_indexing_rule_exemption")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.get_tag_indexing_rule_exemption ...' @@ -1222,6 +1258,12 @@ def list_tag_indexing_rules(opts = {}) # @option opts [String] :search Substring filter on rule name. # @return [Array<(TagIndexingRulesResponse, Integer, Hash)>] TagIndexingRulesResponse data, response status code and response headers def list_tag_indexing_rules_with_http_info(opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.list_tag_indexing_rules".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_tag_indexing_rules") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_tag_indexing_rules")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.list_tag_indexing_rules ...' @@ -1287,6 +1329,12 @@ def list_tag_indexing_rules_for_metric(metric_name, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRulesResponse, Integer, Hash)>] TagIndexingRulesResponse data, response status code and response headers def list_tag_indexing_rules_for_metric_with_http_info(metric_name, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.list_tag_indexing_rules_for_metric".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_tag_indexing_rules_for_metric") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_tag_indexing_rules_for_metric")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.list_tag_indexing_rules_for_metric ...' @@ -1644,6 +1692,12 @@ def reorder_tag_indexing_rules(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def reorder_tag_indexing_rules_with_http_info(body, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.reorder_tag_indexing_rules".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.reorder_tag_indexing_rules") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.reorder_tag_indexing_rules")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.reorder_tag_indexing_rules ...' @@ -1874,6 +1928,12 @@ def update_tag_indexing_rule(id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleResponse, Integer, Hash)>] TagIndexingRuleResponse data, response status code and response headers def update_tag_indexing_rule_with_http_info(id, body, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.update_tag_indexing_rule".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_tag_indexing_rule") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_tag_indexing_rule")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.update_tag_indexing_rule ...'