Class: DatadogAPIClient::V1::SyntheticsCITest
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsCITest
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_ci_test.rb
Overview
Test configuration for Synthetics CI
Instance Attribute Summary collapse
-
#_retry ⇒ Object
Returns the value of attribute _retry.
-
#allow_insecure_certificates ⇒ Object
Disable certificate checks in API tests.
-
#basic_auth ⇒ Object
Returns the value of attribute basic_auth.
-
#body ⇒ Object
Body to include in the test.
-
#body_type ⇒ Object
Type of the data sent in a synthetics API test.
-
#cookies ⇒ Object
Cookies for the request.
-
#device_ids ⇒ Object
For browser test, array with the different device IDs used to run the test.
-
#follow_redirects ⇒ Object
For API HTTP test, whether or not the test should follow redirects.
-
#headers ⇒ Object
Headers to include when performing the test.
-
#locations ⇒ Object
Array of locations used to run the test.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#public_id ⇒ Object
The public ID of the Synthetics test to trigger.
-
#start_url ⇒ Object
Starting URL for the browser test.
-
#variables ⇒ Object
Variables to replace in the test.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SyntheticsCITest
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SyntheticsCITest
Initializes the object
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 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 122 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCITest` 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::SyntheticsCITest`. 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?(:'allow_insecure_certificates') self.allow_insecure_certificates = attributes[:'allow_insecure_certificates'] end if attributes.key?(:'basic_auth') self.basic_auth = attributes[:'basic_auth'] end if attributes.key?(:'body') self.body = attributes[:'body'] end if attributes.key?(:'body_type') self.body_type = attributes[:'body_type'] end if attributes.key?(:'cookies') self. = attributes[:'cookies'] end if attributes.key?(:'device_ids') if (value = attributes[:'device_ids']).is_a?(Array) self.device_ids = value end end if attributes.key?(:'follow_redirects') self.follow_redirects = attributes[:'follow_redirects'] end if attributes.key?(:'headers') if (value = attributes[:'headers']).is_a?(Hash) self.headers = value end end if attributes.key?(:'locations') if (value = attributes[:'locations']).is_a?(Array) self.locations = value end end if attributes.key?(:'metadata') self. = attributes[:'metadata'] end if attributes.key?(:'public_id') self.public_id = attributes[:'public_id'] end if attributes.key?(:'_retry') self._retry = attributes[:'_retry'] end if attributes.key?(:'start_url') self.start_url = attributes[:'start_url'] end if attributes.key?(:'variables') if (value = attributes[:'variables']).is_a?(Hash) self.variables = value end end end |
Instance Attribute Details
#_retry ⇒ Object
Returns the value of attribute _retry.
57 58 59 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 57 def _retry @_retry end |
#allow_insecure_certificates ⇒ Object
Disable certificate checks in API tests.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 27 def allow_insecure_certificates @allow_insecure_certificates end |
#basic_auth ⇒ Object
Returns the value of attribute basic_auth.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 29 def basic_auth @basic_auth end |
#body ⇒ Object
Body to include in the test.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 32 def body @body end |
#body_type ⇒ Object
Type of the data sent in a synthetics API test.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 35 def body_type @body_type end |
#cookies ⇒ Object
Cookies for the request.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 38 def end |
#device_ids ⇒ Object
For browser test, array with the different device IDs used to run the test.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 41 def device_ids @device_ids end |
#follow_redirects ⇒ Object
For API HTTP test, whether or not the test should follow redirects.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 44 def follow_redirects @follow_redirects end |
#headers ⇒ Object
Headers to include when performing the test.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 47 def headers @headers end |
#locations ⇒ Object
Array of locations used to run the test.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 50 def locations @locations end |
#metadata ⇒ Object
Returns the value of attribute metadata.
52 53 54 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 52 def end |
#public_id ⇒ Object
The public ID of the Synthetics test to trigger.
55 56 57 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 55 def public_id @public_id end |
#start_url ⇒ Object
Starting URL for the browser test.
60 61 62 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 60 def start_url @start_url end |
#variables ⇒ Object
Variables to replace in the test.
63 64 65 |
# File 'lib/datadog_api_client/v1/models/synthetics_ci_test.rb', line 63 def variables @variables end |