Class: DatadogAPIClient::V1::HostMeta
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::HostMeta
- Defined in:
- lib/datadog_api_client/v1/models/host_meta.rb
Overview
Metadata associated with your host.
Instance Attribute Summary collapse
-
#agent_checks ⇒ Object
A list of Agent checks running on the host.
-
#agent_version ⇒ Object
The Datadog Agent version.
-
#cpu_cores ⇒ Object
The number of cores.
-
#fbsd_v ⇒ Object
An array of Mac versions.
-
#gohai ⇒ Object
JSON string containing system information.
-
#install_method ⇒ Object
Returns the value of attribute install_method.
-
#mac_v ⇒ Object
An array of Mac versions.
-
#machine ⇒ Object
The machine architecture.
-
#nix_v ⇒ Object
Array of Unix versions.
-
#platform ⇒ Object
The OS platform.
-
#processor ⇒ Object
The processor.
-
#python_v ⇒ Object
The Python version.
-
#socket_fqdn ⇒ Object
The socket fqdn.
-
#socket_hostname ⇒ Object
The socket hostname.
-
#win_v ⇒ Object
An array of Windows versions.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ HostMeta
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ HostMeta
Initializes the object
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 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 129 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMeta` 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::HostMeta`. 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?(:'agent_checks') if (value = attributes[:'agent_checks']).is_a?(Array) self.agent_checks = value end end if attributes.key?(:'agent_version') self.agent_version = attributes[:'agent_version'] end if attributes.key?(:'cpu_cores') self.cpu_cores = attributes[:'cpu_cores'] end if attributes.key?(:'fbsd_v') if (value = attributes[:'fbsd_v']).is_a?(Array) self.fbsd_v = value end end if attributes.key?(:'gohai') self.gohai = attributes[:'gohai'] end if attributes.key?(:'install_method') self.install_method = attributes[:'install_method'] end if attributes.key?(:'mac_v') if (value = attributes[:'mac_v']).is_a?(Array) self.mac_v = value end end if attributes.key?(:'machine') self.machine = attributes[:'machine'] end if attributes.key?(:'nix_v') if (value = attributes[:'nix_v']).is_a?(Array) self.nix_v = value end end if attributes.key?(:'platform') self.platform = attributes[:'platform'] end if attributes.key?(:'processor') self.processor = attributes[:'processor'] end if attributes.key?(:'python_v') self.python_v = attributes[:'python_v'] end if attributes.key?(:'socket_fqdn') self.socket_fqdn = attributes[:'socket_fqdn'] end if attributes.key?(:'socket_hostname') self.socket_hostname = attributes[:'socket_hostname'] end if attributes.key?(:'win_v') if (value = attributes[:'win_v']).is_a?(Array) self.win_v = value end end end |
Instance Attribute Details
#agent_checks ⇒ Object
A list of Agent checks running on the host.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 27 def agent_checks @agent_checks end |
#agent_version ⇒ Object
The Datadog Agent version.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 30 def agent_version @agent_version end |
#cpu_cores ⇒ Object
The number of cores.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 33 def cpu_cores @cpu_cores end |
#fbsd_v ⇒ Object
An array of Mac versions.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 36 def fbsd_v @fbsd_v end |
#gohai ⇒ Object
JSON string containing system information.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 39 def gohai @gohai end |
#install_method ⇒ Object
Returns the value of attribute install_method.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 41 def install_method @install_method end |
#mac_v ⇒ Object
An array of Mac versions.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 44 def mac_v @mac_v end |
#machine ⇒ Object
The machine architecture.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 47 def machine @machine end |
#nix_v ⇒ Object
Array of Unix versions.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 50 def nix_v @nix_v end |
#platform ⇒ Object
The OS platform.
53 54 55 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 53 def platform @platform end |
#processor ⇒ Object
The processor.
56 57 58 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 56 def processor @processor end |
#python_v ⇒ Object
The Python version.
59 60 61 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 59 def python_v @python_v end |
#socket_fqdn ⇒ Object
The socket fqdn.
62 63 64 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 62 def socket_fqdn @socket_fqdn end |
#socket_hostname ⇒ Object
The socket hostname.
65 66 67 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 65 def socket_hostname @socket_hostname end |
#win_v ⇒ Object
An array of Windows versions.
68 69 70 |
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 68 def win_v @win_v end |