Class: DatadogAPIClient::V1::SyntheticsTestConfig
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsTestConfig
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_test_config.rb
Overview
Configuration object for a Synthetic test.
Instance Attribute Summary collapse
-
#assertions ⇒ Object
Array of assertions used for the test.
-
#config_variables ⇒ Object
Array of variables used for the test.
-
#request ⇒ Object
Returns the value of attribute request.
-
#variables ⇒ Object
Browser tests only - array of variables used for the test steps.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SyntheticsTestConfig
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SyntheticsTestConfig
Initializes the object
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_config.rb', line 74 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestConfig` 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::SyntheticsTestConfig`. 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?(:'assertions') if (value = attributes[:'assertions']).is_a?(Array) self.assertions = value end end if attributes.key?(:'config_variables') if (value = attributes[:'config_variables']).is_a?(Array) self.config_variables = value end end if attributes.key?(:'request') self.request = attributes[:'request'] end if attributes.key?(:'variables') if (value = attributes[:'variables']).is_a?(Array) self.variables = value end end end |
Instance Attribute Details
#assertions ⇒ Object
Array of assertions used for the test. Required for single API tests.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_config.rb', line 27 def assertions @assertions end |
#config_variables ⇒ Object
Array of variables used for the test.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_config.rb', line 30 def config_variables @config_variables end |
#request ⇒ Object
Returns the value of attribute request.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_config.rb', line 32 def request @request end |
#variables ⇒ Object
Browser tests only - array of variables used for the test steps.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_config.rb', line 35 def variables @variables end |