Class: ApplicationInsights::Channel::Contracts::RemoteDependencyData
- Inherits:
-
JsonSerializable
- Object
- JsonSerializable
- ApplicationInsights::Channel::Contracts::RemoteDependencyData
- Defined in:
- lib/application_insights/channel/contracts/remote_dependency_data.rb
Overview
Data contract class for type RemoteDependencyData.
Instance Method Summary collapse
-
#async ⇒ Object
Gets the async property.
-
#async=(value) ⇒ Object
Sets the async property.
-
#command_name ⇒ Object
Gets the command_name property.
-
#command_name=(value) ⇒ Object
Sets the command_name property.
-
#count ⇒ Object
Gets the count property.
-
#count=(value) ⇒ Object
Sets the count property.
-
#dependency_kind ⇒ Object
Gets the dependency_kind property.
-
#dependency_kind=(value) ⇒ Object
Sets the dependency_kind property.
-
#dependency_source ⇒ Object
Gets the dependency_source property.
-
#dependency_source=(value) ⇒ Object
Sets the dependency_source property.
-
#dependency_type_name ⇒ Object
Gets the dependency_type_name property.
-
#dependency_type_name=(value) ⇒ Object
Sets the dependency_type_name property.
-
#initialize(options = {}) ⇒ RemoteDependencyData
constructor
Initializes a new instance of the RemoteDependencyData class.
-
#kind ⇒ Object
Gets the kind property.
-
#kind=(value) ⇒ Object
Sets the kind property.
-
#max ⇒ Object
Gets the max property.
-
#max=(value) ⇒ Object
Sets the max property.
-
#min ⇒ Object
Gets the min property.
-
#min=(value) ⇒ Object
Sets the min property.
-
#name ⇒ Object
Gets the name property.
-
#name=(value) ⇒ Object
Sets the name property.
-
#properties ⇒ Object
Gets the properties property.
-
#properties=(value) ⇒ Object
Sets the properties property.
-
#std_dev ⇒ Object
Gets the std_dev property.
-
#std_dev=(value) ⇒ Object
Sets the std_dev property.
-
#success ⇒ Object
Gets the success property.
-
#success=(value) ⇒ Object
Sets the success property.
-
#value ⇒ Object
Gets the value property.
-
#value=(value) ⇒ Object
Sets the value property.
-
#ver ⇒ Object
Gets the ver property.
-
#ver=(value) ⇒ Object
Sets the ver property.
Methods inherited from JsonSerializable
Constructor Details
#initialize(options = {}) ⇒ RemoteDependencyData
Initializes a new instance of the RemoteDependencyData class.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 12 def initialize(={}) defaults = { 'ver' => 2, 'name' => nil, 'kind' => DataPointType::MEASUREMENT, 'value' => nil, 'count' => nil, 'min' => nil, 'max' => nil, 'stdDev' => nil, 'dependencyKind' => DependencyKind::OTHER, 'success' => true, 'async' => nil, 'dependencySource' => DependencySourceType::UNDEFINED, 'commandName' => nil, 'dependencyTypeName' => nil, 'properties' => {} } values = { 'ver' => 2, 'name' => nil, 'kind' => DataPointType::MEASUREMENT, 'value' => nil, 'dependencyKind' => DependencyKind::OTHER, 'success' => true, 'dependencySource' => DependencySourceType::UNDEFINED } super defaults, values, end |
Instance Method Details
#async ⇒ Object
Gets the async property.
179 180 181 182 183 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 179 def async @values.fetch('async') { @values['async'] = nil } end |
#async=(value) ⇒ Object
Sets the async property.
186 187 188 189 190 191 192 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 186 def async=(value) if value == @defaults['async'] @values.delete 'async' if @values.key? 'async' else @values['async'] = value end end |
#command_name ⇒ Object
Gets the command_name property.
211 212 213 214 215 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 211 def command_name @values.fetch('commandName') { @values['commandName'] = nil } end |
#command_name=(value) ⇒ Object
Sets the command_name property.
218 219 220 221 222 223 224 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 218 def command_name=(value) if value == @defaults['commandName'] @values.delete 'commandName' if @values.key? 'commandName' else @values['commandName'] = value end end |
#count ⇒ Object
Gets the count property.
89 90 91 92 93 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 89 def count @values.fetch('count') { @values['count'] = nil } end |
#count=(value) ⇒ Object
Sets the count property.
96 97 98 99 100 101 102 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 96 def count=(value) if value == @defaults['count'] @values.delete 'count' if @values.key? 'count' else @values['count'] = value end end |
#dependency_kind ⇒ Object
Gets the dependency_kind property.
153 154 155 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 153 def dependency_kind @values['dependencyKind'] end |
#dependency_kind=(value) ⇒ Object
Sets the dependency_kind property.
158 159 160 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 158 def dependency_kind=(value) @values['dependencyKind'] = value end |
#dependency_source ⇒ Object
Gets the dependency_source property.
195 196 197 198 199 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 195 def dependency_source @values.fetch('dependencySource') { @values['dependencySource'] = DependencySourceType::UNDEFINED } end |
#dependency_source=(value) ⇒ Object
Sets the dependency_source property.
202 203 204 205 206 207 208 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 202 def dependency_source=(value) if value == @defaults['dependencySource'] @values.delete 'dependencySource' if @values.key? 'dependencySource' else @values['dependencySource'] = value end end |
#dependency_type_name ⇒ Object
Gets the dependency_type_name property.
227 228 229 230 231 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 227 def dependency_type_name @values.fetch('dependencyTypeName') { @values['dependencyTypeName'] = nil } end |
#dependency_type_name=(value) ⇒ Object
Sets the dependency_type_name property.
234 235 236 237 238 239 240 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 234 def dependency_type_name=(value) if value == @defaults['dependencyTypeName'] @values.delete 'dependencyTypeName' if @values.key? 'dependencyTypeName' else @values['dependencyTypeName'] = value end end |
#kind ⇒ Object
Gets the kind property.
63 64 65 66 67 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 63 def kind @values.fetch('kind') { @values['kind'] = DataPointType::MEASUREMENT } end |
#kind=(value) ⇒ Object
Sets the kind property.
70 71 72 73 74 75 76 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 70 def kind=(value) if value == @defaults['kind'] @values.delete 'kind' if @values.key? 'kind' else @values['kind'] = value end end |
#max ⇒ Object
Gets the max property.
121 122 123 124 125 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 121 def max @values.fetch('max') { @values['max'] = nil } end |
#max=(value) ⇒ Object
Sets the max property.
128 129 130 131 132 133 134 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 128 def max=(value) if value == @defaults['max'] @values.delete 'max' if @values.key? 'max' else @values['max'] = value end end |
#min ⇒ Object
Gets the min property.
105 106 107 108 109 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 105 def min @values.fetch('min') { @values['min'] = nil } end |
#min=(value) ⇒ Object
Sets the min property.
112 113 114 115 116 117 118 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 112 def min=(value) if value == @defaults['min'] @values.delete 'min' if @values.key? 'min' else @values['min'] = value end end |
#name ⇒ Object
Gets the name property.
53 54 55 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 53 def name @values['name'] end |
#name=(value) ⇒ Object
Sets the name property.
58 59 60 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 58 def name=(value) @values['name'] = value end |
#properties ⇒ Object
Gets the properties property.
243 244 245 246 247 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 243 def properties @values.fetch('properties') { @values['properties'] = {} } end |
#properties=(value) ⇒ Object
Sets the properties property.
250 251 252 253 254 255 256 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 250 def properties=(value) if value == @defaults['properties'] @values.delete 'properties' if @values.key? 'properties' else @values['properties'] = value end end |
#std_dev ⇒ Object
Gets the std_dev property.
137 138 139 140 141 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 137 def std_dev @values.fetch('stdDev') { @values['stdDev'] = nil } end |
#std_dev=(value) ⇒ Object
Sets the std_dev property.
144 145 146 147 148 149 150 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 144 def std_dev=(value) if value == @defaults['stdDev'] @values.delete 'stdDev' if @values.key? 'stdDev' else @values['stdDev'] = value end end |
#success ⇒ Object
Gets the success property.
163 164 165 166 167 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 163 def success @values.fetch('success') { @values['success'] = true } end |
#success=(value) ⇒ Object
Sets the success property.
170 171 172 173 174 175 176 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 170 def success=(value) if value == @defaults['success'] @values.delete 'success' if @values.key? 'success' else @values['success'] = value end end |
#value ⇒ Object
Gets the value property.
79 80 81 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 79 def value @values['value'] end |
#value=(value) ⇒ Object
Sets the value property.
84 85 86 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 84 def value=(value) @values['value'] = value end |
#ver ⇒ Object
Gets the ver property.
43 44 45 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 43 def ver @values['ver'] end |
#ver=(value) ⇒ Object
Sets the ver property.
48 49 50 |
# File 'lib/application_insights/channel/contracts/remote_dependency_data.rb', line 48 def ver=(value) @values['ver'] = value end |