Class: DatadogAPIClient::V1::SyntheticsBatchResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SyntheticsBatchResult

Initializes the object

Parameters:

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

    attributes Model attributes in the form of hash



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

#deviceObject

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

#durationObject

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_ruleObject

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

#locationObject

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_idObject

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

#retriesObject

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

#statusObject

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_nameObject

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_idObject

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_typeObject

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