easy_admin 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -5,3 +5,9 @@
5
5
  New Features:
6
6
 
7
7
  * Added OutboundRequest#rpm method that returns the number of requests per minute for the supplied criteria
8
+
9
+ ## 0.3.0 (2013-08-12)
10
+
11
+ New Features
12
+
13
+ * Added OutboundRequest#response_summary method that reports of response codes within a time period
@@ -60,4 +60,10 @@ class OutboundRequest < ActiveRecord::Base
60
60
 
61
61
  query.count / mins_per_period
62
62
  end
63
+
64
+ def self.response_summary(params={})
65
+ period = params[:period] || 60
66
+
67
+ where('created_at > ?', Time.current - period.seconds).group('response_code').count
68
+ end
63
69
  end
@@ -1,3 +1,3 @@
1
1
  module EasyAdmin
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
Binary file
@@ -26,3 +26,15 @@ Connecting to database specified by database.yml
26
26
   (0.1ms) SELECT version FROM "schema_migrations"
27
27
   (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121220022003')
28
28
   (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121114025434')
29
+ Connecting to database specified by database.yml
30
+ Connecting to database specified by database.yml
31
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
32
+  (0.2ms) select sqlite_version(*)
33
+  (1.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0, "attempts" integer DEFAULT 0, "handler" text, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
34
+  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
35
+  (1.2ms) CREATE TABLE "outbound_requests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "service" varchar(255), "action" varchar(255), "identifier" varchar(255), "params" text, "response_code" varchar(255), "response_body" text, "error" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
36
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
37
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38
+  (0.1ms) SELECT version FROM "schema_migrations"
39
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20121220022003')
40
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121114025434')
@@ -2207,3 +2207,449 @@ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2207
2207
   (0.0ms) RELEASE SAVEPOINT active_record_1
2208
2208
   (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE (created_at > '2013-08-11 23:39:39.602151')
2209
2209
   (0.4ms) rollback transaction
2210
+ Connecting to database specified by database.yml
2211
+  (0.3ms) begin transaction
2212
+  (0.0ms) SAVEPOINT active_record_1
2213
+ SQL (21.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 03:32:26 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 03:32:26 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 03:32:26 UTC +00:00]]
2214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2215
+ Processing by Admin::JobsController#destroy as HTML
2216
+ Parameters: {"id"=>"1"}
2217
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2218
+  (0.0ms) SAVEPOINT active_record_1
2219
+ SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]]
2220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2221
+ Redirected to http://test.host/admin/jobs
2222
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
2223
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2224
+  (0.4ms) rollback transaction
2225
+  (0.0ms) begin transaction
2226
+  (0.0ms) SAVEPOINT active_record_1
2227
+ 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 03:32:26 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 03:32:26 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 03:32:26 UTC +00:00]]
2228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2229
+ Processing by Admin::JobsController#index as HTML
2230
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" 
2231
+  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"
2232
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY run_at
2233
+ Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.2ms)
2234
+  (0.6ms) rollback transaction
2235
+  (0.0ms) begin transaction
2236
+  (0.0ms) SAVEPOINT active_record_1
2237
+ 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 03:32:26 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 03:32:26 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 03:32:26 UTC +00:00]]
2238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2239
+ Processing by Admin::JobsController#show as HTML
2240
+ Parameters: {"id"=>"1"}
2241
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", "1"]]
2242
+ Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)
2243
+  (0.5ms) rollback transaction
2244
+  (0.0ms) begin transaction
2245
+  (0.0ms) SAVEPOINT active_record_1
2246
+ 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 03:32:26 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 03:32:26 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 03:32:26 UTC +00:00]]
2247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2248
+ SQL (0.3ms) UPDATE "delayed_jobs" SET "attempts" = 5 WHERE "delayed_jobs"."id" = 1
2249
+ Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]]
2250
+ Processing by Admin::JobsController#retry as HTML
2251
+ Parameters: {"id"=>"1"}
2252
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2253
+ SQL (0.1ms) UPDATE "delayed_jobs" SET "attempts" = 0 WHERE "delayed_jobs"."id" = 1
2254
+  (0.0ms) SAVEPOINT active_record_1
2255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2256
+ Redirected to http://test.host/admin/jobs
2257
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
2258
+ Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]]
2259
+  (0.5ms) rollback transaction
2260
+  (0.0ms) begin transaction
2261
+  (0.0ms) rollback transaction
2262
+  (0.0ms) begin transaction
2263
+ SQL (0.3ms) DELETE FROM "outbound_requests"
2264
+  (0.0ms) SAVEPOINT active_record_1
2265
+ 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 03:32:26 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:26 UTC +00:00]]
2266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2267
+  (0.0ms) SAVEPOINT active_record_1
2268
+ 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 03:32:26 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:26 UTC +00:00]]
2269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2270
+  (0.0ms) SAVEPOINT active_record_1
2271
+ 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 03:32:26 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:26 UTC +00:00]]
2272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2273
+  (0.0ms) SAVEPOINT active_record_1
2274
+ 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 03:32:26 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:26 UTC +00:00]]
2275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2276
+  (0.0ms) SAVEPOINT active_record_1
2277
+ 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 03:28:26 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:26 UTC +00:00]]
2278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2279
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE (created_at > '2013-08-12 03:31:27.000098') GROUP BY response_code
2280
+  (0.5ms) rollback transaction
2281
+  (0.0ms) begin transaction
2282
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2283
+  (0.0ms) SAVEPOINT active_record_1
2284
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2286
+  (0.0ms) SAVEPOINT active_record_1
2287
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2289
+  (0.0ms) SAVEPOINT active_record_1
2290
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2292
+  (0.0ms) SAVEPOINT active_record_1
2293
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2295
+  (0.0ms) SAVEPOINT active_record_1
2296
+ 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 03:28:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2298
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE (created_at > '2013-08-12 03:31:27.008191') GROUP BY response_code
2299
+  (0.4ms) rollback transaction
2300
+  (0.0ms) begin transaction
2301
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2302
+  (0.0ms) SAVEPOINT active_record_1
2303
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2305
+  (0.0ms) SAVEPOINT active_record_1
2306
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2308
+  (0.0ms) SAVEPOINT active_record_1
2309
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2311
+  (0.0ms) SAVEPOINT active_record_1
2312
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2314
+  (0.0ms) SAVEPOINT active_record_1
2315
+ 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 03:28:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2317
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."response_code" = '200' AND (created_at > '2013-08-12 03:31:27.014312')
2318
+  (0.5ms) rollback transaction
2319
+  (0.0ms) begin transaction
2320
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2321
+  (0.0ms) SAVEPOINT active_record_1
2322
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2324
+  (0.0ms) SAVEPOINT active_record_1
2325
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2327
+  (0.0ms) SAVEPOINT active_record_1
2328
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2330
+  (0.0ms) SAVEPOINT active_record_1
2331
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2333
+  (0.0ms) SAVEPOINT active_record_1
2334
+ 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 03:28:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2336
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."action" = 'ACT-A' AND (created_at > '2013-08-12 03:31:27.020521')
2337
+  (0.5ms) rollback transaction
2338
+  (0.0ms) begin transaction
2339
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2340
+  (0.0ms) SAVEPOINT active_record_1
2341
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2343
+  (0.0ms) SAVEPOINT active_record_1
2344
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2346
+  (0.0ms) SAVEPOINT active_record_1
2347
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2349
+  (0.0ms) SAVEPOINT active_record_1
2350
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2352
+  (0.0ms) SAVEPOINT active_record_1
2353
+ 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 03:28:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2355
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."action" = 'ACT-E' AND (created_at > '2013-08-12 03:31:27.047817')
2356
+  (0.5ms) rollback transaction
2357
+  (0.0ms) begin transaction
2358
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2359
+  (0.0ms) SAVEPOINT active_record_1
2360
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2362
+  (0.0ms) SAVEPOINT active_record_1
2363
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2365
+  (0.0ms) SAVEPOINT active_record_1
2366
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2368
+  (0.0ms) SAVEPOINT active_record_1
2369
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2371
+  (0.0ms) SAVEPOINT active_record_1
2372
+ 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 03:28:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2374
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV1' AND (created_at > '2013-08-12 03:31:27.054283')
2375
+  (0.5ms) rollback transaction
2376
+  (0.0ms) begin transaction
2377
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2378
+  (0.0ms) SAVEPOINT active_record_1
2379
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2381
+  (0.0ms) SAVEPOINT active_record_1
2382
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2384
+  (0.0ms) SAVEPOINT active_record_1
2385
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2387
+  (0.0ms) SAVEPOINT active_record_1
2388
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2390
+  (0.0ms) SAVEPOINT active_record_1
2391
+ 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 03:28:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2393
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV2' AND (created_at > '2013-08-12 03:22:27.060386')
2394
+  (0.5ms) rollback transaction
2395
+  (0.0ms) begin transaction
2396
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2397
+  (0.0ms) SAVEPOINT active_record_1
2398
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2400
+  (0.0ms) SAVEPOINT active_record_1
2401
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2403
+  (0.0ms) SAVEPOINT active_record_1
2404
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2406
+  (0.0ms) SAVEPOINT active_record_1
2407
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2409
+  (0.0ms) SAVEPOINT active_record_1
2410
+ 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 03:28:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2412
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV2' AND (created_at > '2013-08-12 03:30:27.066437')
2413
+  (0.4ms) rollback transaction
2414
+  (0.0ms) begin transaction
2415
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2416
+  (0.0ms) SAVEPOINT active_record_1
2417
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2419
+  (0.0ms) SAVEPOINT active_record_1
2420
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2422
+  (0.0ms) SAVEPOINT active_record_1
2423
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2425
+  (0.0ms) SAVEPOINT active_record_1
2426
+ 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 03:32:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2428
+  (0.0ms) SAVEPOINT active_record_1
2429
+ 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 03:28:27 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:27 UTC +00:00]]
2430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2431
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE (created_at > '2013-08-12 03:31:27.072466')
2432
+  (0.3ms) rollback transaction
2433
+ Connecting to database specified by database.yml
2434
+  (0.4ms) begin transaction
2435
+  (0.0ms) SAVEPOINT active_record_1
2436
+ SQL (21.5ms) 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 03:32:57 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 03:32:57 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2438
+ Processing by Admin::JobsController#destroy as HTML
2439
+ Parameters: {"id"=>"1"}
2440
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2441
+  (0.0ms) SAVEPOINT active_record_1
2442
+ SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]]
2443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2444
+ Redirected to http://test.host/admin/jobs
2445
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
2446
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2447
+  (0.5ms) rollback transaction
2448
+  (0.0ms) begin transaction
2449
+  (0.0ms) SAVEPOINT active_record_1
2450
+ SQL (0.5ms) 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 03:32:57 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 03:32:57 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2452
+ Processing by Admin::JobsController#index as HTML
2453
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" 
2454
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
2455
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY run_at
2456
+ Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.2ms)
2457
+  (0.5ms) rollback transaction
2458
+  (0.0ms) begin transaction
2459
+  (0.0ms) SAVEPOINT active_record_1
2460
+ 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 03:32:57 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 03:32:57 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2462
+ Processing by Admin::JobsController#show as HTML
2463
+ Parameters: {"id"=>"1"}
2464
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", "1"]]
2465
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
2466
+  (0.5ms) rollback transaction
2467
+  (0.0ms) begin transaction
2468
+  (0.0ms) SAVEPOINT active_record_1
2469
+ 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 03:32:57 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 03:32:57 UTC +00:00], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2471
+ SQL (0.2ms) UPDATE "delayed_jobs" SET "attempts" = 5 WHERE "delayed_jobs"."id" = 1
2472
+ Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]]
2473
+ Processing by Admin::JobsController#retry as HTML
2474
+ Parameters: {"id"=>"1"}
2475
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = 1 LIMIT 1
2476
+ SQL (0.1ms) UPDATE "delayed_jobs" SET "attempts" = 0 WHERE "delayed_jobs"."id" = 1
2477
+  (0.0ms) SAVEPOINT active_record_1
2478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2479
+ Redirected to http://test.host/admin/jobs
2480
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
2481
+ Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]]
2482
+  (0.3ms) rollback transaction
2483
+  (0.0ms) begin transaction
2484
+  (0.0ms) rollback transaction
2485
+  (0.0ms) begin transaction
2486
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2487
+  (0.0ms) SAVEPOINT active_record_1
2488
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2490
+  (0.0ms) SAVEPOINT active_record_1
2491
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2493
+  (0.0ms) SAVEPOINT active_record_1
2494
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2496
+  (0.0ms) SAVEPOINT active_record_1
2497
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2499
+  (0.0ms) SAVEPOINT active_record_1
2500
+ 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 03:28:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2502
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE (created_at > '2013-08-12 03:27:57.712540') GROUP BY response_code
2503
+  (0.5ms) rollback transaction
2504
+  (0.0ms) begin transaction
2505
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2506
+  (0.0ms) SAVEPOINT active_record_1
2507
+ SQL (0.4ms) 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2509
+  (0.0ms) SAVEPOINT active_record_1
2510
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2512
+  (0.0ms) SAVEPOINT active_record_1
2513
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2515
+  (0.0ms) SAVEPOINT active_record_1
2516
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2518
+  (0.0ms) SAVEPOINT active_record_1
2519
+ SQL (0.2ms) 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 03:28:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2521
+  (0.1ms) SELECT COUNT(*) AS count_all, response_code AS response_code FROM "outbound_requests" WHERE (created_at > '2013-08-12 03:31:57.720444') GROUP BY response_code
2522
+  (0.4ms) rollback transaction
2523
+  (0.0ms) begin transaction
2524
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2525
+  (0.0ms) SAVEPOINT active_record_1
2526
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2528
+  (0.0ms) SAVEPOINT active_record_1
2529
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2531
+  (0.0ms) SAVEPOINT active_record_1
2532
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2534
+  (0.0ms) SAVEPOINT active_record_1
2535
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2537
+  (0.0ms) SAVEPOINT active_record_1
2538
+ 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 03:28:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2540
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."response_code" = '200' AND (created_at > '2013-08-12 03:31:57.726590')
2541
+  (0.6ms) rollback transaction
2542
+  (0.0ms) begin transaction
2543
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2544
+  (0.0ms) SAVEPOINT active_record_1
2545
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2547
+  (0.0ms) SAVEPOINT active_record_1
2548
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2550
+  (0.0ms) SAVEPOINT active_record_1
2551
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2553
+  (0.0ms) SAVEPOINT active_record_1
2554
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2556
+  (0.0ms) SAVEPOINT active_record_1
2557
+ 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 03:28:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2559
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."action" = 'ACT-A' AND (created_at > '2013-08-12 03:31:57.732745')
2560
+  (0.5ms) rollback transaction
2561
+  (0.0ms) begin transaction
2562
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2563
+  (0.0ms) SAVEPOINT active_record_1
2564
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2566
+  (0.0ms) SAVEPOINT active_record_1
2567
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2569
+  (0.0ms) SAVEPOINT active_record_1
2570
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2572
+  (0.0ms) SAVEPOINT active_record_1
2573
+ SQL (0.3ms) 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2575
+  (0.0ms) SAVEPOINT active_record_1
2576
+ 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 03:28:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2578
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."action" = 'ACT-E' AND (created_at > '2013-08-12 03:31:57.759436')
2579
+  (0.6ms) rollback transaction
2580
+  (0.0ms) begin transaction
2581
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2582
+  (0.0ms) SAVEPOINT active_record_1
2583
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2585
+  (0.0ms) SAVEPOINT active_record_1
2586
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2588
+  (0.0ms) SAVEPOINT active_record_1
2589
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2591
+  (0.0ms) SAVEPOINT active_record_1
2592
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2594
+  (0.0ms) SAVEPOINT active_record_1
2595
+ 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 03:28:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2597
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV1' AND (created_at > '2013-08-12 03:31:57.765941')
2598
+  (0.6ms) rollback transaction
2599
+  (0.0ms) begin transaction
2600
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2601
+  (0.0ms) SAVEPOINT active_record_1
2602
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2604
+  (0.0ms) SAVEPOINT active_record_1
2605
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2607
+  (0.0ms) SAVEPOINT active_record_1
2608
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2610
+  (0.0ms) SAVEPOINT active_record_1
2611
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2613
+  (0.0ms) SAVEPOINT active_record_1
2614
+ 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 03:28:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2616
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV2' AND (created_at > '2013-08-12 03:22:57.772154')
2617
+  (0.6ms) rollback transaction
2618
+  (0.0ms) begin transaction
2619
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2620
+  (0.0ms) SAVEPOINT active_record_1
2621
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2623
+  (0.0ms) SAVEPOINT active_record_1
2624
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2626
+  (0.0ms) SAVEPOINT active_record_1
2627
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2629
+  (0.0ms) SAVEPOINT active_record_1
2630
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2632
+  (0.0ms) SAVEPOINT active_record_1
2633
+ 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 03:28:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2635
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE "outbound_requests"."service" = 'SRV2' AND (created_at > '2013-08-12 03:30:57.778262')
2636
+  (0.6ms) rollback transaction
2637
+  (0.0ms) begin transaction
2638
+ SQL (0.2ms) DELETE FROM "outbound_requests"
2639
+  (0.0ms) SAVEPOINT active_record_1
2640
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2642
+  (0.0ms) SAVEPOINT active_record_1
2643
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2645
+  (0.0ms) SAVEPOINT active_record_1
2646
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "200"], ["service", "SRV1"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2648
+  (0.0ms) SAVEPOINT active_record_1
2649
+ 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 03:32:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2651
+  (0.0ms) SAVEPOINT active_record_1
2652
+ 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 03:28:57 UTC +00:00], ["error", nil], ["identifier", nil], ["params", nil], ["response_body", nil], ["response_code", "404"], ["service", "SRV2"], ["updated_at", Mon, 12 Aug 2013 03:32:57 UTC +00:00]]
2653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2654
+  (0.1ms) SELECT COUNT(*) FROM "outbound_requests" WHERE (created_at > '2013-08-12 03:31:57.784158')
2655
+  (0.5ms) rollback transaction
@@ -38,4 +38,18 @@ class OutboundRequestTest < ActiveSupport::TestCase
38
38
  test '#rpm should select only SRV2 requests, over a 10 minute period' do
39
39
  assert_equal 0.2, OutboundRequest.rpm(service: 'SRV2', period: 10.minutes)
40
40
  end
41
+
42
+ test '#response_summary should give 4 results for the default 1 minute period' do
43
+ summary = OutboundRequest.response_summary
44
+ assert_not_nil summary
45
+ assert_equal 3, summary['200'], "expected 3 responses with code of 200"
46
+ assert_equal 1, summary['404'], "expected 1 response with a code of 404"
47
+ end
48
+
49
+ test '#response_summary should give 4 results for a 5 minute period' do
50
+ summary = OutboundRequest.response_summary(period: 5.minutes)
51
+ assert_not_nil summary
52
+ assert_equal 3, summary['200'], "expected 3 responses with code of 200"
53
+ assert_equal 2, summary['404'], "expected 2 responses with a code of 404"
54
+ end
41
55
  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.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: