Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 5 additions & 26 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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: |-
Expand Down
1 change: 0 additions & 1 deletion examples/v2/metrics/CreateTagIndexingRule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.create_tag_indexing_rule".to_sym] = true
end
api_instance = DatadogAPIClient::V2::MetricsAPI.new

Expand Down
1 change: 0 additions & 1 deletion examples/v2/metrics/CreateTagIndexingRule_2435129406.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.create_tag_indexing_rule".to_sym] = true
end
api_instance = DatadogAPIClient::V2::MetricsAPI.new

Expand Down
1 change: 0 additions & 1 deletion examples/v2/metrics/DeleteTagIndexingRule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.delete_tag_indexing_rule".to_sym] = true
end
api_instance = DatadogAPIClient::V2::MetricsAPI.new

Expand Down
1 change: 0 additions & 1 deletion examples/v2/metrics/GetTagIndexingRule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.get_tag_indexing_rule".to_sym] = true
end
api_instance = DatadogAPIClient::V2::MetricsAPI.new

Expand Down
1 change: 0 additions & 1 deletion examples/v2/metrics/ListTagIndexingRules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
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()
1 change: 0 additions & 1 deletion examples/v2/metrics/ListTagIndexingRulesForMetric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
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")
1 change: 0 additions & 1 deletion examples/v2/metrics/ReorderTagIndexingRules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.reorder_tag_indexing_rules".to_sym] = true
end
api_instance = DatadogAPIClient::V2::MetricsAPI.new

Expand Down
1 change: 0 additions & 1 deletion examples/v2/metrics/UpdateTagIndexingRule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.update_tag_indexing_rule".to_sym] = true
end
api_instance = DatadogAPIClient::V2::MetricsAPI.new

Expand Down
1 change: 0 additions & 1 deletion examples/v2/metrics/UpdateTagIndexingRule_4127399471.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.access_token = ENV["DD_BEARER_TOKEN"]
config.unstable_operations["v2.update_tag_indexing_rule".to_sym] = true
end
api_instance = DatadogAPIClient::V2::MetricsAPI.new

Expand Down
23 changes: 0 additions & 23 deletions features/v2/metrics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -579,15 +566,13 @@ 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

@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
Expand Down Expand Up @@ -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
Expand All @@ -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"}}
Expand All @@ -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
Expand Down Expand Up @@ -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"}}
Expand All @@ -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"}}
Expand All @@ -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"}}
Expand All @@ -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"
Expand All @@ -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"
Expand Down
Loading
Loading