Class: Cloud66::Metrics::Manager

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud66/metrics/manager.rb

Constant Summary collapse

QUEUE_FRAMEWORKS =
[
  ::Cloud66::Metrics::Sidekiq,
  ::Cloud66::Metrics::Resque,
  ::Cloud66::Metrics::DelayedJobActiveRecord,
].freeze

Class Method Summary collapse

Class Method Details

.metrics_arrayObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/cloud66/metrics/manager.rb', line 14

def self.metrics_array
  result = []
  QUEUE_FRAMEWORKS.each do |framework|
    next unless framework.detected?

    result += framework.queue_array
  end

  return result
end