Class: DatadogAPIClient::V1::SyntheticsAPITestResultData
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsAPITestResultData
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb
Overview
Object containing results for your Synthetic API test.
Instance Attribute Summary collapse
-
#cert ⇒ Object
Returns the value of attribute cert.
-
#event_type ⇒ Object
Returns the value of attribute event_type.
-
#failure ⇒ Object
Returns the value of attribute failure.
-
#http_status_code ⇒ Object
The API test HTTP status code.
-
#request_headers ⇒ Object
Request header object used for the API test.
-
#response_body ⇒ Object
Response body returned for the API test.
-
#response_headers ⇒ Object
Response headers returned for the API test.
-
#response_size ⇒ Object
Global size in byte of the API test response.
-
#timings ⇒ Object
Returns the value of attribute timings.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SyntheticsAPITestResultData
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SyntheticsAPITestResultData
Initializes the object
96 97 98 99 100 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 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 96 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultData` 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::SyntheticsAPITestResultData`. 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?(:'cert') self.cert = attributes[:'cert'] end if attributes.key?(:'event_type') self.event_type = attributes[:'event_type'] end if attributes.key?(:'failure') self.failure = attributes[:'failure'] end if attributes.key?(:'http_status_code') self.http_status_code = attributes[:'http_status_code'] end if attributes.key?(:'request_headers') if (value = attributes[:'request_headers']).is_a?(Hash) self.request_headers = value end end if attributes.key?(:'response_body') self.response_body = attributes[:'response_body'] end if attributes.key?(:'response_headers') if (value = attributes[:'response_headers']).is_a?(Hash) self.response_headers = value end end if attributes.key?(:'response_size') self.response_size = attributes[:'response_size'] end if attributes.key?(:'timings') self.timings = attributes[:'timings'] end end |
Instance Attribute Details
#cert ⇒ Object
Returns the value of attribute cert.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 26 def cert @cert end |
#event_type ⇒ Object
Returns the value of attribute event_type.
28 29 30 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 28 def event_type @event_type end |
#failure ⇒ Object
Returns the value of attribute failure.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 30 def failure @failure end |
#http_status_code ⇒ Object
The API test HTTP status code.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 33 def http_status_code @http_status_code end |
#request_headers ⇒ Object
Request header object used for the API test.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 36 def request_headers @request_headers end |
#response_body ⇒ Object
Response body returned for the API test.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 39 def response_body @response_body end |
#response_headers ⇒ Object
Response headers returned for the API test.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 42 def response_headers @response_headers end |
#response_size ⇒ Object
Global size in byte of the API test response.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 45 def response_size @response_size end |
#timings ⇒ Object
Returns the value of attribute timings.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb', line 47 def timings @timings end |