From 8ee9d8f1b66fe6c712407e7fab4baa99ec3a4ecc Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 25 Jun 2026 19:01:38 +0000 Subject: [PATCH] Regenerate client from commit e86c850 of spec repo --- ...etric-monitor-with-a-custom-schedule-returns-OK-response.yml | 2 +- examples/v1/monitors/CreateMonitor_1539578087.rb | 1 + features/v1/monitors.feature | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cassettes/features/v1/monitors/Create-a-metric-monitor-with-a-custom-schedule-returns-OK-response.yml b/cassettes/features/v1/monitors/Create-a-metric-monitor-with-a-custom-schedule-returns-OK-response.yml index f4d026a9d498..ccdad010db02 100644 --- a/cassettes/features/v1/monitors/Create-a-metric-monitor-with-a-custom-schedule-returns-OK-response.yml +++ b/cassettes/features/v1/monitors/Create-a-metric-monitor-with-a-custom-schedule-returns-OK-response.yml @@ -3,7 +3,7 @@ http_interactions: request: body: encoding: UTF-8 - string: '{"draft_status":"published","message":"some message Notify: @hipchat-channel","name":"Test-Create_a_metric_monitor_with_a_custom_schedule_returns_OK_response-1747261709","options":{"include_tags":false,"notify_audit":false,"scheduling_options":{"custom_schedule":{"recurrences":[{"rrule":"FREQ=DAILY;INTERVAL=1","start":"2024-10-26T09:13:00","timezone":"America/Los_Angeles"}]},"evaluation_window":{"day_starts":"04:00","month_starts":1}},"thresholds":{"critical":0.5}},"query":"avg(current_1mo):avg:system.load.5{*} + string: '{"draft_status":"published","message":"some message Notify: @hipchat-channel","name":"Test-Create_a_metric_monitor_with_a_custom_schedule_returns_OK_response-1747261709","options":{"include_tags":false,"notify_audit":false,"on_missing_data":"default","scheduling_options":{"custom_schedule":{"recurrences":[{"rrule":"FREQ=DAILY;INTERVAL=1","start":"2024-10-26T09:13:00","timezone":"America/Los_Angeles"}]},"evaluation_window":{"day_starts":"04:00","month_starts":1}},"thresholds":{"critical":0.5}},"query":"avg(current_1mo):avg:system.load.5{*} > 0.5","tags":[],"type":"query alert"}' headers: Accept: diff --git a/examples/v1/monitors/CreateMonitor_1539578087.rb b/examples/v1/monitors/CreateMonitor_1539578087.rb index e236de1905c8..bad1f641fb75 100644 --- a/examples/v1/monitors/CreateMonitor_1539578087.rb +++ b/examples/v1/monitors/CreateMonitor_1539578087.rb @@ -14,6 +14,7 @@ }), notify_audit: false, include_tags: false, + on_missing_data: DatadogAPIClient::V1::OnMissingDataOption::DEFAULT, scheduling_options: DatadogAPIClient::V1::MonitorOptionsSchedulingOptions.new({ evaluation_window: DatadogAPIClient::V1::MonitorOptionsSchedulingOptionsEvaluationWindow.new({ day_starts: "04:00", diff --git a/features/v1/monitors.feature b/features/v1/monitors.feature index e3e5ca6c4109..eabe7b2afe77 100644 --- a/features/v1/monitors.feature +++ b/features/v1/monitors.feature @@ -122,7 +122,7 @@ Feature: Monitors @team:DataDog/monitor-app Scenario: Create a metric monitor with a custom schedule returns "OK" response Given new "CreateMonitor" request - And body with value {"message":"some message Notify: @hipchat-channel","name":"{{ unique }}","query":"avg(current_1mo):avg:system.load.5{*} > 0.5","tags":[],"options":{"thresholds":{"critical":0.5},"notify_audit":false,"include_tags":false,"scheduling_options":{"evaluation_window":{"day_starts":"04:00", "month_starts":1},"custom_schedule":{"recurrences":[{"rrule":"FREQ=DAILY;INTERVAL=1","timezone":"America/Los_Angeles","start":"2024-10-26T09:13:00"}]}}},"type":"query alert", "draft_status": "published"} + And body with value {"message":"some message Notify: @hipchat-channel","name":"{{ unique }}","query":"avg(current_1mo):avg:system.load.5{*} > 0.5","tags":[],"options":{"thresholds":{"critical":0.5},"notify_audit":false,"include_tags":false,"on_missing_data":"default","scheduling_options":{"evaluation_window":{"day_starts":"04:00", "month_starts":1},"custom_schedule":{"recurrences":[{"rrule":"FREQ=DAILY;INTERVAL=1","timezone":"America/Los_Angeles","start":"2024-10-26T09:13:00"}]}}},"type":"query alert", "draft_status": "published"} When the request is sent Then the response status is 200 OK And the response "name" is equal to "{{ unique }}"