Class: ElasticAPM::Metrics::CpuMemSet::Sample Private
- Inherits:
-
Object
- Object
- ElasticAPM::Metrics::CpuMemSet::Sample
- 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.
Instance Attribute Summary collapse
-
#page_size ⇒ Object
private
rubocop:enable Metrics/ParameterLists.
-
#process_cpu_usage ⇒ Object
private
rubocop:enable Metrics/ParameterLists.
-
#process_memory_rss ⇒ Object
private
rubocop:enable Metrics/ParameterLists.
-
#process_memory_size ⇒ Object
private
rubocop:enable Metrics/ParameterLists.
-
#system_cpu_total ⇒ Object
private
rubocop:enable Metrics/ParameterLists.
-
#system_cpu_usage ⇒ Object
private
rubocop:enable Metrics/ParameterLists.
-
#system_memory_free ⇒ Object
private
rubocop:enable Metrics/ParameterLists.
-
#system_memory_total ⇒ Object
private
rubocop:enable Metrics/ParameterLists.
Instance Method Summary collapse
-
#initialize(page_size:, process_cpu_usage:, process_memory_rss:, process_memory_size:, system_cpu_total:, system_cpu_usage:, system_memory_free:, system_memory_total:) ⇒ Sample
constructor
private
rubocop:disable Metrics/ParameterLists.
Constructor Details
#initialize(page_size:, process_cpu_usage:, process_memory_rss:, process_memory_size:, system_cpu_total:, system_cpu_usage:, system_memory_free:, system_memory_total:) ⇒ Sample
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.
rubocop:disable Metrics/ParameterLists
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 29 def initialize( page_size:, process_cpu_usage:, process_memory_rss:, process_memory_size:, system_cpu_total:, system_cpu_usage:, system_memory_free:, system_memory_total: ) @page_size = page_size @process_cpu_usage = process_cpu_usage @process_memory_rss = process_memory_rss @process_memory_size = process_memory_size @system_cpu_total = system_cpu_total @system_cpu_usage = system_cpu_usage @system_memory_free = system_memory_free @system_memory_total = system_memory_total end |
Instance Attribute Details
#page_size ⇒ 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.
rubocop:enable Metrics/ParameterLists
50 51 52 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 50 def page_size @page_size end |
#process_cpu_usage ⇒ 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.
rubocop:enable Metrics/ParameterLists
50 51 52 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 50 def process_cpu_usage @process_cpu_usage end |
#process_memory_rss ⇒ 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.
rubocop:enable Metrics/ParameterLists
50 51 52 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 50 def process_memory_rss @process_memory_rss end |
#process_memory_size ⇒ 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.
rubocop:enable Metrics/ParameterLists
50 51 52 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 50 def process_memory_size @process_memory_size end |
#system_cpu_total ⇒ 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.
rubocop:enable Metrics/ParameterLists
50 51 52 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 50 def system_cpu_total @system_cpu_total end |
#system_cpu_usage ⇒ 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.
rubocop:enable Metrics/ParameterLists
50 51 52 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 50 def system_cpu_usage @system_cpu_usage end |
#system_memory_free ⇒ 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.
rubocop:enable Metrics/ParameterLists
50 51 52 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 50 def system_memory_free @system_memory_free end |
#system_memory_total ⇒ 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.
rubocop:enable Metrics/ParameterLists
50 51 52 |
# File 'lib/elastic_apm/metrics/cpu_mem_set.rb', line 50 def system_memory_total @system_memory_total end |