Class: DatadogAPIClient::V1::SyntheticsTestOptions
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsTestOptions
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_test_options.rb
Overview
Object describing the extra options for a Synthetic test.
Instance Attribute Summary collapse
-
#_retry ⇒ Object
Returns the value of attribute _retry.
-
#accept_self_signed ⇒ Object
For SSL test, whether or not the test should allow self signed certificates.
-
#allow_insecure ⇒ Object
Allows loading insecure content for an HTTP request.
-
#device_ids ⇒ Object
For browser test, array with the different device IDs used to run the test.
-
#disable_cors ⇒ Object
Whether or not to disable CORS mechanism.
-
#follow_redirects ⇒ Object
For API HTTP test, whether or not the test should follow redirects.
-
#min_failure_duration ⇒ Object
Minimum amount of time in failure required to trigger an alert.
-
#min_location_failed ⇒ Object
Minimum number of locations in failure required to trigger an alert.
-
#monitor_name ⇒ Object
The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs.
-
#monitor_options ⇒ Object
Returns the value of attribute monitor_options.
-
#monitor_priority ⇒ Object
Integer from 1 (high) to 5 (low) indicating alert severity.
-
#no_screenshot ⇒ Object
Prevents saving screenshots of the steps.
-
#tick_every ⇒ Object
The frequency at which to run the Synthetic test (in seconds).
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SyntheticsTestOptions
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SyntheticsTestOptions
Initializes the object
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 118 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptions` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'accept_self_signed') self.accept_self_signed = attributes[:'accept_self_signed'] end if attributes.key?(:'allow_insecure') self.allow_insecure = attributes[:'allow_insecure'] end if attributes.key?(:'device_ids') if (value = attributes[:'device_ids']).is_a?(Array) self.device_ids = value end end if attributes.key?(:'disable_cors') self.disable_cors = attributes[:'disable_cors'] end if attributes.key?(:'follow_redirects') self.follow_redirects = attributes[:'follow_redirects'] end if attributes.key?(:'min_failure_duration') self.min_failure_duration = attributes[:'min_failure_duration'] end if attributes.key?(:'min_location_failed') self.min_location_failed = attributes[:'min_location_failed'] end if attributes.key?(:'monitor_name') self.monitor_name = attributes[:'monitor_name'] end if attributes.key?(:'monitor_options') self. = attributes[:'monitor_options'] end if attributes.key?(:'monitor_priority') self.monitor_priority = attributes[:'monitor_priority'] end if attributes.key?(:'no_screenshot') self.no_screenshot = attributes[:'no_screenshot'] end if attributes.key?(:'_retry') self._retry = attributes[:'_retry'] end if attributes.key?(:'tick_every') self.tick_every = attributes[:'tick_every'] end end |
Instance Attribute Details
#_retry ⇒ Object
Returns the value of attribute _retry.
58 59 60 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 58 def _retry @_retry end |
#accept_self_signed ⇒ Object
For SSL test, whether or not the test should allow self signed certificates.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 27 def accept_self_signed @accept_self_signed end |
#allow_insecure ⇒ Object
Allows loading insecure content for an HTTP request.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 30 def allow_insecure @allow_insecure end |
#device_ids ⇒ Object
For browser test, array with the different device IDs used to run the test.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 33 def device_ids @device_ids end |
#disable_cors ⇒ Object
Whether or not to disable CORS mechanism.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 36 def disable_cors @disable_cors end |
#follow_redirects ⇒ Object
For API HTTP test, whether or not the test should follow redirects.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 39 def follow_redirects @follow_redirects end |
#min_failure_duration ⇒ Object
Minimum amount of time in failure required to trigger an alert.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 42 def min_failure_duration @min_failure_duration end |
#min_location_failed ⇒ Object
Minimum number of locations in failure required to trigger an alert.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 45 def min_location_failed @min_location_failed end |
#monitor_name ⇒ Object
The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs.
48 49 50 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 48 def monitor_name @monitor_name end |
#monitor_options ⇒ Object
Returns the value of attribute monitor_options.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 50 def end |
#monitor_priority ⇒ Object
Integer from 1 (high) to 5 (low) indicating alert severity.
53 54 55 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 53 def monitor_priority @monitor_priority end |
#no_screenshot ⇒ Object
Prevents saving screenshots of the steps.
56 57 58 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 56 def no_screenshot @no_screenshot end |
#tick_every ⇒ Object
The frequency at which to run the Synthetic test (in seconds).
61 62 63 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_options.rb', line 61 def tick_every @tick_every end |