Class: DatadogAPIClient::V1::HostMeta

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

Overview

Metadata associated with your host.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ HostMeta

Initializes the object

Parameters:

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

    attributes Model attributes in the form of hash



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_checksObject

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_versionObject

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_coresObject

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_vObject

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

#gohaiObject

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_methodObject

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_vObject

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

#machineObject

The machine architecture.



47
48
49
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 47

def machine
  @machine
end

#nix_vObject

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

#platformObject

The OS platform.



53
54
55
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 53

def platform
  @platform
end

#processorObject

The processor.



56
57
58
# File 'lib/datadog_api_client/v1/models/host_meta.rb', line 56

def processor
  @processor
end

#python_vObject

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_fqdnObject

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_hostnameObject

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_vObject

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