Class: DatadogAPIClient::V1::SyntheticsAPITestResultFull

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

Overview

Object returned describing a API test result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SyntheticsAPITestResultFull

Initializes the object

Parameters:

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

    attributes Model attributes in the form of hash



87
88
89
90
91
92
93
94
95
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
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb', line 87

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultFull` 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::SyntheticsAPITestResultFull`. 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?(:'check')
    self.check = attributes[:'check']
  end

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

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

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

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

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

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

Instance Attribute Details

#checkObject

Returns the value of attribute check.



26
27
28
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb', line 26

def check
  @check
end

#check_timeObject

When the API test was conducted.



29
30
31
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb', line 29

def check_time
  @check_time
end

#check_versionObject

Version of the API test used.



32
33
34
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb', line 32

def check_version
  @check_version
end

#probe_dcObject

Locations for which to query the API test results.



35
36
37
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb', line 35

def probe_dc
  @probe_dc
end

#resultObject

Returns the value of attribute result.



37
38
39
# File 'lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb', line 37

def result
  @result
end

#result_idObject

ID of the API test result.



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

def result_id
  @result_id
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end