Class: Sidekiq::Prometheus::Exporter::Scheduler
- Inherits:
-
Object
- Object
- Sidekiq::Prometheus::Exporter::Scheduler
- Defined in:
- lib/sidekiq/prometheus/exporter/scheduler.rb
Defined Under Namespace
Classes: Stats
Constant Summary collapse
- TEMPLATE =
ERB.new(File.read(File.('templates/scheduler.erb', __dir__)))
- SECONDS_IN_MINUTE =
60
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Scheduler
constructor
A new instance of Scheduler.
- #to_s ⇒ Object
Constructor Details
Class Method Details
.available? ⇒ Boolean
15 16 17 |
# File 'lib/sidekiq/prometheus/exporter/scheduler.rb', line 15 def self.available? defined?(Sidekiq::Scheduler) end |
Instance Method Details
#to_s ⇒ Object
23 24 25 |
# File 'lib/sidekiq/prometheus/exporter/scheduler.rb', line 23 def to_s TEMPLATE.result(binding).chomp! end |