@@ -60,7 +60,12 @@ class SyntheticsTestOptions(ModelNormal):
6060
6161 allowed_values = {}
6262
63- validations = {}
63+ validations = {
64+ ("monitor_priority" ,): {
65+ "inclusive_maximum" : 5 ,
66+ "inclusive_minimum" : 1 ,
67+ },
68+ }
6469
6570 additional_properties_type = None
6671
@@ -85,7 +90,9 @@ def openapi_types():
8590 "follow_redirects" : (bool ,), # noqa: E501
8691 "min_failure_duration" : (int ,), # noqa: E501
8792 "min_location_failed" : (int ,), # noqa: E501
93+ "monitor_name" : (str ,), # noqa: E501
8894 "monitor_options" : (SyntheticsTestOptionsMonitorOptions ,), # noqa: E501
95+ "monitor_priority" : (int ,), # noqa: E501
8996 "no_screenshot" : (bool ,), # noqa: E501
9097 "retry" : (SyntheticsTestOptionsRetry ,), # noqa: E501
9198 "tick_every" : (SyntheticsTickInterval ,), # noqa: E501
@@ -103,7 +110,9 @@ def discriminator():
103110 "follow_redirects" : "follow_redirects" , # noqa: E501
104111 "min_failure_duration" : "min_failure_duration" , # noqa: E501
105112 "min_location_failed" : "min_location_failed" , # noqa: E501
113+ "monitor_name" : "monitor_name" , # noqa: E501
106114 "monitor_options" : "monitor_options" , # noqa: E501
115+ "monitor_priority" : "monitor_priority" , # noqa: E501
107116 "no_screenshot" : "noScreenshot" , # noqa: E501
108117 "retry" : "retry" , # noqa: E501
109118 "tick_every" : "tick_every" , # noqa: E501
@@ -164,7 +173,9 @@ def __init__(self, *args, **kwargs): # noqa: E501
164173 follow_redirects (bool): For API HTTP test, whether or not the test should follow redirects.. [optional] # noqa: E501
165174 min_failure_duration (int): Minimum amount of time in failure required to trigger an alert.. [optional] # noqa: E501
166175 min_location_failed (int): Minimum number of locations in failure required to trigger an alert.. [optional] # noqa: E501
176+ monitor_name (str): The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs.. [optional] # noqa: E501
167177 monitor_options (SyntheticsTestOptionsMonitorOptions): [optional] # noqa: E501
178+ monitor_priority (int): Integer from 1 (high) to 5 (low) indicating alert severity.. [optional] # noqa: E501
168179 no_screenshot (bool): Prevents saving screenshots of the steps.. [optional] # noqa: E501
169180 retry (SyntheticsTestOptionsRetry): [optional] # noqa: E501
170181 tick_every (SyntheticsTickInterval): [optional] # noqa: E501
0 commit comments