Class: DatadogAPIClient::V1::SyntheticsBrowserTest
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsBrowserTest
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_browser_test.rb
Overview
Object containing details about a Synthetic browser test.
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#locations ⇒ Object
Array of locations used to run the test.
-
#message ⇒ Object
Notification message associated with the test.
-
#monitor_id ⇒ Object
The associated monitor ID.
-
#name ⇒ Object
Name of the test.
-
#options ⇒ Object
Returns the value of attribute options.
-
#public_id ⇒ Object
The public ID of the test.
-
#status ⇒ Object
Returns the value of attribute status.
-
#steps ⇒ Object
The steps of the test.
-
#tags ⇒ Object
Array of tags attached to the test.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SyntheticsBrowserTest
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SyntheticsBrowserTest
Initializes the object
106 107 108 109 110 111 112 113 114 115 116 117 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 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 106 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTest` 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::SyntheticsBrowserTest`. 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?(:'config') self.config = attributes[:'config'] end if attributes.key?(:'locations') if (value = attributes[:'locations']).is_a?(Array) self.locations = value end end if attributes.key?(:'message') self. = attributes[:'message'] end if attributes.key?(:'monitor_id') self.monitor_id = attributes[:'monitor_id'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'options') self. = attributes[:'options'] end if attributes.key?(:'public_id') self.public_id = attributes[:'public_id'] end if attributes.key?(:'status') self.status = attributes[:'status'] end if attributes.key?(:'steps') if (value = attributes[:'steps']).is_a?(Array) self.steps = value end end if attributes.key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self. = value end end if attributes.key?(:'type') self.type = attributes[:'type'] else self.type = 'browser' end end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 26 def config @config end |
#locations ⇒ Object
Array of locations used to run the test.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 29 def locations @locations end |
#message ⇒ Object
Notification message associated with the test. Message can either be text or an empty string.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 32 def @message end |
#monitor_id ⇒ Object
The associated monitor ID.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 35 def monitor_id @monitor_id end |
#name ⇒ Object
Name of the test.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 38 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 40 def @options end |
#public_id ⇒ Object
The public ID of the test.
43 44 45 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 43 def public_id @public_id end |
#status ⇒ Object
Returns the value of attribute status.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 45 def status @status end |
#steps ⇒ Object
The steps of the test.
48 49 50 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 48 def steps @steps end |
#tags ⇒ Object
Array of tags attached to the test.
51 52 53 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 51 def @tags end |
#type ⇒ Object
Returns the value of attribute type.
53 54 55 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test.rb', line 53 def type @type end |