Skip to content

Commit 09b07a8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specamaskara-dd
authored
Regenerate client from commit e327e6df of spec repo (#2662)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: amaskara-dd <[email protected]>
1 parent e044a71 commit 09b07a8

File tree

9 files changed

+14
-49
lines changed

9 files changed

+14
-49
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-07-02 16:34:57.377290",
8-
"spec_repo_commit": "de2517ad"
7+
"regenerated": "2025-07-02 20:43:17.503949",
8+
"spec_repo_commit": "e327e6df"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-02 16:34:57.570480",
13-
"spec_repo_commit": "de2517ad"
12+
"regenerated": "2025-07-02 20:43:17.520727",
13+
"spec_repo_commit": "e327e6df"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53140,9 +53140,6 @@ paths:
5314053140
operator: OR
5314153141
permissions:
5314253142
- monitors_read
53143-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
53144-
53145-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5314653143
post:
5314753144
description: Creates a monitor notification rule.
5314853145
operationId: CreateMonitorNotificationRule
@@ -53186,9 +53183,6 @@ paths:
5318653183
operator: OR
5318753184
permissions:
5318853185
- monitor_config_policy_write
53189-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
53190-
53191-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5319253186
/api/v2/monitor/notification_rule/{rule_id}:
5319353187
delete:
5319453188
description: Deletes a monitor notification rule by `rule_id`.
@@ -53229,9 +53223,6 @@ paths:
5322953223
operator: OR
5323053224
permissions:
5323153225
- monitor_config_policy_write
53232-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
53233-
53234-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5323553226
get:
5323653227
description: Returns a monitor notification rule by `rule_id`.
5323753228
operationId: GetMonitorNotificationRule
@@ -53285,9 +53276,6 @@ paths:
5328553276
operator: OR
5328653277
permissions:
5328753278
- monitors_read
53288-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
53289-
53290-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5329153279
patch:
5329253280
description: Updates a monitor notification rule by `rule_id`.
5329353281
operationId: UpdateMonitorNotificationRule
@@ -53345,9 +53333,6 @@ paths:
5334553333
operator: OR
5334653334
permissions:
5334753335
- monitor_config_policy_write
53348-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
53349-
53350-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5335153336
/api/v2/monitor/policy:
5335253337
get:
5335353338
description: Get all monitor configuration policies.

examples/v2/monitors/CreateMonitorNotificationRule.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
)
3232

3333
configuration = Configuration()
34-
configuration.unstable_operations["create_monitor_notification_rule"] = True
3534
with ApiClient(configuration) as api_client:
3635
api_instance = MonitorsApi(api_client)
3736
response = api_instance.create_monitor_notification_rule(body=body)

examples/v2/monitors/DeleteMonitorNotificationRule.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
MONITOR_NOTIFICATION_RULE_DATA_ID = environ["MONITOR_NOTIFICATION_RULE_DATA_ID"]
1111

1212
configuration = Configuration()
13-
configuration.unstable_operations["delete_monitor_notification_rule"] = True
1413
with ApiClient(configuration) as api_client:
1514
api_instance = MonitorsApi(api_client)
1615
api_instance.delete_monitor_notification_rule(

examples/v2/monitors/GetMonitorNotificationRule.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
MONITOR_NOTIFICATION_RULE_DATA_ID = environ["MONITOR_NOTIFICATION_RULE_DATA_ID"]
1111

1212
configuration = Configuration()
13-
configuration.unstable_operations["get_monitor_notification_rule"] = True
1413
with ApiClient(configuration) as api_client:
1514
api_instance = MonitorsApi(api_client)
1615
response = api_instance.get_monitor_notification_rule(

examples/v2/monitors/GetMonitorNotificationRules.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from datadog_api_client.v2.api.monitors_api import MonitorsApi
77

88
configuration = Configuration()
9-
configuration.unstable_operations["get_monitor_notification_rules"] = True
109
with ApiClient(configuration) as api_client:
1110
api_instance = MonitorsApi(api_client)
1211
response = api_instance.get_monitor_notification_rules()

examples/v2/monitors/UpdateMonitorNotificationRule.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
)
3737

3838
configuration = Configuration()
39-
configuration.unstable_operations["update_monitor_notification_rule"] = True
4039
with ApiClient(configuration) as api_client:
4140
api_instance = MonitorsApi(api_client)
4241
response = api_instance.update_monitor_notification_rule(rule_id=MONITOR_NOTIFICATION_RULE_DATA_ID, body=body)

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,10 @@ def __init__(
288288
"v2.list_aws_namespaces": False,
289289
"v2.update_aws_account": False,
290290
"v2.list_aws_logs_services": False,
291-
"v2.create_monitor_notification_rule": False,
292291
"v2.create_monitor_user_template": False,
293-
"v2.delete_monitor_notification_rule": False,
294292
"v2.delete_monitor_user_template": False,
295-
"v2.get_monitor_notification_rule": False,
296-
"v2.get_monitor_notification_rules": False,
297293
"v2.get_monitor_user_template": False,
298294
"v2.list_monitor_user_templates": False,
299-
"v2.update_monitor_notification_rule": False,
300295
"v2.update_monitor_user_template": False,
301296
"v2.validate_existing_monitor_user_template": False,
302297
"v2.validate_monitor_user_template": False,

tests/v2/features/monitors.feature

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ Feature: Monitors
3131

3232
@skip-validation @team:DataDog/monitor-app
3333
Scenario: Create a monitor notification rule returns "Bad Request" response
34-
Given operation "CreateMonitorNotificationRule" enabled
35-
And new "CreateMonitorNotificationRule" request
34+
Given new "CreateMonitorNotificationRule" request
3635
And body with value {"data": {"attributes": {"filter": {"tags": ["test:{{ unique_lower }}", "host:abc"]}, "name": "test rule", "recipients": ["@slack-test-channel", "@jira-test"]}, "type": "monitor-notification-rule"}}
3736
When the request is sent
3837
Then the response status is 400 Bad Request
3938

4039
@team:DataDog/monitor-app
4140
Scenario: Create a monitor notification rule returns "OK" response
42-
Given operation "CreateMonitorNotificationRule" enabled
43-
And new "CreateMonitorNotificationRule" request
41+
Given new "CreateMonitorNotificationRule" request
4442
And body with value {"data": {"attributes": {"filter": {"tags": ["test:{{ unique_lower }}"]}, "name": "test rule", "recipients": ["slack-test-channel", "jira-test"]}, "type": "monitor-notification-rule"}}
4543
When the request is sent
4644
Then the response status is 200 OK
@@ -86,16 +84,14 @@ Feature: Monitors
8684

8785
@team:DataDog/monitor-app
8886
Scenario: Delete a monitor notification rule returns "Not Found" response
89-
Given operation "DeleteMonitorNotificationRule" enabled
90-
And new "DeleteMonitorNotificationRule" request
87+
Given new "DeleteMonitorNotificationRule" request
9188
And request contains "rule_id" parameter with value "00000000-0000-1234-0000-000000000000"
9289
When the request is sent
9390
Then the response status is 404 Not Found
9491

9592
@team:DataDog/monitor-app
9693
Scenario: Delete a monitor notification rule returns "OK" response
97-
Given operation "DeleteMonitorNotificationRule" enabled
98-
And there is a valid "monitor_notification_rule" in the system
94+
Given there is a valid "monitor_notification_rule" in the system
9995
And new "DeleteMonitorNotificationRule" request
10096
And request contains "rule_id" parameter from "monitor_notification_rule.data.id"
10197
When the request is sent
@@ -170,16 +166,14 @@ Feature: Monitors
170166

171167
@team:DataDog/monitor-app
172168
Scenario: Get a monitor notification rule returns "Not Found" response
173-
Given operation "GetMonitorNotificationRule" enabled
174-
And new "GetMonitorNotificationRule" request
169+
Given new "GetMonitorNotificationRule" request
175170
And request contains "rule_id" parameter with value "00000000-0000-1234-0000-000000000000"
176171
When the request is sent
177172
Then the response status is 404 Not Found
178173

179174
@team:DataDog/monitor-app
180175
Scenario: Get a monitor notification rule returns "OK" response
181-
Given operation "GetMonitorNotificationRule" enabled
182-
And there is a valid "monitor_notification_rule" in the system
176+
Given there is a valid "monitor_notification_rule" in the system
183177
And new "GetMonitorNotificationRule" request
184178
And request contains "rule_id" parameter from "monitor_notification_rule.data.id"
185179
When the request is sent
@@ -218,8 +212,7 @@ Feature: Monitors
218212

219213
@team:DataDog/monitor-app
220214
Scenario: Get all monitor notification rules returns "OK" response
221-
Given operation "GetMonitorNotificationRules" enabled
222-
And there is a valid "monitor_notification_rule" in the system
215+
Given there is a valid "monitor_notification_rule" in the system
223216
And new "GetMonitorNotificationRules" request
224217
When the request is sent
225218
Then the response status is 200 OK
@@ -237,8 +230,7 @@ Feature: Monitors
237230

238231
@skip-validation @team:DataDog/monitor-app
239232
Scenario: Update a monitor notification rule returns "Bad Request" response
240-
Given operation "UpdateMonitorNotificationRule" enabled
241-
And there is a valid "monitor_notification_rule" in the system
233+
Given there is a valid "monitor_notification_rule" in the system
242234
And new "UpdateMonitorNotificationRule" request
243235
And request contains "rule_id" parameter from "monitor_notification_rule.data.id"
244236
And body with value {"data": {"attributes": {"filter": {"tags": ["test:{{ unique_lower }}", "host:abc"]}, "name": "updated rule", "recipients": ["@slack-test-channel"]}, "id": "{{ monitor_notification_rule.data.id }}", "type": "monitor-notification-rule"}}
@@ -247,17 +239,15 @@ Feature: Monitors
247239

248240
@team:DataDog/monitor-app
249241
Scenario: Update a monitor notification rule returns "Not Found" response
250-
Given operation "UpdateMonitorNotificationRule" enabled
251-
And new "UpdateMonitorNotificationRule" request
242+
Given new "UpdateMonitorNotificationRule" request
252243
And request contains "rule_id" parameter with value "00000000-0000-1234-0000-000000000000"
253244
And body with value {"data": {"attributes": {"filter": {"tags": ["test:{{ unique_lower }}", "host:abc"]}, "name": "updated rule", "recipients": ["slack-test-channel", "jira-test"]}, "id": "00000000-0000-1234-0000-000000000000", "type": "monitor-notification-rule"}}
254245
When the request is sent
255246
Then the response status is 404 Not Found
256247

257248
@team:DataDog/monitor-app
258249
Scenario: Update a monitor notification rule returns "OK" response
259-
Given operation "UpdateMonitorNotificationRule" enabled
260-
And there is a valid "monitor_notification_rule" in the system
250+
Given there is a valid "monitor_notification_rule" in the system
261251
And new "UpdateMonitorNotificationRule" request
262252
And request contains "rule_id" parameter from "monitor_notification_rule.data.id"
263253
And body with value {"data": {"attributes": {"filter": {"tags": ["test:{{ unique_lower }}", "host:abc"]}, "name": "updated rule", "recipients": ["slack-test-channel"]}, "id": "{{ monitor_notification_rule.data.id }}", "type": "monitor-notification-rule"}}

0 commit comments

Comments
 (0)