Class: DatadogAPIClient::V1::SyntheticsBatchResult
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsBatchResult
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_batch_result.rb
Overview
Object with the results of a Synthetics batch.
Instance Attribute Summary collapse
-
#device ⇒ Object
Returns the value of attribute device.
-
#duration ⇒ Object
Total duration in millisecond of the test.
-
#execution_rule ⇒ Object
Returns the value of attribute execution_rule.
-
#location ⇒ Object
Name of the location.
-
#result_id ⇒ Object
The ID of the result to get.
-
#retries ⇒ Object
Total duration in millisecond of the test.
-
#status ⇒ Object
Returns the value of attribute status.
-
#test_name ⇒ Object
Name of the test.
-
#test_public_id ⇒ Object
The public ID of the Synthetic test.
-
#test_type ⇒ Object
Returns the value of attribute test_type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SyntheticsBatchResult
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SyntheticsBatchResult
Initializes the object
101 102 103 104 105 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 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 101 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchResult` 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::SyntheticsBatchResult`. 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?(:'device') self.device = attributes[:'device'] end if attributes.key?(:'duration') self.duration = attributes[:'duration'] end if attributes.key?(:'execution_rule') self.execution_rule = attributes[:'execution_rule'] end if attributes.key?(:'location') self.location = attributes[:'location'] end if attributes.key?(:'result_id') self.result_id = attributes[:'result_id'] end if attributes.key?(:'retries') self.retries = attributes[:'retries'] end if attributes.key?(:'status') self.status = attributes[:'status'] end if attributes.key?(:'test_name') self.test_name = attributes[:'test_name'] end if attributes.key?(:'test_public_id') self.test_public_id = attributes[:'test_public_id'] end if attributes.key?(:'test_type') self.test_type = attributes[:'test_type'] end end |
Instance Attribute Details
#device ⇒ Object
Returns the value of attribute device.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 26 def device @device end |
#duration ⇒ Object
Total duration in millisecond of the test.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 29 def duration @duration end |
#execution_rule ⇒ Object
Returns the value of attribute execution_rule.
31 32 33 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 31 def execution_rule @execution_rule end |
#location ⇒ Object
Name of the location.
34 35 36 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 34 def location @location end |
#result_id ⇒ Object
The ID of the result to get.
37 38 39 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 37 def result_id @result_id end |
#retries ⇒ Object
Total duration in millisecond of the test.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 40 def retries @retries end |
#status ⇒ Object
Returns the value of attribute status.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 42 def status @status end |
#test_name ⇒ Object
Name of the test.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 45 def test_name @test_name end |
#test_public_id ⇒ Object
The public ID of the Synthetic test.
48 49 50 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 48 def test_public_id @test_public_id end |
#test_type ⇒ Object
Returns the value of attribute test_type.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/synthetics_batch_result.rb', line 50 def test_type @test_type end |