Class: DatadogAPIClient::V1::SyntheticsAPITest
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsAPITest
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_api_test.rb
Overview
Object containing details about a Synthetic API 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 for the test.
-
#status ⇒ Object
Returns the value of attribute status.
-
#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 = {}) ⇒ SyntheticsAPITest
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SyntheticsAPITest
Initializes the object
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 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test.rb', line 105 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITest` 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::SyntheticsAPITest`. 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?(:'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'] else self.type = 'api' end end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_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_api_test.rb', line 29 def locations @locations end |
#message ⇒ Object
Notification message associated with the test.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test.rb', line 32 def end |
#monitor_id ⇒ Object
The associated monitor ID.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_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_api_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_api_test.rb', line 40 def end |
#public_id ⇒ Object
The public ID for the test.
43 44 45 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_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_api_test.rb', line 45 def status @status end |
#subtype ⇒ Object
Returns the value of attribute subtype.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test.rb', line 47 def subtype @subtype end |
#tags ⇒ Object
Array of tags attached to the test.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test.rb', line 50 def end |
#type ⇒ Object
Returns the value of attribute type.
52 53 54 |
# File 'lib/datadog_api_client/v1/models/synthetics_api_test.rb', line 52 def type @type end |