Skip to content

Commit cc49cb8

Browse files
authored
Revert "Update api spec with additional monitor notification presets (#3116)" (#3125)
This reverts commit b33f9a0.
1 parent b33f9a0 commit cc49cb8

File tree

3 files changed

+2
-38
lines changed

3 files changed

+2
-38
lines changed

.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:

src/datadog_api_client/v1/model/monitor_options_notification_presets.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MonitorOptionsNotificationPresets(ModelSimple):
1616
"""
1717
Toggles the display of additional content sent in the monitor notification.
1818
19-
:param value: If omitted defaults to "show_all". Must be one of ["show_all", "hide_query", "hide_handles", "hide_all", "hide_query_and_handles", "show_only_snapshot", "hide_handles_and_footer"].
19+
:param value: If omitted defaults to "show_all". Must be one of ["show_all", "hide_query", "hide_handles", "hide_all"].
2020
:type value: str
2121
"""
2222

@@ -25,17 +25,11 @@ class MonitorOptionsNotificationPresets(ModelSimple):
2525
"hide_query",
2626
"hide_handles",
2727
"hide_all",
28-
"hide_query_and_handles",
29-
"show_only_snapshot",
30-
"hide_handles_and_footer",
3128
}
3229
SHOW_ALL: ClassVar["MonitorOptionsNotificationPresets"]
3330
HIDE_QUERY: ClassVar["MonitorOptionsNotificationPresets"]
3431
HIDE_HANDLES: ClassVar["MonitorOptionsNotificationPresets"]
3532
HIDE_ALL: ClassVar["MonitorOptionsNotificationPresets"]
36-
HIDE_QUERY_AND_HANDLES: ClassVar["MonitorOptionsNotificationPresets"]
37-
SHOW_ONLY_SNAPSHOT: ClassVar["MonitorOptionsNotificationPresets"]
38-
HIDE_HANDLES_AND_FOOTER: ClassVar["MonitorOptionsNotificationPresets"]
3933

4034
@cached_property
4135
def openapi_types(_):
@@ -48,6 +42,3 @@ def openapi_types(_):
4842
MonitorOptionsNotificationPresets.HIDE_QUERY = MonitorOptionsNotificationPresets("hide_query")
4943
MonitorOptionsNotificationPresets.HIDE_HANDLES = MonitorOptionsNotificationPresets("hide_handles")
5044
MonitorOptionsNotificationPresets.HIDE_ALL = MonitorOptionsNotificationPresets("hide_all")
51-
MonitorOptionsNotificationPresets.HIDE_QUERY_AND_HANDLES = MonitorOptionsNotificationPresets("hide_query_and_handles")
52-
MonitorOptionsNotificationPresets.SHOW_ONLY_SNAPSHOT = MonitorOptionsNotificationPresets("show_only_snapshot")
53-
MonitorOptionsNotificationPresets.HIDE_HANDLES_AND_FOOTER = MonitorOptionsNotificationPresets("hide_handles_and_footer")

src/datadog_api_client/v1/model/synthetics_test_options_monitor_options_notification_preset_name.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SyntheticsTestOptionsMonitorOptionsNotificationPresetName(ModelSimple):
1616
"""
1717
The name of the preset for the notification for the monitor.
1818
19-
:param value: Must be one of ["show_all", "hide_all", "hide_query", "hide_handles", "hide_query_and_handles", "show_only_snapshot", "hide_handles_and_footer"].
19+
:param value: Must be one of ["show_all", "hide_all", "hide_query", "hide_handles"].
2020
:type value: str
2121
"""
2222

@@ -25,17 +25,11 @@ class SyntheticsTestOptionsMonitorOptionsNotificationPresetName(ModelSimple):
2525
"hide_all",
2626
"hide_query",
2727
"hide_handles",
28-
"hide_query_and_handles",
29-
"show_only_snapshot",
30-
"hide_handles_and_footer",
3128
}
3229
SHOW_ALL: ClassVar["SyntheticsTestOptionsMonitorOptionsNotificationPresetName"]
3330
HIDE_ALL: ClassVar["SyntheticsTestOptionsMonitorOptionsNotificationPresetName"]
3431
HIDE_QUERY: ClassVar["SyntheticsTestOptionsMonitorOptionsNotificationPresetName"]
3532
HIDE_HANDLES: ClassVar["SyntheticsTestOptionsMonitorOptionsNotificationPresetName"]
36-
HIDE_QUERY_AND_HANDLES: ClassVar["SyntheticsTestOptionsMonitorOptionsNotificationPresetName"]
37-
SHOW_ONLY_SNAPSHOT: ClassVar["SyntheticsTestOptionsMonitorOptionsNotificationPresetName"]
38-
HIDE_HANDLES_AND_FOOTER: ClassVar["SyntheticsTestOptionsMonitorOptionsNotificationPresetName"]
3933

4034
@cached_property
4135
def openapi_types(_):
@@ -56,12 +50,3 @@ def openapi_types(_):
5650
SyntheticsTestOptionsMonitorOptionsNotificationPresetName.HIDE_HANDLES = (
5751
SyntheticsTestOptionsMonitorOptionsNotificationPresetName("hide_handles")
5852
)
59-
SyntheticsTestOptionsMonitorOptionsNotificationPresetName.HIDE_QUERY_AND_HANDLES = (
60-
SyntheticsTestOptionsMonitorOptionsNotificationPresetName("hide_query_and_handles")
61-
)
62-
SyntheticsTestOptionsMonitorOptionsNotificationPresetName.SHOW_ONLY_SNAPSHOT = (
63-
SyntheticsTestOptionsMonitorOptionsNotificationPresetName("show_only_snapshot")
64-
)
65-
SyntheticsTestOptionsMonitorOptionsNotificationPresetName.HIDE_HANDLES_AND_FOOTER = (
66-
SyntheticsTestOptionsMonitorOptionsNotificationPresetName("hide_handles_and_footer")
67-
)

0 commit comments

Comments
 (0)