Skip to content
Open
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
5 changes: 0 additions & 5 deletions examples/v2/metrics/CreateTagIndexingRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.datadog.api.client.v2.model.TagIndexingRuleCreateAttributes;
import com.datadog.api.client.v2.model.TagIndexingRuleCreateData;
import com.datadog.api.client.v2.model.TagIndexingRuleCreateRequest;
import com.datadog.api.client.v2.model.TagIndexingRuleDynamicTags;
import com.datadog.api.client.v2.model.TagIndexingRuleMetricMatch;
import com.datadog.api.client.v2.model.TagIndexingRuleOptions;
import com.datadog.api.client.v2.model.TagIndexingRuleOptionsData;
Expand Down Expand Up @@ -34,10 +33,6 @@ public static void main(String[] args) {
new TagIndexingRuleOptions()
.data(
new TagIndexingRuleOptionsData()
.dynamicTags(
new TagIndexingRuleDynamicTags()
.queriedTagsWindowSeconds(3600L)
.relatedAssetTags(false))
.managePreexistingMetrics(true)
.metricMatch(
new TagIndexingRuleMetricMatch()
Expand Down
5 changes: 0 additions & 5 deletions examples/v2/metrics/UpdateTagIndexingRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.MetricsApi;
import com.datadog.api.client.v2.model.TagIndexingRuleDynamicTags;
import com.datadog.api.client.v2.model.TagIndexingRuleMetricMatch;
import com.datadog.api.client.v2.model.TagIndexingRuleOptions;
import com.datadog.api.client.v2.model.TagIndexingRuleOptionsData;
Expand Down Expand Up @@ -36,10 +35,6 @@ public static void main(String[] args) {
new TagIndexingRuleOptions()
.data(
new TagIndexingRuleOptionsData()
.dynamicTags(
new TagIndexingRuleDynamicTags()
.queriedTagsWindowSeconds(3600L)
.relatedAssetTags(false))
.managePreexistingMetrics(true)
.metricMatch(
new TagIndexingRuleMetricMatch()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Feature: Metrics
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"}}
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": {"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
Then the response status is 201 Created

Expand Down Expand Up @@ -1111,7 +1111,7 @@ Feature: Metrics
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"}}
And body with value {"data": {"attributes": {"ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"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"}}
When the request is sent
Then the response status is 400 Bad Request

Expand All @@ -1131,7 +1131,7 @@ Feature: Metrics
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"}}
And body with value {"data": {"attributes": {"ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"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"}}
When the request is sent
Then the response status is 404 Not Found

Expand All @@ -1142,7 +1142,7 @@ Feature: Metrics
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"
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"}}
And body with value {"data": {"attributes": {"ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"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"}}
When the request is sent
Then the response status is 200 OK

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
"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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
},
{
"feature": "Metrics",
"frozen_at": "2026-06-04T16:39:36.532Z",
"frozen_at": "2026-09-18T00:46:15.269Z",
"interactions": [
{
"request": {
Expand All @@ -301,10 +301,6 @@
"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
Expand All @@ -330,7 +326,7 @@
"response": {
"body": {
"encoding": "text",
"value": "{\"data\":{\"id\":\"b0a2d605-eee3-4c3b-89cf-51410b054ae7\",\"type\":\"tag_indexing_rules\",\"attributes\":{\"created_at\":\"2026-06-04T16:39:36.579331Z\",\"created_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"exclude_tags_mode\":false,\"ignored_metric_name_matches\":[],\"metric_name_matches\":[\"dd.test.*\"],\"modified_at\":\"2026-06-04T16:39:36.579331Z\",\"modified_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"my-indexing-rule\",\"options\":{\"version\":1,\"data\":{\"override_previous_rules\":false,\"manage_preexisting_metrics\":true,\"dynamic_tags\":{\"queried_tags_window_seconds\":3600},\"metric_match\":{\"queried_window_seconds\":3600}}},\"rule_order\":1,\"tags\":[\"env\",\"service\"]}}}"
"value": "{\"data\":{\"id\":\"c30f3444-62e7-4245-ab61-d7329582bd50\",\"type\":\"tag_indexing_rules\",\"attributes\":{\"created_at\":\"2026-09-18T00:46:16.397239Z\",\"created_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"exclude_tags_mode\":false,\"ignored_metric_name_matches\":[],\"metric_name_matches\":[\"dd.test.*\"],\"modified_at\":\"2026-09-18T00:46:16.397239Z\",\"modified_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"my-indexing-rule\",\"options\":{\"version\":1,\"data\":{\"override_previous_rules\":false,\"manage_preexisting_metrics\":true,\"metric_match\":{\"queried_window_seconds\":3600}}},\"rule_order\":2,\"tags\":[\"env\",\"service\"]}}}"
},
"headers": {
"content-type": "application/vnd.api+json"
Expand All @@ -347,7 +343,7 @@
},
"content_type": "",
"method": "DELETE",
"path": "/api/v2/metrics/tag-indexing-rules/b0a2d605-eee3-4c3b-89cf-51410b054ae7",
"path": "/api/v2/metrics/tag-indexing-rules/c30f3444-62e7-4245-ab61-d7329582bd50",
"query": []
},
"response": {
Expand Down Expand Up @@ -4704,7 +4700,7 @@
},
{
"feature": "Metrics",
"frozen_at": "2026-06-04T16:39:37.910Z",
"frozen_at": "2026-09-18T00:46:16.863Z",
"interactions": [
{
"request": {
Expand All @@ -4720,10 +4716,6 @@
"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
Expand Down Expand Up @@ -4765,7 +4757,7 @@
},
{
"feature": "Metrics",
"frozen_at": "2026-06-04T16:39:37.964Z",
"frozen_at": "2026-09-18T00:46:17.002Z",
"interactions": [
{
"request": {
Expand All @@ -4781,10 +4773,6 @@
"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
Expand Down Expand Up @@ -4826,7 +4814,7 @@
},
{
"feature": "Metrics",
"frozen_at": "2026-06-04T16:39:38.031Z",
"frozen_at": "2026-09-18T00:46:17.114Z",
"interactions": [
{
"request": {
Expand All @@ -4836,9 +4824,9 @@
"data": {
"attributes": {
"metric_name_matches": [
"dd.TestUpdateatagindexingrulereturnsOKresponse1780591178.*"
"dd.TestUpdateatagindexingrulereturnsOKresponse1789692377.*"
],
"name": "TestUpdateatagindexingrulereturnsOKresponse1780591178",
"name": "TestUpdateatagindexingrulereturnsOKresponse1789692377",
"tags": [
"env",
"service"
Expand All @@ -4856,7 +4844,7 @@
"response": {
"body": {
"encoding": "text",
"value": "{\"data\":{\"id\":\"c9f5704f-f5b9-4afe-9dec-69edfce00c0a\",\"type\":\"tag_indexing_rules\",\"attributes\":{\"created_at\":\"2026-06-04T16:39:38.068057Z\",\"created_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"exclude_tags_mode\":false,\"metric_name_matches\":[\"dd.TestUpdateatagindexingrulereturnsOKresponse1780591178.*\"],\"modified_at\":\"2026-06-04T16:39:38.068057Z\",\"modified_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"TestUpdateatagindexingrulereturnsOKresponse1780591178\",\"options\":{\"version\":1,\"data\":{\"override_previous_rules\":false,\"manage_preexisting_metrics\":true}},\"rule_order\":1,\"tags\":[\"env\",\"service\"]}}}"
"value": "{\"data\":{\"id\":\"dae40f10-d3b9-4136-9875-013fb21ff053\",\"type\":\"tag_indexing_rules\",\"attributes\":{\"created_at\":\"2026-09-18T00:46:17.234614Z\",\"created_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"exclude_tags_mode\":false,\"ignored_metric_name_matches\":[],\"metric_name_matches\":[\"dd.TestUpdateatagindexingrulereturnsOKresponse1789692377.*\"],\"modified_at\":\"2026-09-18T00:46:17.234614Z\",\"modified_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"TestUpdateatagindexingrulereturnsOKresponse1789692377\",\"options\":{\"version\":1,\"data\":{\"override_previous_rules\":false,\"manage_preexisting_metrics\":true}},\"rule_order\":2,\"tags\":[\"env\",\"service\"]}}}"
},
"headers": {
"content-type": "application/vnd.api+json"
Expand All @@ -4879,10 +4867,6 @@
"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
Expand All @@ -4903,13 +4887,13 @@
},
"content_type": "application/json",
"method": "PUT",
"path": "/api/v2/metrics/tag-indexing-rules/c9f5704f-f5b9-4afe-9dec-69edfce00c0a",
"path": "/api/v2/metrics/tag-indexing-rules/dae40f10-d3b9-4136-9875-013fb21ff053",
"query": []
},
"response": {
"body": {
"encoding": "text",
"value": "{\"data\":{\"id\":\"c9f5704f-f5b9-4afe-9dec-69edfce00c0a\",\"type\":\"tag_indexing_rules\",\"attributes\":{\"created_at\":\"2026-06-04T16:39:38.068057Z\",\"created_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"exclude_tags_mode\":false,\"ignored_metric_name_matches\":[],\"metric_name_matches\":[\"dd.test.*\"],\"modified_at\":\"2026-06-04T16:39:38.137079Z\",\"modified_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"my-indexing-rule\",\"options\":{\"version\":1,\"data\":{\"override_previous_rules\":false,\"manage_preexisting_metrics\":true,\"dynamic_tags\":{\"queried_tags_window_seconds\":3600},\"metric_match\":{\"queried_window_seconds\":3600}}},\"rule_order\":2,\"tags\":[\"env\",\"service\"]}}}"
"value": "{\"data\":{\"id\":\"dae40f10-d3b9-4136-9875-013fb21ff053\",\"type\":\"tag_indexing_rules\",\"attributes\":{\"created_at\":\"2026-09-18T00:46:17.234614Z\",\"created_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"exclude_tags_mode\":false,\"ignored_metric_name_matches\":[],\"metric_name_matches\":[\"dd.test.*\"],\"modified_at\":\"2026-09-18T00:46:17.390242Z\",\"modified_by_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"my-indexing-rule\",\"options\":{\"version\":1,\"data\":{\"override_previous_rules\":false,\"manage_preexisting_metrics\":true,\"metric_match\":{\"queried_window_seconds\":3600}}},\"rule_order\":2,\"tags\":[\"env\",\"service\"]}}}"
},
"headers": {
"content-type": "application/vnd.api+json"
Expand All @@ -4926,7 +4910,7 @@
},
"content_type": "",
"method": "DELETE",
"path": "/api/v2/metrics/tag-indexing-rules/c9f5704f-f5b9-4afe-9dec-69edfce00c0a",
"path": "/api/v2/metrics/tag-indexing-rules/dae40f10-d3b9-4136-9875-013fb21ff053",
"query": []
},
"response": {
Expand Down
Loading