Skip to content

Commit 85cd67b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a88bcc5 of spec repo
1 parent f676a8e commit 85cd67b

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11798,7 +11798,8 @@ components:
1179811798
The default option results in different behavior depending on the monitor query type.
1179911799
For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
1180011800
For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
11801-
This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
11801+
This option is available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
11802+
The option is also required for metric monitors that use `scheduling_options.custom_schedule`.
1180211803
enum:
1180311804
- "default"
1180411805
- "show_no_data"

src/datadog_api_client/v1/model/monitor_options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ def __init__(
289289
The default option results in different behavior depending on the monitor query type.
290290
For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
291291
For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
292-
This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
292+
This option is available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
293+
The option is also required for metric monitors that use ``scheduling_options.custom_schedule``.
293294
:type on_missing_data: OnMissingDataOption, optional
294295
295296
:param renotify_interval: The number of minutes after the last notification before a monitor re-notifies on the current status.

src/datadog_api_client/v1/model/on_missing_data_option.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class OnMissingDataOption(ModelSimple):
1818
The default option results in different behavior depending on the monitor query type.
1919
For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
2020
For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
21-
This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
21+
This option is available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
22+
The option is also required for metric monitors that use `scheduling_options.custom_schedule`.
2223
2324
:param value: Must be one of ["default", "show_no_data", "show_and_notify_no_data", "resolve"].
2425
:type value: str

tests/v1/features/monitors.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Feature: Monitors
119119
And the response "name" is equal to "{{ unique }}"
120120
And the response "query" is equal to "avg(current_1mo):avg:system.load.5{*} > 0.5"
121121

122-
@team:DataDog/monitor-app
122+
@oncall-page:monitor-app @team:DataDog/monitor-app
123123
Scenario: Create a metric monitor with a custom schedule returns "OK" response
124124
Given new "CreateMonitor" request
125125
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"}

0 commit comments

Comments
 (0)