Skip to content

Commit 36a721c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit bb43ee6b of spec repo
1 parent bc7608d commit 36a721c

File tree

10 files changed

+14
-138
lines changed

10 files changed

+14
-138
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-06-30 17:05:05.986606",
8-
"spec_repo_commit": "d8e7ee77"
7+
"regenerated": "2025-07-01 18:45:37.532421",
8+
"spec_repo_commit": "bb43ee6b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-30 17:05:06.003684",
13-
"spec_repo_commit": "d8e7ee77"
12+
"regenerated": "2025-07-01 18:45:37.551159",
13+
"spec_repo_commit": "bb43ee6b"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52712,9 +52712,6 @@ paths:
5271252712
operator: OR
5271352713
permissions:
5271452714
- monitors_read
52715-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
52716-
52717-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5271852715
post:
5271952716
description: Creates a monitor notification rule.
5272052717
operationId: CreateMonitorNotificationRule
@@ -52758,9 +52755,6 @@ paths:
5275852755
operator: OR
5275952756
permissions:
5276052757
- monitor_config_policy_write
52761-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
52762-
52763-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5276452758
/api/v2/monitor/notification_rule/{rule_id}:
5276552759
delete:
5276652760
description: Deletes a monitor notification rule by `rule_id`.
@@ -52801,9 +52795,6 @@ paths:
5280152795
operator: OR
5280252796
permissions:
5280352797
- monitor_config_policy_write
52804-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
52805-
52806-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5280752798
get:
5280852799
description: Returns a monitor notification rule by `rule_id`.
5280952800
operationId: GetMonitorNotificationRule
@@ -52857,9 +52848,6 @@ paths:
5285752848
operator: OR
5285852849
permissions:
5285952850
- monitors_read
52860-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
52861-
52862-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5286352851
patch:
5286452852
description: Updates a monitor notification rule by `rule_id`.
5286552853
operationId: UpdateMonitorNotificationRule
@@ -52917,9 +52905,6 @@ paths:
5291752905
operator: OR
5291852906
permissions:
5291952907
- monitor_config_policy_write
52920-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
52921-
52922-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5292352908
/api/v2/monitor/policy:
5292452909
get:
5292552910
description: Get all monitor configuration policies.

examples/v2/monitors/CreateMonitorNotificationRule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
public class Example {
1717
public static void main(String[] args) {
1818
ApiClient defaultClient = ApiClient.getDefaultApiClient();
19-
defaultClient.setUnstableOperationEnabled("v2.createMonitorNotificationRule", true);
2019
MonitorsApi apiInstance = new MonitorsApi(defaultClient);
2120

2221
MonitorNotificationRuleCreateRequest body =

examples/v2/monitors/DeleteMonitorNotificationRule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
public class Example {
88
public static void main(String[] args) {
99
ApiClient defaultClient = ApiClient.getDefaultApiClient();
10-
defaultClient.setUnstableOperationEnabled("v2.deleteMonitorNotificationRule", true);
1110
MonitorsApi apiInstance = new MonitorsApi(defaultClient);
1211

1312
// there is a valid "monitor_notification_rule" in the system

examples/v2/monitors/GetMonitorNotificationRule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11-
defaultClient.setUnstableOperationEnabled("v2.getMonitorNotificationRule", true);
1211
MonitorsApi apiInstance = new MonitorsApi(defaultClient);
1312

1413
// there is a valid "monitor_notification_rule" in the system

examples/v2/monitors/GetMonitorNotificationRules.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11-
defaultClient.setUnstableOperationEnabled("v2.getMonitorNotificationRules", true);
1211
MonitorsApi apiInstance = new MonitorsApi(defaultClient);
1312

1413
try {

examples/v2/monitors/UpdateMonitorNotificationRule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
public class Example {
1717
public static void main(String[] args) {
1818
ApiClient defaultClient = ApiClient.getDefaultApiClient();
19-
defaultClient.setUnstableOperationEnabled("v2.updateMonitorNotificationRule", true);
2019
MonitorsApi apiInstance = new MonitorsApi(defaultClient);
2120

2221
// there is a valid "monitor_notification_rule" in the system

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -735,15 +735,10 @@ public class ApiClient {
735735
put("v2.listAWSNamespaces", false);
736736
put("v2.updateAWSAccount", false);
737737
put("v2.listAWSLogsServices", false);
738-
put("v2.createMonitorNotificationRule", false);
739738
put("v2.createMonitorUserTemplate", false);
740-
put("v2.deleteMonitorNotificationRule", false);
741739
put("v2.deleteMonitorUserTemplate", false);
742-
put("v2.getMonitorNotificationRule", false);
743-
put("v2.getMonitorNotificationRules", false);
744740
put("v2.getMonitorUserTemplate", false);
745741
put("v2.listMonitorUserTemplates", false);
746-
put("v2.updateMonitorNotificationRule", false);
747742
put("v2.updateMonitorUserTemplate", false);
748743
put("v2.validateExistingMonitorUserTemplate", false);
749744
put("v2.validateMonitorUserTemplate", false);

src/main/java/com/datadog/api/client/v2/api/MonitorsApi.java

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,6 @@ public CompletableFuture<MonitorNotificationRuleResponse> createMonitorNotificat
240240
*/
241241
public ApiResponse<MonitorNotificationRuleResponse> createMonitorNotificationRuleWithHttpInfo(
242242
MonitorNotificationRuleCreateRequest body) throws ApiException {
243-
// Check if unstable operation is enabled
244-
String operationId = "createMonitorNotificationRule";
245-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
246-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
247-
} else {
248-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
249-
}
250243
Object localVarPostBody = body;
251244

252245
// verify the required parameter 'body' is set
@@ -289,17 +282,6 @@ public ApiResponse<MonitorNotificationRuleResponse> createMonitorNotificationRul
289282
*/
290283
public CompletableFuture<ApiResponse<MonitorNotificationRuleResponse>>
291284
createMonitorNotificationRuleWithHttpInfoAsync(MonitorNotificationRuleCreateRequest body) {
292-
// Check if unstable operation is enabled
293-
String operationId = "createMonitorNotificationRule";
294-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
295-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
296-
} else {
297-
CompletableFuture<ApiResponse<MonitorNotificationRuleResponse>> result =
298-
new CompletableFuture<>();
299-
result.completeExceptionally(
300-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
301-
return result;
302-
}
303285
Object localVarPostBody = body;
304286

305287
// verify the required parameter 'body' is set
@@ -679,13 +661,6 @@ public CompletableFuture<Void> deleteMonitorNotificationRuleAsync(String ruleId)
679661
*/
680662
public ApiResponse<Void> deleteMonitorNotificationRuleWithHttpInfo(String ruleId)
681663
throws ApiException {
682-
// Check if unstable operation is enabled
683-
String operationId = "deleteMonitorNotificationRule";
684-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
685-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
686-
} else {
687-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
688-
}
689664
Object localVarPostBody = null;
690665

691666
// verify the required parameter 'ruleId' is set
@@ -731,16 +706,6 @@ public ApiResponse<Void> deleteMonitorNotificationRuleWithHttpInfo(String ruleId
731706
*/
732707
public CompletableFuture<ApiResponse<Void>> deleteMonitorNotificationRuleWithHttpInfoAsync(
733708
String ruleId) {
734-
// Check if unstable operation is enabled
735-
String operationId = "deleteMonitorNotificationRule";
736-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
737-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
738-
} else {
739-
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
740-
result.completeExceptionally(
741-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
742-
return result;
743-
}
744709
Object localVarPostBody = null;
745710

746711
// verify the required parameter 'ruleId' is set
@@ -1184,13 +1149,6 @@ public CompletableFuture<MonitorNotificationRuleResponse> getMonitorNotification
11841149
*/
11851150
public ApiResponse<MonitorNotificationRuleResponse> getMonitorNotificationRuleWithHttpInfo(
11861151
String ruleId, GetMonitorNotificationRuleOptionalParameters parameters) throws ApiException {
1187-
// Check if unstable operation is enabled
1188-
String operationId = "getMonitorNotificationRule";
1189-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1190-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1191-
} else {
1192-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
1193-
}
11941152
Object localVarPostBody = null;
11951153

11961154
// verify the required parameter 'ruleId' is set
@@ -1241,17 +1199,6 @@ public ApiResponse<MonitorNotificationRuleResponse> getMonitorNotificationRuleWi
12411199
public CompletableFuture<ApiResponse<MonitorNotificationRuleResponse>>
12421200
getMonitorNotificationRuleWithHttpInfoAsync(
12431201
String ruleId, GetMonitorNotificationRuleOptionalParameters parameters) {
1244-
// Check if unstable operation is enabled
1245-
String operationId = "getMonitorNotificationRule";
1246-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1247-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1248-
} else {
1249-
CompletableFuture<ApiResponse<MonitorNotificationRuleResponse>> result =
1250-
new CompletableFuture<>();
1251-
result.completeExceptionally(
1252-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
1253-
return result;
1254-
}
12551202
Object localVarPostBody = null;
12561203

12571204
// verify the required parameter 'ruleId' is set
@@ -1398,13 +1345,6 @@ public CompletableFuture<MonitorNotificationRuleListResponse> getMonitorNotifica
13981345
*/
13991346
public ApiResponse<MonitorNotificationRuleListResponse> getMonitorNotificationRulesWithHttpInfo(
14001347
GetMonitorNotificationRulesOptionalParameters parameters) throws ApiException {
1401-
// Check if unstable operation is enabled
1402-
String operationId = "getMonitorNotificationRules";
1403-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1404-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1405-
} else {
1406-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
1407-
}
14081348
Object localVarPostBody = null;
14091349
String include = parameters.include;
14101350
// create path and map variables
@@ -1446,17 +1386,6 @@ public ApiResponse<MonitorNotificationRuleListResponse> getMonitorNotificationRu
14461386
public CompletableFuture<ApiResponse<MonitorNotificationRuleListResponse>>
14471387
getMonitorNotificationRulesWithHttpInfoAsync(
14481388
GetMonitorNotificationRulesOptionalParameters parameters) {
1449-
// Check if unstable operation is enabled
1450-
String operationId = "getMonitorNotificationRules";
1451-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1452-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1453-
} else {
1454-
CompletableFuture<ApiResponse<MonitorNotificationRuleListResponse>> result =
1455-
new CompletableFuture<>();
1456-
result.completeExceptionally(
1457-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
1458-
return result;
1459-
}
14601389
Object localVarPostBody = null;
14611390
String include = parameters.include;
14621391
// create path and map variables
@@ -2175,13 +2104,6 @@ public CompletableFuture<MonitorNotificationRuleResponse> updateMonitorNotificat
21752104
*/
21762105
public ApiResponse<MonitorNotificationRuleResponse> updateMonitorNotificationRuleWithHttpInfo(
21772106
String ruleId, MonitorNotificationRuleUpdateRequest body) throws ApiException {
2178-
// Check if unstable operation is enabled
2179-
String operationId = "updateMonitorNotificationRule";
2180-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
2181-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
2182-
} else {
2183-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
2184-
}
21852107
Object localVarPostBody = body;
21862108

21872109
// verify the required parameter 'ruleId' is set
@@ -2235,17 +2157,6 @@ public ApiResponse<MonitorNotificationRuleResponse> updateMonitorNotificationRul
22352157
public CompletableFuture<ApiResponse<MonitorNotificationRuleResponse>>
22362158
updateMonitorNotificationRuleWithHttpInfoAsync(
22372159
String ruleId, MonitorNotificationRuleUpdateRequest body) {
2238-
// Check if unstable operation is enabled
2239-
String operationId = "updateMonitorNotificationRule";
2240-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
2241-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
2242-
} else {
2243-
CompletableFuture<ApiResponse<MonitorNotificationRuleResponse>> result =
2244-
new CompletableFuture<>();
2245-
result.completeExceptionally(
2246-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
2247-
return result;
2248-
}
22492160
Object localVarPostBody = body;
22502161

22512162
// verify the required parameter 'ruleId' is set

src/test/resources/com/datadog/api/client/v2/api/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)