lib/generators/templates/jobs/sample.rb
current_valuation = 0
Dashing.scheduler.every '2s' do
last_valuation = current_valuation
current_valuation = rand(100)
Dashing.send_event('valuation', { current: current_valuation, last: last_valuation })
Dashing.send_event('synergy', { value: rand(100) })
end