Skip to content

Commit 2e73e2b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d3809e4 of spec repo
1 parent dd68d3b commit 2e73e2b

6 files changed

Lines changed: 52 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148700,6 +148700,9 @@ paths:
148700148700
operator: OR
148701148701
permissions:
148702148702
- metrics_read
148703+
x-unstable: |-
148704+
**Note**: The Tag Indexing Rules feature is currently in Preview.
148705+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
148703148706
post:
148704148707
description: |-
148705148708
Create a tag indexing rule for the org. `rule_order` is assigned server-side as max+1
@@ -148778,6 +148781,9 @@ paths:
148778148781
operator: OR
148779148782
permissions:
148780148783
- metric_tags_write
148784+
x-unstable: |-
148785+
**Note**: The Tag Indexing Rules feature is currently in Preview.
148786+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
148781148787
/api/v2/metrics/tag-indexing-rules/order:
148782148788
post:
148783148789
description: |-
@@ -148840,6 +148846,9 @@ paths:
148840148846
operator: OR
148841148847
permissions:
148842148848
- metric_tags_write
148849+
x-unstable: |-
148850+
**Note**: The Tag Indexing Rules feature is currently in Preview.
148851+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
148843148852
/api/v2/metrics/tag-indexing-rules/{id}:
148844148853
delete:
148845148854
description: |-
@@ -148882,6 +148891,9 @@ paths:
148882148891
operator: OR
148883148892
permissions:
148884148893
- metric_tags_write
148894+
x-unstable: |-
148895+
**Note**: The Tag Indexing Rules feature is currently in Preview.
148896+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
148885148897
get:
148886148898
description: Get a single tag indexing rule by its UUID.
148887148899
operationId: GetTagIndexingRule
@@ -148946,6 +148958,9 @@ paths:
148946148958
operator: OR
148947148959
permissions:
148948148960
- metrics_read
148961+
x-unstable: |-
148962+
**Note**: The Tag Indexing Rules feature is currently in Preview.
148963+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
148949148964
put:
148950148965
description: |-
148951148966
Partially update a tag indexing rule. Fields omitted from the request body are left unchanged.
@@ -149037,6 +149052,9 @@ paths:
149037149052
operator: OR
149038149053
permissions:
149039149054
- metric_tags_write
149055+
x-unstable: |-
149056+
**Note**: The Tag Indexing Rules feature is currently in Preview.
149057+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
149040149058
/api/v2/metrics/{metric_name}/active-configurations:
149041149059
get:
149042149060
description: |-
@@ -149466,6 +149484,9 @@ paths:
149466149484
operator: OR
149467149485
permissions:
149468149486
- metric_tags_write
149487+
x-unstable: |-
149488+
**Note**: The Tag Indexing Rules feature is currently in Preview.
149489+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
149469149490
get:
149470149491
description: |-
149471149492
Returns why a metric is excluded from tag indexing rules.
@@ -149529,6 +149550,9 @@ paths:
149529149550
operator: OR
149530149551
permissions:
149531149552
- metrics_read
149553+
x-unstable: |-
149554+
**Note**: The Tag Indexing Rules feature is currently in Preview.
149555+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
149532149556
post:
149533149557
description: |-
149534149558
Exempt a metric from all tag indexing rules. The response includes the created
@@ -149598,6 +149622,9 @@ paths:
149598149622
operator: OR
149599149623
permissions:
149600149624
- metric_tags_write
149625+
x-unstable: |-
149626+
**Note**: The Tag Indexing Rules feature is currently in Preview.
149627+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
149601149628
/api/v2/metrics/{metric_name}/tag-indexing-rules:
149602149629
get:
149603149630
description: |-
@@ -149649,6 +149676,9 @@ paths:
149649149676
operator: OR
149650149677
permissions:
149651149678
- metrics_read
149679+
x-unstable: |-
149680+
**Note**: The Tag Indexing Rules feature is currently in Preview.
149681+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
149652149682
/api/v2/metrics/{metric_name}/tags:
149653149683
delete:
149654149684
description: |-

examples/v2/metrics/CreateTagIndexingRuleExemption.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
)
2222

2323
configuration = Configuration()
24+
configuration.unstable_operations["create_tag_indexing_rule_exemption"] = True
2425
with ApiClient(configuration) as api_client:
2526
api_instance = MetricsApi(api_client)
2627
response = api_instance.create_tag_indexing_rule_exemption(metric_name="metric_name", body=body)

examples/v2/metrics/DeleteTagIndexingRuleExemption.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from datadog_api_client.v2.api.metrics_api import MetricsApi
77

88
configuration = Configuration()
9+
configuration.unstable_operations["delete_tag_indexing_rule_exemption"] = True
910
with ApiClient(configuration) as api_client:
1011
api_instance = MetricsApi(api_client)
1112
api_instance.delete_tag_indexing_rule_exemption(

examples/v2/metrics/GetTagIndexingRuleExemption.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from datadog_api_client.v2.api.metrics_api import MetricsApi
77

88
configuration = Configuration()
9+
configuration.unstable_operations["get_tag_indexing_rule_exemption"] = True
910
with ApiClient(configuration) as api_client:
1011
api_instance = MetricsApi(api_client)
1112
response = api_instance.get_tag_indexing_rule_exemption(

src/datadog_api_client/configuration.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,16 @@ def __init__(
606606
"v2.remove_role_from_restriction_query": False,
607607
"v2.replace_restriction_query": False,
608608
"v2.update_restriction_query": False,
609+
"v2.create_tag_indexing_rule": False,
610+
"v2.create_tag_indexing_rule_exemption": False,
611+
"v2.delete_tag_indexing_rule": False,
612+
"v2.delete_tag_indexing_rule_exemption": False,
613+
"v2.get_tag_indexing_rule": False,
614+
"v2.get_tag_indexing_rule_exemption": False,
615+
"v2.list_tag_indexing_rules": False,
616+
"v2.list_tag_indexing_rules_for_metric": False,
617+
"v2.reorder_tag_indexing_rules": False,
618+
"v2.update_tag_indexing_rule": False,
609619
"v2.delete_model_lab_run": False,
610620
"v2.get_model_lab_artifact_content": False,
611621
"v2.get_model_lab_project": False,

tests/v2/features/metrics.feature

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Feature: Metrics
7171
@generated @skip @team:DataDog/metrics-experience
7272
Scenario: Create a tag indexing rule exemption returns "Bad Request" response
7373
Given a valid "appKeyAuth" key in the system
74+
And operation "CreateTagIndexingRuleExemption" enabled
7475
And new "CreateTagIndexingRuleExemption" request
7576
And request contains "metric_name" parameter from "REPLACE.ME"
7677
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
8081
@generated @skip @team:DataDog/metrics-experience
8182
Scenario: Create a tag indexing rule exemption returns "Created" response
8283
Given a valid "appKeyAuth" key in the system
84+
And operation "CreateTagIndexingRuleExemption" enabled
8385
And new "CreateTagIndexingRuleExemption" request
8486
And request contains "metric_name" parameter from "REPLACE.ME"
8587
And body with value {"data": {"attributes": {"reason": "This metric has a pre-existing tag configuration."}, "type": "tag_indexing_rule_exemptions"}}
@@ -123,6 +125,7 @@ Feature: Metrics
123125
@generated @skip @team:DataDog/metrics-experience
124126
Scenario: Delete a tag indexing rule exemption returns "Bad Request" response
125127
Given a valid "appKeyAuth" key in the system
128+
And operation "DeleteTagIndexingRuleExemption" enabled
126129
And new "DeleteTagIndexingRuleExemption" request
127130
And request contains "metric_name" parameter from "REPLACE.ME"
128131
When the request is sent
@@ -131,6 +134,7 @@ Feature: Metrics
131134
@generated @skip @team:DataDog/metrics-experience
132135
Scenario: Delete a tag indexing rule exemption returns "No Content" response
133136
Given a valid "appKeyAuth" key in the system
137+
And operation "DeleteTagIndexingRuleExemption" enabled
134138
And new "DeleteTagIndexingRuleExemption" request
135139
And request contains "metric_name" parameter from "REPLACE.ME"
136140
When the request is sent
@@ -222,6 +226,7 @@ Feature: Metrics
222226
@generated @skip @team:DataDog/metrics-experience
223227
Scenario: Get a tag indexing rule exemption returns "Bad Request" response
224228
Given a valid "appKeyAuth" key in the system
229+
And operation "GetTagIndexingRuleExemption" enabled
225230
And new "GetTagIndexingRuleExemption" request
226231
And request contains "metric_name" parameter from "REPLACE.ME"
227232
When the request is sent
@@ -230,6 +235,7 @@ Feature: Metrics
230235
@generated @skip @team:DataDog/metrics-experience
231236
Scenario: Get a tag indexing rule exemption returns "Not Found" response
232237
Given a valid "appKeyAuth" key in the system
238+
And operation "GetTagIndexingRuleExemption" enabled
233239
And new "GetTagIndexingRuleExemption" request
234240
And request contains "metric_name" parameter from "REPLACE.ME"
235241
When the request is sent
@@ -238,6 +244,7 @@ Feature: Metrics
238244
@generated @skip @team:DataDog/metrics-experience
239245
Scenario: Get a tag indexing rule exemption returns "OK" response
240246
Given a valid "appKeyAuth" key in the system
247+
And operation "GetTagIndexingRuleExemption" enabled
241248
And new "GetTagIndexingRuleExemption" request
242249
And request contains "metric_name" parameter from "REPLACE.ME"
243250
When the request is sent
@@ -384,6 +391,7 @@ Feature: Metrics
384391
@generated @skip @team:DataDog/metrics-experience
385392
Scenario: List tag indexing rules returns "Bad Request" response
386393
Given a valid "appKeyAuth" key in the system
394+
And operation "ListTagIndexingRules" enabled
387395
And new "ListTagIndexingRules" request
388396
When the request is sent
389397
Then the response status is 400 Bad Request
@@ -970,6 +978,7 @@ Feature: Metrics
970978
@generated @skip @team:DataDog/metrics-experience
971979
Scenario: Update a tag indexing rule returns "Conflict" response
972980
Given a valid "appKeyAuth" key in the system
981+
And operation "UpdateTagIndexingRule" enabled
973982
And new "UpdateTagIndexingRule" request
974983
And request contains "id" parameter from "REPLACE.ME"
975984
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"}}

0 commit comments

Comments
 (0)