Class: ExportStatsJob
- Inherits:
-
Object
- Object
- ExportStatsJob
- Defined in:
- lib/palava_machine/jobs/export_stats_job.rb
Defined Under Namespace
Classes: StatsExporter
Class Method Summary collapse
Class Method Details
.perform(redis_address = 'localhost:6379', mongo_address = 'localhost:27017') ⇒ Object
51 52 53 54 55 56 57 |
# File 'lib/palava_machine/jobs/export_stats_job.rb', line 51 def perform(redis_address = 'localhost:6379', mongo_address = 'localhost:27017') se = StatsExporter.new(redis_address, mongo_address) se. "room_peaks" se. "connection_time" se. se.store_in_mongo! end |