Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11798,7 +11798,8 @@ components:
The default option results in different behavior depending on the monitor query type.
For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
This option is available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
The option is also required for metric monitors that use `scheduling_options.custom_schedule`.
enum:
- "default"
- "show_no_data"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,9 @@ public MonitorOptions onMissingData(OnMissingDataOption onMissingData) {
* The default option results in different behavior depending on the monitor query type. For
* monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to
* the threshold conditions. For monitors using any query type other than Count, for example
* Gauge, Measure, or Rate, the monitor shows the last known status. This option is only available
* for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
* Gauge, Measure, or Rate, the monitor shows the last known status. This option is available for
* APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. The option
* is also required for metric monitors that use <code>scheduling_options.custom_schedule</code>.
*
* @return onMissingData
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
* default option results in different behavior depending on the monitor query type. For monitors
* using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold
* conditions. For monitors using any query type other than Count, for example Gauge, Measure, or
* Rate, the monitor shows the last known status. This option is only available for APM Trace
* Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
* Rate, the monitor shows the last known status. This option is available for APM Trace Analytics,
* Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. The option is also required for
* metric monitors that use <code>scheduling_options.custom_schedule</code>.
*/
@JsonSerialize(using = OnMissingDataOption.OnMissingDataOptionSerializer.class)
public class OnMissingDataOption extends ModelEnum<String> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Feature: Monitors
And the response "name" is equal to "{{ unique }}"
And the response "query" is equal to "avg(current_1mo):avg:system.load.5{*} > 0.5"

@team:DataDog/monitor-app
@oncall-page:monitor-app @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,"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"}
Expand Down
Loading