Class: Dionysus::Producer::Outbox::DatadogLatencyReporterScheduler

Inherits:
Object
  • Object
show all
Defined in:
lib/dionysus/producer/outbox/datadog_latency_reporter_scheduler.rb

Instance Method Summary collapse

Constructor Details

#initialize(config: Dionysus::Producer.configuration) ⇒ DatadogLatencyReporterScheduler

Returns a new instance of DatadogLatencyReporterScheduler.



14
15
16
# File 'lib/dionysus/producer/outbox/datadog_latency_reporter_scheduler.rb', line 14

def initialize(config: Dionysus::Producer.configuration)
  @config = config
end

Instance Method Details

#add_to_scheduleObject



18
19
20
# File 'lib/dionysus/producer/outbox/datadog_latency_reporter_scheduler.rb', line 18

def add_to_schedule
  find || create
end