Class: DatadogAPIClient::V1::SyntheticsTestDetails
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsTestDetails
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_test_details.rb
Overview
Object containing details about your Synthetic test.
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#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 test public ID.
-
#status ⇒ Object
Returns the value of attribute status.
-
#steps ⇒ Object
For browser test, the steps of the test.
-
#subtype ⇒ Object
Returns the value of attribute subtype.
-
#tags ⇒ Object
Array of tags attached to the test.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SyntheticsTestDetails
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SyntheticsTestDetails
Initializes the object
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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 114 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestDetails` 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::SyntheticsTestDetails`. 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?(:'creator') self.creator = attributes[:'creator'] 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?(:'subtype') self.subtype = attributes[:'subtype'] end if attributes.key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self. = value end end if attributes.key?(:'type') self.type = attributes[:'type'] end end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 26 def config @config end |
#creator ⇒ Object
Returns the value of attribute creator.
28 29 30 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 28 def creator @creator end |
#locations ⇒ Object
Array of locations used to run the test.
31 32 33 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 31 def locations @locations end |
#message ⇒ Object
Notification message associated with the test.
34 35 36 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 34 def end |
#monitor_id ⇒ Object
The associated monitor ID.
37 38 39 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 37 def monitor_id @monitor_id end |
#name ⇒ Object
Name of the test.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 40 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 42 def end |
#public_id ⇒ Object
The test public ID.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 45 def public_id @public_id end |
#status ⇒ Object
Returns the value of attribute status.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 47 def status @status end |
#steps ⇒ Object
For browser test, the steps of the test.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 50 def steps @steps end |
#subtype ⇒ Object
Returns the value of attribute subtype.
52 53 54 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 52 def subtype @subtype end |
#tags ⇒ Object
Array of tags attached to the test.
55 56 57 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 55 def end |
#type ⇒ Object
Returns the value of attribute type.
57 58 59 |
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 57 def type @type end |