Class: DatadogAPIClient::V1::SyntheticsTestDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v1/models/synthetics_test_details.rb

Overview

Object containing details about your Synthetic test.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SyntheticsTestDetails

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



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.message = 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.options = 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.tags = value
    end
  end

  if attributes.key?(:'type')
    self.type = attributes[:'type']
  end
end

Instance Attribute Details

#configObject

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

#creatorObject

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

#locationsObject

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

#messageObject

Notification message associated with the test.



34
35
36
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 34

def message
  @message
end

#monitor_idObject

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

#nameObject

Name of the test.



40
41
42
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 40

def name
  @name
end

#optionsObject

Returns the value of attribute options.



42
43
44
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 42

def options
  @options
end

#public_idObject

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

#statusObject

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

#stepsObject

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

#subtypeObject

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

#tagsObject

Array of tags attached to the test.



55
56
57
# File 'lib/datadog_api_client/v1/models/synthetics_test_details.rb', line 55

def tags
  @tags
end

#typeObject

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