Skip to content

Commit b4dd92f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Monitor Notif rule GA (#2446)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 305db54 commit b4dd92f

File tree

10 files changed

+14
-84
lines changed

10 files changed

+14
-84
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:51.190107",
8-
"spec_repo_commit": "de2517ad"
7+
"regenerated": "2025-07-02 20:43:23.781975",
8+
"spec_repo_commit": "e327e6df"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-02 16:34:51.206563",
13-
"spec_repo_commit": "de2517ad"
12+
"regenerated": "2025-07-02 20:43:23.798176",
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.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.createMonitorNotificationRule"] = true;
98
const apiInstance = new v2.MonitorsApi(configuration);
109

1110
const params: v2.MonitorsApiCreateMonitorNotificationRuleRequest = {

examples/v2/monitors/DeleteMonitorNotificationRule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.deleteMonitorNotificationRule"] = true;
98
const apiInstance = new v2.MonitorsApi(configuration);
109

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

examples/v2/monitors/GetMonitorNotificationRule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.getMonitorNotificationRule"] = true;
98
const apiInstance = new v2.MonitorsApi(configuration);
109

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

examples/v2/monitors/GetMonitorNotificationRules.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.getMonitorNotificationRules"] = true;
98
const apiInstance = new v2.MonitorsApi(configuration);
109

1110
apiInstance

examples/v2/monitors/UpdateMonitorNotificationRule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.updateMonitorNotificationRule"] = true;
98
const apiInstance = new v2.MonitorsApi(configuration);
109

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

features/v2/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"}}

packages/datadog-api-client-common/configuration.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,10 @@ export function createConfiguration(
274274
"v2.listAWSNamespaces": false,
275275
"v2.updateAWSAccount": false,
276276
"v2.listAWSLogsServices": false,
277-
"v2.createMonitorNotificationRule": false,
278277
"v2.createMonitorUserTemplate": false,
279-
"v2.deleteMonitorNotificationRule": false,
280278
"v2.deleteMonitorUserTemplate": false,
281-
"v2.getMonitorNotificationRule": false,
282-
"v2.getMonitorNotificationRules": false,
283279
"v2.getMonitorUserTemplate": false,
284280
"v2.listMonitorUserTemplates": false,
285-
"v2.updateMonitorNotificationRule": false,
286281
"v2.updateMonitorUserTemplate": false,
287282
"v2.validateExistingMonitorUserTemplate": false,
288283
"v2.validateMonitorUserTemplate": false,

packages/datadog-api-client-v2/apis/MonitorsApi.ts

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,6 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory {
7979
): Promise<RequestContext> {
8080
const _config = _options || this.configuration;
8181

82-
logger.warn("Using unstable operation 'createMonitorNotificationRule'");
83-
if (!_config.unstableOperations["v2.createMonitorNotificationRule"]) {
84-
throw new Error(
85-
"Unstable operation 'createMonitorNotificationRule' is disabled"
86-
);
87-
}
88-
8982
// verify required parameter 'body' is not null or undefined
9083
if (body === null || body === undefined) {
9184
throw new RequiredError("body", "createMonitorNotificationRule");
@@ -214,13 +207,6 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory {
214207
): Promise<RequestContext> {
215208
const _config = _options || this.configuration;
216209

217-
logger.warn("Using unstable operation 'deleteMonitorNotificationRule'");
218-
if (!_config.unstableOperations["v2.deleteMonitorNotificationRule"]) {
219-
throw new Error(
220-
"Unstable operation 'deleteMonitorNotificationRule' is disabled"
221-
);
222-
}
223-
224210
// verify required parameter 'ruleId' is not null or undefined
225211
if (ruleId === null || ruleId === undefined) {
226212
throw new RequiredError("ruleId", "deleteMonitorNotificationRule");
@@ -331,13 +317,6 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory {
331317
): Promise<RequestContext> {
332318
const _config = _options || this.configuration;
333319

334-
logger.warn("Using unstable operation 'getMonitorNotificationRule'");
335-
if (!_config.unstableOperations["v2.getMonitorNotificationRule"]) {
336-
throw new Error(
337-
"Unstable operation 'getMonitorNotificationRule' is disabled"
338-
);
339-
}
340-
341320
// verify required parameter 'ruleId' is not null or undefined
342321
if (ruleId === null || ruleId === undefined) {
343322
throw new RequiredError("ruleId", "getMonitorNotificationRule");
@@ -381,13 +360,6 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory {
381360
): Promise<RequestContext> {
382361
const _config = _options || this.configuration;
383362

384-
logger.warn("Using unstable operation 'getMonitorNotificationRules'");
385-
if (!_config.unstableOperations["v2.getMonitorNotificationRules"]) {
386-
throw new Error(
387-
"Unstable operation 'getMonitorNotificationRules' is disabled"
388-
);
389-
}
390-
391363
// Path Params
392364
const localVarPath = "/api/v2/monitor/notification_rule";
393365

@@ -582,13 +554,6 @@ export class MonitorsApiRequestFactory extends BaseAPIRequestFactory {
582554
): Promise<RequestContext> {
583555
const _config = _options || this.configuration;
584556

585-
logger.warn("Using unstable operation 'updateMonitorNotificationRule'");
586-
if (!_config.unstableOperations["v2.updateMonitorNotificationRule"]) {
587-
throw new Error(
588-
"Unstable operation 'updateMonitorNotificationRule' is disabled"
589-
);
590-
}
591-
592557
// verify required parameter 'ruleId' is not null or undefined
593558
if (ruleId === null || ruleId === undefined) {
594559
throw new RequiredError("ruleId", "updateMonitorNotificationRule");

0 commit comments

Comments
 (0)