Skip to content

Commit 01e9d2b

Browse files
authored
Revert "Update api spec with additional monitor notification presets (#3635)" (#3643)
This reverts commit ed14c21.
1 parent ed14c21 commit 01e9d2b

3 files changed

Lines changed: 8 additions & 32 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8391,18 +8391,12 @@ components:
83918391
- hide_query
83928392
- hide_handles
83938393
- hide_all
8394-
- hide_query_and_handles
8395-
- show_only_snapshot
8396-
- hide_handles_and_footer
83978394
type: string
83988395
x-enum-varnames:
83998396
- SHOW_ALL
84008397
- HIDE_QUERY
84018398
- HIDE_HANDLES
84028399
- HIDE_ALL
8403-
- HIDE_QUERY_AND_HANDLES
8404-
- SHOW_ONLY_SNAPSHOT
8405-
- HIDE_HANDLES_AND_FOOTER
84068400
MonitorOptionsSchedulingOptions:
84078401
description: Configuration options for scheduling.
84088402
properties:
@@ -18289,18 +18283,12 @@ components:
1828918283
- hide_all
1829018284
- hide_query
1829118285
- hide_handles
18292-
- hide_query_and_handles
18293-
- show_only_snapshot
18294-
- hide_handles_and_footer
1829518286
type: string
1829618287
x-enum-varnames:
1829718288
- SHOW_ALL
1829818289
- HIDE_ALL
1829918290
- HIDE_QUERY
1830018291
- HIDE_HANDLES
18301-
- HIDE_QUERY_AND_HANDLES
18302-
- SHOW_ONLY_SNAPSHOT
18303-
- HIDE_HANDLES_AND_FOOTER
1830418292
SyntheticsTestOptionsRetry:
1830518293
description: Object describing the retry strategy to apply to a Synthetic test.
1830618294
properties:

api/datadogV1/model_monitor_options_notification_presets.go

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,17 @@ type MonitorOptionsNotificationPresets string
1515

1616
// List of MonitorOptionsNotificationPresets.
1717
const (
18-
MONITOROPTIONSNOTIFICATIONPRESETS_SHOW_ALL MonitorOptionsNotificationPresets = "show_all"
19-
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_QUERY MonitorOptionsNotificationPresets = "hide_query"
20-
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_HANDLES MonitorOptionsNotificationPresets = "hide_handles"
21-
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_ALL MonitorOptionsNotificationPresets = "hide_all"
22-
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_QUERY_AND_HANDLES MonitorOptionsNotificationPresets = "hide_query_and_handles"
23-
MONITOROPTIONSNOTIFICATIONPRESETS_SHOW_ONLY_SNAPSHOT MonitorOptionsNotificationPresets = "show_only_snapshot"
24-
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_HANDLES_AND_FOOTER MonitorOptionsNotificationPresets = "hide_handles_and_footer"
18+
MONITOROPTIONSNOTIFICATIONPRESETS_SHOW_ALL MonitorOptionsNotificationPresets = "show_all"
19+
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_QUERY MonitorOptionsNotificationPresets = "hide_query"
20+
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_HANDLES MonitorOptionsNotificationPresets = "hide_handles"
21+
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_ALL MonitorOptionsNotificationPresets = "hide_all"
2522
)
2623

2724
var allowedMonitorOptionsNotificationPresetsEnumValues = []MonitorOptionsNotificationPresets{
2825
MONITOROPTIONSNOTIFICATIONPRESETS_SHOW_ALL,
2926
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_QUERY,
3027
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_HANDLES,
3128
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_ALL,
32-
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_QUERY_AND_HANDLES,
33-
MONITOROPTIONSNOTIFICATIONPRESETS_SHOW_ONLY_SNAPSHOT,
34-
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_HANDLES_AND_FOOTER,
3529
}
3630

3731
// GetAllowedValues reeturns the list of possible values.

api/datadogV1/model_synthetics_test_options_monitor_options_notification_preset_name.go

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,17 @@ type SyntheticsTestOptionsMonitorOptionsNotificationPresetName string
1515

1616
// List of SyntheticsTestOptionsMonitorOptionsNotificationPresetName.
1717
const (
18-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_SHOW_ALL SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "show_all"
19-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_ALL SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "hide_all"
20-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_QUERY SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "hide_query"
21-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_HANDLES SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "hide_handles"
22-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_QUERY_AND_HANDLES SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "hide_query_and_handles"
23-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_SHOW_ONLY_SNAPSHOT SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "show_only_snapshot"
24-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_HANDLES_AND_FOOTER SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "hide_handles_and_footer"
18+
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_SHOW_ALL SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "show_all"
19+
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_ALL SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "hide_all"
20+
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_QUERY SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "hide_query"
21+
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_HANDLES SyntheticsTestOptionsMonitorOptionsNotificationPresetName = "hide_handles"
2522
)
2623

2724
var allowedSyntheticsTestOptionsMonitorOptionsNotificationPresetNameEnumValues = []SyntheticsTestOptionsMonitorOptionsNotificationPresetName{
2825
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_SHOW_ALL,
2926
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_ALL,
3027
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_QUERY,
3128
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_HANDLES,
32-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_QUERY_AND_HANDLES,
33-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_SHOW_ONLY_SNAPSHOT,
34-
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_HANDLES_AND_FOOTER,
3529
}
3630

3731
// GetAllowedValues reeturns the list of possible values.

0 commit comments

Comments
 (0)