Class: ElasticAPM::Metrics::CpuMemSet Private
- Includes:
- Logging
- Defined in:
- lib/elastic_apm/metrics/cpu_mem_set.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
Constant Summary
Constants included from Logging
Logging::LEVELS, Logging::PREFIX
Constants inherited from Set
Instance Attribute Summary collapse
- #config ⇒ Object readonly private
Attributes inherited from Set
Instance Method Summary collapse
- #collect ⇒ Object private
-
#initialize(config) ⇒ CpuMemSet
constructor
private
A new instance of CpuMemSet.
Methods included from Logging
#debug, #error, #fatal, #info, #warn
Methods inherited from Set
#counter, #disable!, #disabled?, #gauge, #metric, #timer
Constructor Details
#initialize(config) ⇒ CpuMemSet
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 CpuMemSet.
62 63 64 65 66 67 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 62 def initialize(config) super @sampler = sampler_for_os(Metrics.os) read! # set initial values to calculate deltas from end |
Instance Attribute Details
#config ⇒ 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.
69 70 71 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 69 def config @config end |
Instance Method Details
#collect ⇒ Object
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.
71 72 73 74 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 71 def collect read! super end |