tmp/create_events_failure.rb in flapjack-0.7.1 vs tmp/create_events_failure.rb in flapjack-0.7.2
- old
+ new
@@ -6,13 +6,15 @@
id = "%.2d" % (1..10).to_a[rand(9)]
events = []
events << {
- 'entity' => "app-#{id}",
- 'check' => 'http',
- 'type' => 'service',
- 'state' => 'critical',
+ 'entity' => "app-#{id}",
+ 'check' => 'http',
+ 'type' => 'service',
+ 'state' => 'critical',
+ 'summary' => "It's failing, yo!",
+ 'timestamp' => Time.now.to_i,
}.to_json
redis = Redis.new
2000.times do