Class: ElasticAPM::Metrics::CpuMemSet::Sample Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_sizeObject

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_usageObject

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_rssObject

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_sizeObject

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_totalObject

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_usageObject

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_freeObject

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_totalObject

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