Skip to content

Commit c92b09b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e2193fc of spec repo
1 parent 3f03835 commit c92b09b

8 files changed

Lines changed: 16 additions & 58 deletions

‎examples/v2/metrics/CreateTagIndexingRule.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from datadog_api_client.v2.model.tag_indexing_rule_create_attributes import TagIndexingRuleCreateAttributes
88
from datadog_api_client.v2.model.tag_indexing_rule_create_data import TagIndexingRuleCreateData
99
from datadog_api_client.v2.model.tag_indexing_rule_create_request import TagIndexingRuleCreateRequest
10-
from datadog_api_client.v2.model.tag_indexing_rule_dynamic_tags import TagIndexingRuleDynamicTags
1110
from datadog_api_client.v2.model.tag_indexing_rule_metric_match import TagIndexingRuleMetricMatch
1211
from datadog_api_client.v2.model.tag_indexing_rule_options import TagIndexingRuleOptions
1312
from datadog_api_client.v2.model.tag_indexing_rule_options_data import TagIndexingRuleOptionsData
@@ -24,10 +23,6 @@
2423
name="my-indexing-rule",
2524
options=TagIndexingRuleOptions(
2625
data=TagIndexingRuleOptionsData(
27-
dynamic_tags=TagIndexingRuleDynamicTags(
28-
queried_tags_window_seconds=3600,
29-
related_asset_tags=False,
30-
),
3126
manage_preexisting_metrics=True,
3227
metric_match=TagIndexingRuleMetricMatch(
3328
queried_window_seconds=3600,

‎examples/v2/metrics/UpdateTagIndexingRule.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from os import environ
66
from datadog_api_client import ApiClient, Configuration
77
from datadog_api_client.v2.api.metrics_api import MetricsApi
8-
from datadog_api_client.v2.model.tag_indexing_rule_dynamic_tags import TagIndexingRuleDynamicTags
98
from datadog_api_client.v2.model.tag_indexing_rule_metric_match import TagIndexingRuleMetricMatch
109
from datadog_api_client.v2.model.tag_indexing_rule_options import TagIndexingRuleOptions
1110
from datadog_api_client.v2.model.tag_indexing_rule_options_data import TagIndexingRuleOptionsData
@@ -27,10 +26,6 @@
2726
name="my-indexing-rule",
2827
options=TagIndexingRuleOptions(
2928
data=TagIndexingRuleOptionsData(
30-
dynamic_tags=TagIndexingRuleDynamicTags(
31-
queried_tags_window_seconds=3600,
32-
related_asset_tags=False,
33-
),
3429
manage_preexisting_metrics=True,
3530
metric_match=TagIndexingRuleMetricMatch(
3631
queried_window_seconds=3600,

‎tests/generated-test/test-runner-data/v2/metrics/create-a-tag-indexing-rule-returns-created-response.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
"name": "my-indexing-rule",
2424
"options": {
2525
"data": {
26-
"dynamic_tags": {
27-
"queried_tags_window_seconds": 3600,
28-
"related_asset_tags": false
29-
},
3026
"manage_preexisting_metrics": true,
3127
"metric_match": {
3228
"queried_window_seconds": 3600

‎tests/generated-test/test-runner-data/v2/metrics/update-a-tag-indexing-rule-returns-bad-request-response.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
"name": "my-indexing-rule",
2323
"options": {
2424
"data": {
25-
"dynamic_tags": {
26-
"queried_tags_window_seconds": 3600,
27-
"related_asset_tags": false
28-
},
2925
"manage_preexisting_metrics": true,
3026
"metric_match": {
3127
"queried_window_seconds": 3600

‎tests/generated-test/test-runner-data/v2/metrics/update-a-tag-indexing-rule-returns-not-found-response.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
"name": "my-indexing-rule",
2323
"options": {
2424
"data": {
25-
"dynamic_tags": {
26-
"queried_tags_window_seconds": 3600,
27-
"related_asset_tags": false
28-
},
2925
"manage_preexisting_metrics": true,
3026
"metric_match": {
3127
"queried_window_seconds": 3600

‎tests/generated-test/test-runner-data/v2/metrics/update-a-tag-indexing-rule-returns-ok-response.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
"name": "my-indexing-rule",
2323
"options": {
2424
"data": {
25-
"dynamic_tags": {
26-
"queried_tags_window_seconds": 3600,
27-
"related_asset_tags": false
28-
},
2925
"manage_preexisting_metrics": true,
3026
"metric_match": {
3127
"queried_window_seconds": 3600

‎tests/generated-test/test-server-data/v2/metrics.json‎

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284
},
285285
{
286286
"feature": "Metrics",
287-
"frozen_at": "2026-06-04T16:39:36.532Z",
287+
"frozen_at": "2026-09-18T00:46:15.269Z",
288288
"interactions": [
289289
{
290290
"request": {
@@ -301,10 +301,6 @@
301301
"name": "my-indexing-rule",
302302
"options": {
303303
"data": {
304-
"dynamic_tags": {
305-
"queried_tags_window_seconds": 3600,
306-
"related_asset_tags": false
307-
},
308304
"manage_preexisting_metrics": true,
309305
"metric_match": {
310306
"queried_window_seconds": 3600
@@ -330,7 +326,7 @@
330326
"response": {
331327
"body": {
332328
"encoding": "text",
333-
"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\"]}}}"
329+
"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\"]}}}"
334330
},
335331
"headers": {
336332
"content-type": "application/vnd.api+json"
@@ -347,7 +343,7 @@
347343
},
348344
"content_type": "",
349345
"method": "DELETE",
350-
"path": "/api/v2/metrics/tag-indexing-rules/b0a2d605-eee3-4c3b-89cf-51410b054ae7",
346+
"path": "/api/v2/metrics/tag-indexing-rules/c30f3444-62e7-4245-ab61-d7329582bd50",
351347
"query": []
352348
},
353349
"response": {
@@ -4704,7 +4700,7 @@
47044700
},
47054701
{
47064702
"feature": "Metrics",
4707-
"frozen_at": "2026-06-04T16:39:37.910Z",
4703+
"frozen_at": "2026-09-18T00:46:16.863Z",
47084704
"interactions": [
47094705
{
47104706
"request": {
@@ -4720,10 +4716,6 @@
47204716
"name": "my-indexing-rule",
47214717
"options": {
47224718
"data": {
4723-
"dynamic_tags": {
4724-
"queried_tags_window_seconds": 3600,
4725-
"related_asset_tags": false
4726-
},
47274719
"manage_preexisting_metrics": true,
47284720
"metric_match": {
47294721
"queried_window_seconds": 3600
@@ -4765,7 +4757,7 @@
47654757
},
47664758
{
47674759
"feature": "Metrics",
4768-
"frozen_at": "2026-06-04T16:39:37.964Z",
4760+
"frozen_at": "2026-09-18T00:46:17.002Z",
47694761
"interactions": [
47704762
{
47714763
"request": {
@@ -4781,10 +4773,6 @@
47814773
"name": "my-indexing-rule",
47824774
"options": {
47834775
"data": {
4784-
"dynamic_tags": {
4785-
"queried_tags_window_seconds": 3600,
4786-
"related_asset_tags": false
4787-
},
47884776
"manage_preexisting_metrics": true,
47894777
"metric_match": {
47904778
"queried_window_seconds": 3600
@@ -4826,7 +4814,7 @@
48264814
},
48274815
{
48284816
"feature": "Metrics",
4829-
"frozen_at": "2026-06-04T16:39:38.031Z",
4817+
"frozen_at": "2026-09-18T00:46:17.114Z",
48304818
"interactions": [
48314819
{
48324820
"request": {
@@ -4836,9 +4824,9 @@
48364824
"data": {
48374825
"attributes": {
48384826
"metric_name_matches": [
4839-
"dd.TestUpdateatagindexingrulereturnsOKresponse1780591178.*"
4827+
"dd.TestUpdateatagindexingrulereturnsOKresponse1789692377.*"
48404828
],
4841-
"name": "TestUpdateatagindexingrulereturnsOKresponse1780591178",
4829+
"name": "TestUpdateatagindexingrulereturnsOKresponse1789692377",
48424830
"tags": [
48434831
"env",
48444832
"service"
@@ -4856,7 +4844,7 @@
48564844
"response": {
48574845
"body": {
48584846
"encoding": "text",
4859-
"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\"]}}}"
4847+
"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\"]}}}"
48604848
},
48614849
"headers": {
48624850
"content-type": "application/vnd.api+json"
@@ -4879,10 +4867,6 @@
48794867
"name": "my-indexing-rule",
48804868
"options": {
48814869
"data": {
4882-
"dynamic_tags": {
4883-
"queried_tags_window_seconds": 3600,
4884-
"related_asset_tags": false
4885-
},
48864870
"manage_preexisting_metrics": true,
48874871
"metric_match": {
48884872
"queried_window_seconds": 3600
@@ -4903,13 +4887,13 @@
49034887
},
49044888
"content_type": "application/json",
49054889
"method": "PUT",
4906-
"path": "/api/v2/metrics/tag-indexing-rules/c9f5704f-f5b9-4afe-9dec-69edfce00c0a",
4890+
"path": "/api/v2/metrics/tag-indexing-rules/dae40f10-d3b9-4136-9875-013fb21ff053",
49074891
"query": []
49084892
},
49094893
"response": {
49104894
"body": {
49114895
"encoding": "text",
4912-
"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\"]}}}"
4896+
"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\"]}}}"
49134897
},
49144898
"headers": {
49154899
"content-type": "application/vnd.api+json"
@@ -4926,7 +4910,7 @@
49264910
},
49274911
"content_type": "",
49284912
"method": "DELETE",
4929-
"path": "/api/v2/metrics/tag-indexing-rules/c9f5704f-f5b9-4afe-9dec-69edfce00c0a",
4913+
"path": "/api/v2/metrics/tag-indexing-rules/dae40f10-d3b9-4136-9875-013fb21ff053",
49304914
"query": []
49314915
},
49324916
"response": {

‎tests/v2/features/metrics.feature‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Feature: Metrics
102102
Given a valid "appKeyAuth" key in the system
103103
And operation "CreateTagIndexingRule" enabled
104104
And new "CreateTagIndexingRule" request
105-
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"}}
105+
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"}}
106106
When the request is sent
107107
Then the response status is 201 Created
108108

@@ -1111,7 +1111,7 @@ Feature: Metrics
11111111
And operation "UpdateTagIndexingRule" enabled
11121112
And new "UpdateTagIndexingRule" request
11131113
And request contains "id" parameter with value "not-a-valid-uuid"
1114-
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"}}
1114+
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"}}
11151115
When the request is sent
11161116
Then the response status is 400 Bad Request
11171117

@@ -1131,7 +1131,7 @@ Feature: Metrics
11311131
And operation "UpdateTagIndexingRule" enabled
11321132
And new "UpdateTagIndexingRule" request
11331133
And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000"
1134-
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"}}
1134+
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"}}
11351135
When the request is sent
11361136
Then the response status is 404 Not Found
11371137

@@ -1142,7 +1142,7 @@ Feature: Metrics
11421142
And there is a valid "tag_indexing_rule" in the system
11431143
And new "UpdateTagIndexingRule" request
11441144
And request contains "id" parameter from "tag_indexing_rule.data.id"
1145-
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"}}
1145+
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"}}
11461146
When the request is sent
11471147
Then the response status is 200 OK
11481148

0 commit comments

Comments
 (0)