Skip to content

Commit d7a353b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e327e6df of spec repo
1 parent 1ecef5b commit d7a353b

File tree

10 files changed

+14
-89
lines changed

10 files changed

+14
-89
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:52.201607",
8-
"spec_repo_commit": "de2517ad"
7+
"regenerated": "2025-07-02 20:43:20.487037",
8+
"spec_repo_commit": "e327e6df"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-02 16:34:52.217566",
13-
"spec_repo_commit": "de2517ad"
12+
"regenerated": "2025-07-02 20:43:20.503175",
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.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Create a monitor notification rule returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.create_monitor_notification_rule".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
85

96
body = DatadogAPIClient::V2::MonitorNotificationRuleCreateRequest.new({

examples/v2/monitors/DeleteMonitorNotificationRule.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Delete a monitor notification rule returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.delete_monitor_notification_rule".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
85

96
# there is a valid "monitor_notification_rule" in the system

examples/v2/monitors/GetMonitorNotificationRule.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Get a monitor notification rule returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_monitor_notification_rule".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
85

96
# there is a valid "monitor_notification_rule" in the system
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Get all monitor notification rules returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_monitor_notification_rules".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
85
p api_instance.get_monitor_notification_rules()

examples/v2/monitors/UpdateMonitorNotificationRule.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Update a monitor notification rule returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.update_monitor_notification_rule".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
85

96
# 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"}}

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,10 @@ def initialize
241241
"v2.list_aws_namespaces": false,
242242
"v2.update_aws_account": false,
243243
"v2.list_aws_logs_services": false,
244-
"v2.create_monitor_notification_rule": false,
245244
"v2.create_monitor_user_template": false,
246-
"v2.delete_monitor_notification_rule": false,
247245
"v2.delete_monitor_user_template": false,
248-
"v2.get_monitor_notification_rule": false,
249-
"v2.get_monitor_notification_rules": false,
250246
"v2.get_monitor_user_template": false,
251247
"v2.list_monitor_user_templates": false,
252-
"v2.update_monitor_notification_rule": false,
253248
"v2.update_monitor_user_template": false,
254249
"v2.validate_existing_monitor_user_template": false,
255250
"v2.validate_monitor_user_template": false,

lib/datadog_api_client/v2/api/monitors_api.rb

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,6 @@ def create_monitor_notification_rule(body, opts = {})
106106
# @param opts [Hash] the optional parameters
107107
# @return [Array<(MonitorNotificationRuleResponse, Integer, Hash)>] MonitorNotificationRuleResponse data, response status code and response headers
108108
def create_monitor_notification_rule_with_http_info(body, opts = {})
109-
unstable_enabled = @api_client.config.unstable_operations["v2.create_monitor_notification_rule".to_sym]
110-
if unstable_enabled
111-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_monitor_notification_rule")
112-
else
113-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_monitor_notification_rule"))
114-
end
115109

116110
if @api_client.config.debugging
117111
@api_client.config.logger.debug 'Calling API: MonitorsAPI.create_monitor_notification_rule ...'
@@ -317,12 +311,6 @@ def delete_monitor_notification_rule(rule_id, opts = {})
317311
# @param opts [Hash] the optional parameters
318312
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
319313
def delete_monitor_notification_rule_with_http_info(rule_id, opts = {})
320-
unstable_enabled = @api_client.config.unstable_operations["v2.delete_monitor_notification_rule".to_sym]
321-
if unstable_enabled
322-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_monitor_notification_rule")
323-
else
324-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_monitor_notification_rule"))
325-
end
326314

327315
if @api_client.config.debugging
328316
@api_client.config.logger.debug 'Calling API: MonitorsAPI.delete_monitor_notification_rule ...'
@@ -525,12 +513,6 @@ def get_monitor_notification_rule(rule_id, opts = {})
525513
# @option opts [String] :include Comma-separated list of resource paths for related resources to include in the response. Supported resource path is `created_by`.
526514
# @return [Array<(MonitorNotificationRuleResponse, Integer, Hash)>] MonitorNotificationRuleResponse data, response status code and response headers
527515
def get_monitor_notification_rule_with_http_info(rule_id, opts = {})
528-
unstable_enabled = @api_client.config.unstable_operations["v2.get_monitor_notification_rule".to_sym]
529-
if unstable_enabled
530-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_monitor_notification_rule")
531-
else
532-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_monitor_notification_rule"))
533-
end
534516

535517
if @api_client.config.debugging
536518
@api_client.config.logger.debug 'Calling API: MonitorsAPI.get_monitor_notification_rule ...'
@@ -597,12 +579,6 @@ def get_monitor_notification_rules(opts = {})
597579
# @option opts [String] :include Comma-separated list of resource paths for related resources to include in the response. Supported resource path is `created_by`.
598580
# @return [Array<(MonitorNotificationRuleListResponse, Integer, Hash)>] MonitorNotificationRuleListResponse data, response status code and response headers
599581
def get_monitor_notification_rules_with_http_info(opts = {})
600-
unstable_enabled = @api_client.config.unstable_operations["v2.get_monitor_notification_rules".to_sym]
601-
if unstable_enabled
602-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_monitor_notification_rules")
603-
else
604-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_monitor_notification_rules"))
605-
end
606582

607583
if @api_client.config.debugging
608584
@api_client.config.logger.debug 'Calling API: MonitorsAPI.get_monitor_notification_rules ...'
@@ -937,12 +913,6 @@ def update_monitor_notification_rule(rule_id, body, opts = {})
937913
# @param opts [Hash] the optional parameters
938914
# @return [Array<(MonitorNotificationRuleResponse, Integer, Hash)>] MonitorNotificationRuleResponse data, response status code and response headers
939915
def update_monitor_notification_rule_with_http_info(rule_id, body, opts = {})
940-
unstable_enabled = @api_client.config.unstable_operations["v2.update_monitor_notification_rule".to_sym]
941-
if unstable_enabled
942-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_monitor_notification_rule")
943-
else
944-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_monitor_notification_rule"))
945-
end
946916

947917
if @api_client.config.debugging
948918
@api_client.config.logger.debug 'Calling API: MonitorsAPI.update_monitor_notification_rule ...'

0 commit comments

Comments
 (0)