Skip to content

Commit da8bc38

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update api spec with additional monitor notification presets (#3644)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 01e9d2b commit da8bc38

3 files changed

Lines changed: 32 additions & 8 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8391,12 +8391,18 @@ components:
83918391
- hide_query
83928392
- hide_handles
83938393
- hide_all
8394+
- hide_query_and_handles
8395+
- show_only_snapshot
8396+
- hide_handles_and_footer
83948397
type: string
83958398
x-enum-varnames:
83968399
- SHOW_ALL
83978400
- HIDE_QUERY
83988401
- HIDE_HANDLES
83998402
- HIDE_ALL
8403+
- HIDE_QUERY_AND_HANDLES
8404+
- SHOW_ONLY_SNAPSHOT
8405+
- HIDE_HANDLES_AND_FOOTER
84008406
MonitorOptionsSchedulingOptions:
84018407
description: Configuration options for scheduling.
84028408
properties:
@@ -18283,12 +18289,18 @@ components:
1828318289
- hide_all
1828418290
- hide_query
1828518291
- hide_handles
18292+
- hide_query_and_handles
18293+
- show_only_snapshot
18294+
- hide_handles_and_footer
1828618295
type: string
1828718296
x-enum-varnames:
1828818297
- SHOW_ALL
1828918298
- HIDE_ALL
1829018299
- HIDE_QUERY
1829118300
- HIDE_HANDLES
18301+
- HIDE_QUERY_AND_HANDLES
18302+
- SHOW_ONLY_SNAPSHOT
18303+
- HIDE_HANDLES_AND_FOOTER
1829218304
SyntheticsTestOptionsRetry:
1829318305
description: Object describing the retry strategy to apply to a Synthetic test.
1829418306
properties:

api/datadogV1/model_monitor_options_notification_presets.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,23 @@ 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"
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"
2225
)
2326

2427
var allowedMonitorOptionsNotificationPresetsEnumValues = []MonitorOptionsNotificationPresets{
2528
MONITOROPTIONSNOTIFICATIONPRESETS_SHOW_ALL,
2629
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_QUERY,
2730
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_HANDLES,
2831
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_ALL,
32+
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_QUERY_AND_HANDLES,
33+
MONITOROPTIONSNOTIFICATIONPRESETS_SHOW_ONLY_SNAPSHOT,
34+
MONITOROPTIONSNOTIFICATIONPRESETS_HIDE_HANDLES_AND_FOOTER,
2935
}
3036

3137
// GetAllowedValues reeturns the list of possible values.

api/datadogV1/model_synthetics_test_options_monitor_options_notification_preset_name.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,23 @@ 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"
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"
2225
)
2326

2427
var allowedSyntheticsTestOptionsMonitorOptionsNotificationPresetNameEnumValues = []SyntheticsTestOptionsMonitorOptionsNotificationPresetName{
2528
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_SHOW_ALL,
2629
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_ALL,
2730
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_QUERY,
2831
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_HANDLES,
32+
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_QUERY_AND_HANDLES,
33+
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_SHOW_ONLY_SNAPSHOT,
34+
SYNTHETICSTESTOPTIONSMONITOROPTIONSNOTIFICATIONPRESETNAME_HIDE_HANDLES_AND_FOOTER,
2935
}
3036

3137
// GetAllowedValues reeturns the list of possible values.

0 commit comments

Comments
 (0)