Skip to content

Commit eb3bc71

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b4db80d of spec repo
1 parent ee203fa commit eb3bc71

4 files changed

Lines changed: 9 additions & 6 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/main/java/com/datadog/api/client/v1/model/MonitorOptions.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,9 @@ public MonitorOptions onMissingData(OnMissingDataOption onMissingData) {
668668
* The default option results in different behavior depending on the monitor query type. For
669669
* monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to
670670
* the threshold conditions. For monitors using any query type other than Count, for example
671-
* Gauge, Measure, or Rate, the monitor shows the last known status. This option is only available
672-
* for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
671+
* Gauge, Measure, or Rate, the monitor shows the last known status. This option is available for
672+
* APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. The option
673+
* is also required for metric monitors that use <code>scheduling_options.custom_schedule</code>.
673674
*
674675
* @return onMissingData
675676
*/

src/main/java/com/datadog/api/client/v1/model/OnMissingDataOption.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
* default option results in different behavior depending on the monitor query type. For monitors
2424
* using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold
2525
* conditions. For monitors using any query type other than Count, for example Gauge, Measure, or
26-
* Rate, the monitor shows the last known status. This option is only available for APM Trace
27-
* Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
26+
* Rate, the monitor shows the last known status. This option is available for APM Trace Analytics,
27+
* Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. The option is also required for
28+
* metric monitors that use <code>scheduling_options.custom_schedule</code>.
2829
*/
2930
@JsonSerialize(using = OnMissingDataOption.OnMissingDataOptionSerializer.class)
3031
public class OnMissingDataOption extends ModelEnum<String> {

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