Class: Atatus::Metadata Private

Inherits:
Object
  • Object
show all
Defined in:
lib/atatus/metadata.rb,
lib/atatus/metadata/cloud_info.rb,
lib/atatus/metadata/system_info.rb,
lib/atatus/metadata/process_info.rb,
lib/atatus/metadata/service_info.rb,
lib/atatus/metadata/system_info/hw_info.rb,
lib/atatus/metadata/system_info/os_info.rb,
lib/atatus/metadata/system_info/container_info.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: CloudInfo, ProcessInfo, ServiceInfo, SystemInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Metadata

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Metadata.



23
24
25
26
27
28
29
# File 'lib/atatus/metadata.rb', line 23

def initialize(config)
  @service = ServiceInfo.new(config)
  @process = ProcessInfo.new(config)
  @system = SystemInfo.new(config)
  @labels = config.global_labels
  @cloud = CloudInfo.new(config).fetch!
end

Instance Attribute Details

#cloudObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
# File 'lib/atatus/metadata.rb', line 31

def cloud
  @cloud
end

#labelsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
# File 'lib/atatus/metadata.rb', line 31

def labels
  @labels
end

#processObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
# File 'lib/atatus/metadata.rb', line 31

def process
  @process
end

#serviceObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
# File 'lib/atatus/metadata.rb', line 31

def service
  @service
end

#systemObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
# File 'lib/atatus/metadata.rb', line 31

def system
  @system
end