easy_admin 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,13 +1,20 @@
1
1
  # Changelog for easy-admin
2
2
 
3
- ## 0.2.0 (2013-08-12)
3
+ ## 0.3.1 (2013-08-12)
4
4
 
5
- New Features:
5
+ Bugfixes
6
6
 
7
- * Added OutboundRequest#rpm method that returns the number of requests per minute for the supplied criteria
7
+ * Add filtering ability to OutboundRequest#response_summary
8
8
 
9
9
  ## 0.3.0 (2013-08-12)
10
10
 
11
11
  New Features
12
12
 
13
- * Added OutboundRequest#response_summary method that reports of response codes within a time period
13
+ * Added OutboundRequest#response_summary method that reports of response codes within a time period
14
+
15
+ ## 0.2.0 (2013-08-12)
16
+
17
+ New Features:
18
+
19
+ * Added OutboundRequest#rpm method that returns the number of requests per minute for the supplied criteria
20
+
@@ -64,6 +64,14 @@ class OutboundRequest < ActiveRecord::Base
64
64
  def self.response_summary(params={})
65
65
  period = params[:period] || 60
66
66
 
67
- where('created_at > ?', Time.current - period.seconds).group('response_code').count
67
+ query = where('created_at > ?', Time.current - period.seconds)
68
+
69
+ [:service, :action].each do |filter|
70
+ if params[filter]
71
+ query = query.where(filter => params[filter])
72
+ end
73
+ end
74
+
75
+ query.group('response_code').count
68
76
  end
69
77
  end
@@ -1,3 +1,3 @@
1
1
  module EasyAdmin
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -2653,3 +2653,487 @@ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
2653
2653
   (0.0ms) RELEASE SAVEPOINT active_record_1
2654
2654
   (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE (created_at > '2013-08-12 03:31:57.784158')
2655
2655
   (0.5ms) rollback transaction
2656
+ Connecting to database specified by database.yml
2657
+  (0.3ms) begin transaction
2658
+  (0.0ms) SAVEPOINT active_record_1
2659
+ SQL (21.6ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["failed_at", nil], ["handler", nil], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2661
+ Processing by Admin::JobsController#destroy as HTML
2662
+ Parameters: {"id"=>"1"}
2663
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2664
+  (0.0ms) SAVEPOINT active_record_1
2665
+ SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]]
2666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2667
+ Redirected to http://test.host/admin/jobs
2668
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
2669
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2670
+  (0.4ms) rollback transaction
2671
+  (0.0ms) begin transaction
2672
+  (0.0ms) SAVEPOINT active_record_1
2673
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["failed_at", nil], ["handler", nil], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2675
+ Processing by Admin::JobsController#index as HTML
2676
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" 
2677
+  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"
2678
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY run_at
2679
+ Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.2ms)
2680
+  (0.5ms) rollback transaction
2681
+  (0.0ms) begin transaction
2682
+  (0.0ms) SAVEPOINT active_record_1
2683
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["failed_at", nil], ["handler", nil], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2685
+ Processing by Admin::JobsController#show as HTML
2686
+ Parameters: {"id"=>"1"}
2687
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", "1"]]
2688
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
2689
+  (0.5ms) rollback transaction
2690
+  (0.0ms) begin transaction
2691
+  (0.0ms) SAVEPOINT active_record_1
2692
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["failed_at", nil], ["handler", nil], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2694
+ SQL (0.2ms) UPDATE "delayed_jobs" SET "attempts" = 5 WHERE "delayed_jobs"."id" = 1
2695
+ Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]]
2696
+ Processing by Admin::JobsController#retry as HTML
2697
+ Parameters: {"id"=>"1"}
2698
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2699
+ SQL (0.1ms) UPDATE "delayed_jobs" SET "attempts" = 0 WHERE "delayed_jobs"."id" = 1
2700
+  (0.0ms) SAVEPOINT active_record_1
2701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2702
+ Redirected to http://test.host/admin/jobs
2703
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
2704
+ Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]]
2705
+  (0.4ms) rollback transaction
2706
+  (0.0ms) begin transaction
2707
+  (0.0ms) rollback transaction
2708
+  (0.0ms) begin transaction
2709
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2710
+  (0.1ms) SAVEPOINT active_record_1
2711
+ SQL (0.5ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2713
+  (0.0ms) SAVEPOINT active_record_1
2714
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2716
+  (0.0ms) SAVEPOINT active_record_1
2717
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2719
+  (0.0ms) SAVEPOINT active_record_1
2720
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2722
+  (0.0ms) SAVEPOINT active_record_1
2723
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2725
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV1' AND (created_at > '2013-08-12 04:09:37.190949') GROUP BY response_code
2726
+  (0.5ms) rollback transaction
2727
+  (0.0ms) begin transaction
2728
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2729
+  (0.0ms) SAVEPOINT active_record_1
2730
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2732
+  (0.0ms) SAVEPOINT active_record_1
2733
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2735
+  (0.0ms) SAVEPOINT active_record_1
2736
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2738
+  (0.0ms) SAVEPOINT active_record_1
2739
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2741
+  (0.0ms) SAVEPOINT active_record_1
2742
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2744
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE (created_at > '2013-08-12 04:09:37.198893') GROUP BY response_code
2745
+  (0.5ms) rollback transaction
2746
+  (0.0ms) begin transaction
2747
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2748
+  (0.0ms) SAVEPOINT active_record_1
2749
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2751
+  (0.0ms) SAVEPOINT active_record_1
2752
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2754
+  (0.0ms) SAVEPOINT active_record_1
2755
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2757
+  (0.0ms) SAVEPOINT active_record_1
2758
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2760
+  (0.0ms) SAVEPOINT active_record_1
2761
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2763
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE (created_at > '2013-08-12 04:13:37.205096') GROUP BY response_code
2764
+  (0.3ms) rollback transaction
2765
+  (0.0ms) begin transaction
2766
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2767
+  (0.0ms) SAVEPOINT active_record_1
2768
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2770
+  (0.0ms) SAVEPOINT active_record_1
2771
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2773
+  (0.0ms) SAVEPOINT active_record_1
2774
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2776
+  (0.0ms) SAVEPOINT active_record_1
2777
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2779
+  (0.0ms) SAVEPOINT active_record_1
2780
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2782
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."response_code" = '200' AND (created_at > '2013-08-12 04:13:37.211122')
2783
+  (0.6ms) rollback transaction
2784
+  (0.0ms) begin transaction
2785
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2786
+  (0.0ms) SAVEPOINT active_record_1
2787
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2789
+  (0.0ms) SAVEPOINT active_record_1
2790
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2792
+  (0.1ms) SAVEPOINT active_record_1
2793
+ SQL (0.2ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2795
+  (0.0ms) SAVEPOINT active_record_1
2796
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2798
+  (0.0ms) SAVEPOINT active_record_1
2799
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2801
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."action" = 'ACT-A' AND (created_at > '2013-08-12 04:13:37.237687')
2802
+  (0.6ms) rollback transaction
2803
+  (0.0ms) begin transaction
2804
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2805
+  (0.0ms) SAVEPOINT active_record_1
2806
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2808
+  (0.0ms) SAVEPOINT active_record_1
2809
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2811
+  (0.0ms) SAVEPOINT active_record_1
2812
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2814
+  (0.0ms) SAVEPOINT active_record_1
2815
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2817
+  (0.0ms) SAVEPOINT active_record_1
2818
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2820
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."action" = 'ACT-E' AND (created_at > '2013-08-12 04:13:37.244076')
2821
+  (0.5ms) rollback transaction
2822
+  (0.0ms) begin transaction
2823
+ SQL (0.4ms) DELETE FROM "outbound_requests"
2824
+  (0.0ms) SAVEPOINT active_record_1
2825
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2827
+  (0.0ms) SAVEPOINT active_record_1
2828
+ SQL (0.2ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2830
+  (0.0ms) SAVEPOINT active_record_1
2831
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2833
+  (0.0ms) SAVEPOINT active_record_1
2834
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2836
+  (0.0ms) SAVEPOINT active_record_1
2837
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2839
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV1' AND (created_at > '2013-08-12 04:13:37.250387')
2840
+  (0.5ms) rollback transaction
2841
+  (0.0ms) begin transaction
2842
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2843
+  (0.0ms) SAVEPOINT active_record_1
2844
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2846
+  (0.0ms) SAVEPOINT active_record_1
2847
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2849
+  (0.0ms) SAVEPOINT active_record_1
2850
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2852
+  (0.0ms) SAVEPOINT active_record_1
2853
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2855
+  (0.0ms) SAVEPOINT active_record_1
2856
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2858
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV2' AND (created_at > '2013-08-12 04:04:37.256502')
2859
+  (0.6ms) rollback transaction
2860
+  (0.0ms) begin transaction
2861
+ SQL (0.5ms) DELETE FROM "outbound_requests"
2862
+  (0.0ms) SAVEPOINT active_record_1
2863
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2865
+  (0.0ms) SAVEPOINT active_record_1
2866
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2868
+  (0.0ms) SAVEPOINT active_record_1
2869
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2871
+  (0.0ms) SAVEPOINT active_record_1
2872
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2874
+  (0.0ms) SAVEPOINT active_record_1
2875
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2877
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV2' AND (created_at > '2013-08-12 04:12:37.262849')
2878
+  (0.6ms) rollback transaction
2879
+  (0.0ms) begin transaction
2880
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2881
+  (0.0ms) SAVEPOINT active_record_1
2882
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2884
+  (0.0ms) SAVEPOINT active_record_1
2885
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2887
+  (0.0ms) SAVEPOINT active_record_1
2888
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2890
+  (0.0ms) SAVEPOINT active_record_1
2891
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2893
+  (0.0ms) SAVEPOINT active_record_1
2894
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:10:37 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:14:37 UTC +00:00]]
2895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2896
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE (created_at > '2013-08-12 04:13:37.268772')
2897
+  (0.5ms) rollback transaction
2898
+ Connecting to database specified by database.yml
2899
+  (0.4ms) begin transaction
2900
+  (0.1ms) SAVEPOINT active_record_1
2901
+ SQL (21.0ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["failed_at", nil], ["handler", nil], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2903
+ Processing by Admin::JobsController#destroy as HTML
2904
+ Parameters: {"id"=>"1"}
2905
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2906
+  (0.0ms) SAVEPOINT active_record_1
2907
+ SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]]
2908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2909
+ Redirected to http://test.host/admin/jobs
2910
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
2911
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2912
+  (1.5ms) rollback transaction
2913
+  (0.0ms) begin transaction
2914
+  (0.0ms) SAVEPOINT active_record_1
2915
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["failed_at", nil], ["handler", nil], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2917
+ Processing by Admin::JobsController#index as HTML
2918
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" 
2919
+  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"
2920
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY run_at
2921
+ Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.2ms)
2922
+  (0.5ms) rollback transaction
2923
+  (0.0ms) begin transaction
2924
+  (0.0ms) SAVEPOINT active_record_1
2925
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["failed_at", nil], ["handler", nil], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2927
+ Processing by Admin::JobsController#show as HTML
2928
+ Parameters: {"id"=>"1"}
2929
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", "1"]]
2930
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
2931
+  (0.5ms) rollback transaction
2932
+  (0.0ms) begin transaction
2933
+  (0.0ms) SAVEPOINT active_record_1
2934
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["failed_at", nil], ["handler", nil], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2936
+ SQL (0.2ms) UPDATE "delayed_jobs" SET "attempts" = 5 WHERE "delayed_jobs"."id" = 1
2937
+ Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]]
2938
+ Processing by Admin::JobsController#retry as HTML
2939
+ Parameters: {"id"=>"1"}
2940
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2941
+ SQL (0.1ms) UPDATE "delayed_jobs" SET "attempts" = 0 WHERE "delayed_jobs"."id" = 1
2942
+  (0.0ms) SAVEPOINT active_record_1
2943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2944
+ Redirected to http://test.host/admin/jobs
2945
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
2946
+ Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]]
2947
+  (0.5ms) rollback transaction
2948
+  (0.0ms) begin transaction
2949
+  (0.0ms) rollback transaction
2950
+  (0.0ms) begin transaction
2951
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2952
+  (0.1ms) SAVEPOINT active_record_1
2953
+ SQL (0.5ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2955
+  (0.0ms) SAVEPOINT active_record_1
2956
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2958
+  (0.0ms) SAVEPOINT active_record_1
2959
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2961
+  (0.0ms) SAVEPOINT active_record_1
2962
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2964
+  (0.0ms) SAVEPOINT active_record_1
2965
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2967
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV1' AND (created_at > '2013-08-12 04:10:10.415260') GROUP BY response_code
2968
+  (0.5ms) rollback transaction
2969
+  (0.0ms) begin transaction
2970
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2971
+  (0.0ms) SAVEPOINT active_record_1
2972
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2974
+  (0.0ms) SAVEPOINT active_record_1
2975
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2977
+  (0.0ms) SAVEPOINT active_record_1
2978
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2980
+  (0.0ms) SAVEPOINT active_record_1
2981
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2983
+  (0.0ms) SAVEPOINT active_record_1
2984
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2986
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE (created_at > '2013-08-12 04:10:10.423037') GROUP BY response_code
2987
+  (0.3ms) rollback transaction
2988
+  (0.0ms) begin transaction
2989
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2990
+  (0.0ms) SAVEPOINT active_record_1
2991
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2993
+  (0.0ms) SAVEPOINT active_record_1
2994
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2996
+  (0.0ms) SAVEPOINT active_record_1
2997
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
2998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2999
+  (0.0ms) SAVEPOINT active_record_1
3000
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3002
+  (0.0ms) SAVEPOINT active_record_1
3003
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3005
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE (created_at > '2013-08-12 04:14:10.429161') GROUP BY response_code
3006
+  (0.6ms) rollback transaction
3007
+  (0.0ms) begin transaction
3008
+ SQL (0.2ms) DELETE FROM "outbound_requests"
3009
+  (0.0ms) SAVEPOINT active_record_1
3010
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3012
+  (0.0ms) SAVEPOINT active_record_1
3013
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3015
+  (0.0ms) SAVEPOINT active_record_1
3016
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3017
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3018
+  (0.0ms) SAVEPOINT active_record_1
3019
+ SQL (0.2ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3021
+  (0.0ms) SAVEPOINT active_record_1
3022
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3024
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."response_code" = '200' AND (created_at > '2013-08-12 04:14:10.435657')
3025
+  (0.4ms) rollback transaction
3026
+  (0.0ms) begin transaction
3027
+ SQL (0.2ms) DELETE FROM "outbound_requests"
3028
+  (0.0ms) SAVEPOINT active_record_1
3029
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3031
+  (0.0ms) SAVEPOINT active_record_1
3032
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3034
+  (0.0ms) SAVEPOINT active_record_1
3035
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3037
+  (0.0ms) SAVEPOINT active_record_1
3038
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3039
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3040
+  (0.0ms) SAVEPOINT active_record_1
3041
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3043
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."action" = 'ACT-A' AND (created_at > '2013-08-12 04:14:10.462111')
3044
+  (0.4ms) rollback transaction
3045
+  (0.0ms) begin transaction
3046
+ SQL (0.2ms) DELETE FROM "outbound_requests"
3047
+  (0.0ms) SAVEPOINT active_record_1
3048
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3050
+  (0.0ms) SAVEPOINT active_record_1
3051
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3052
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3053
+  (0.0ms) SAVEPOINT active_record_1
3054
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3056
+  (0.0ms) SAVEPOINT active_record_1
3057
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3059
+  (0.0ms) SAVEPOINT active_record_1
3060
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3062
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."action" = 'ACT-E' AND (created_at > '2013-08-12 04:14:10.468535')
3063
+  (0.5ms) rollback transaction
3064
+  (0.0ms) begin transaction
3065
+ SQL (0.2ms) DELETE FROM "outbound_requests"
3066
+  (0.0ms) SAVEPOINT active_record_1
3067
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3069
+  (0.0ms) SAVEPOINT active_record_1
3070
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3072
+  (0.0ms) SAVEPOINT active_record_1
3073
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3075
+  (0.0ms) SAVEPOINT active_record_1
3076
+ SQL (0.2ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3078
+  (0.0ms) SAVEPOINT active_record_1
3079
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3081
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV1' AND (created_at > '2013-08-12 04:14:10.474599')
3082
+  (0.4ms) rollback transaction
3083
+  (0.0ms) begin transaction
3084
+ SQL (0.2ms) DELETE FROM "outbound_requests"
3085
+  (0.0ms) SAVEPOINT active_record_1
3086
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3088
+  (0.0ms) SAVEPOINT active_record_1
3089
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3091
+  (0.0ms) SAVEPOINT active_record_1
3092
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3094
+  (0.0ms) SAVEPOINT active_record_1
3095
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3097
+  (0.0ms) SAVEPOINT active_record_1
3098
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3100
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV2' AND (created_at > '2013-08-12 04:05:10.480549')
3101
+  (0.5ms) rollback transaction
3102
+  (0.0ms) begin transaction
3103
+ SQL (0.2ms) DELETE FROM "outbound_requests"
3104
+  (0.0ms) SAVEPOINT active_record_1
3105
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3106
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3107
+  (0.0ms) SAVEPOINT active_record_1
3108
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3110
+  (0.0ms) SAVEPOINT active_record_1
3111
+ SQL (0.2ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3113
+  (0.0ms) SAVEPOINT active_record_1
3114
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3116
+  (0.0ms) SAVEPOINT active_record_1
3117
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3119
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV2' AND (created_at > '2013-08-12 04:13:10.486510')
3120
+  (0.6ms) rollback transaction
3121
+  (0.0ms) begin transaction
3122
+ SQL (0.2ms) DELETE FROM "outbound_requests"
3123
+  (0.0ms) SAVEPOINT active_record_1
3124
+ SQL (0.3ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-A"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3126
+  (0.0ms) SAVEPOINT active_record_1
3127
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-B"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3129
+  (0.0ms) SAVEPOINT active_record_1
3130
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-C"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3132
+  (0.0ms) SAVEPOINT active_record_1
3133
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-D"], ["created_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3135
+  (0.0ms) SAVEPOINT active_record_1
3136
+ SQL (0.1ms) INSERT INTO "outbound_requests" ("action", "created_at", "error", "identifier", "params", "response_body", "response_code", "service", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "ACT-E"], ["created_at", Mon, 12 Aug 2013 04:11:10 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 04:15:10 UTC +00:00]]
3137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3138
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE (created_at > '2013-08-12 04:14:10.492497')
3139
+  (0.3ms) rollback transaction
@@ -52,4 +52,11 @@ class OutboundRequestTest < ActiveSupport::TestCase
52
52
  assert_equal 3, summary['200'], "expected 3 responses with code of 200"
53
53
  assert_equal 2, summary['404'], "expected 2 responses with a code of 404"
54
54
  end
55
+
56
+ test '#response_summary should give 3 results for a 5 minute period, with SRV1' do
57
+ summary = OutboundRequest.response_summary(period: 5.minutes, service: 'SRV1')
58
+ assert_not_nil summary
59
+ assert_equal 3, summary['200'], "expected 3 responses with code of 200"
60
+ assert_nil summary['404'], "expected no responses with a code of 404"
61
+ end
55
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: