Class: Hoss::Metadata Private
- Inherits:
-
Object
- Object
- Hoss::Metadata
- Defined in:
- lib/hoss/metadata.rb,
lib/hoss/metadata/system_info.rb,
lib/hoss/metadata/process_info.rb,
lib/hoss/metadata/service_info.rb,
lib/hoss/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: ProcessInfo, ServiceInfo, SystemInfo
Instance Attribute Summary collapse
- #labels ⇒ Object readonly private
- #process ⇒ Object readonly private
- #service ⇒ Object readonly private
- #system ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(config) ⇒ Metadata
constructor
private
A new instance of Metadata.
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 |
# File 'lib/hoss/metadata.rb', line 23 def initialize(config) @service = ServiceInfo.new(config) @process = ProcessInfo.new(config) @system = SystemInfo.new(config) @labels = config.global_labels end |
Instance Attribute Details
#labels ⇒ Object (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.
30 31 32 |
# File 'lib/hoss/metadata.rb', line 30 def labels @labels end |
#process ⇒ Object (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.
30 31 32 |
# File 'lib/hoss/metadata.rb', line 30 def process @process end |
#service ⇒ Object (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.
30 31 32 |
# File 'lib/hoss/metadata.rb', line 30 def service @service end |
#system ⇒ Object (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.
30 31 32 |
# File 'lib/hoss/metadata.rb', line 30 def system @system end |