i_wonder 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -84276,3 +84276,841 @@ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
84276
84276
  IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events"
84277
84277
  IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" ORDER BY "i_wonder_events"."id" DESC LIMIT 1
84278
84278
   (0.1ms) ROLLBACK
84279
+  (0.2ms) BEGIN
84280
+  (0.2ms) SAVEPOINT active_record_1
84281
+  (80.2ms) SELECT 1 FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."name" = 'Blah Test' LIMIT 1
84282
+  (13.3ms) SELECT 1 FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."sym" = 'blah' LIMIT 1
84283
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
84284
+  (0.1ms) SAVEPOINT active_record_1
84285
+ SQL (73.4ms) INSERT INTO "i_wonder_ab_tests" ("created_at", "description", "name", "options", "sym", "test_applies_to", "test_group_data", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["description", nil], ["name", "Blah Test"], ["options", "--- \n:test_group_names: \n- Options 1\n- Options 2\n"], ["sym", "blah"], ["test_applies_to", "session"], ["test_group_data", "--- {}\n\n"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84286
+ SQL (23.6ms) INSERT INTO "i_wonder_ab_test_goals" ("ab_test_id", "options") VALUES ($1, $2) RETURNING "id" [["ab_test_id", 72], ["options", "--- \n:event_type: success\n:goal_type: Event\n"]]
84287
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84288
+ IWonder::TestGroupMembership Load (26.5ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 72 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2' AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 2' LIMIT 1
84289
+  (0.1ms) SAVEPOINT active_record_1
84290
+  (0.4ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 72 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2') LIMIT 1
84291
+ SQL (2.2ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 72], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "2"], ["member_type", "session"], ["test_group_name", "Option 2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84293
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 72 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2' AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 2' LIMIT 1
84294
+  (0.0ms) SAVEPOINT active_record_1
84295
+  (0.4ms) UPDATE "i_wonder_ab_tests" SET "test_applies_to" = 'user', "updated_at" = '2011-10-28 19:28:23.467690', "options" = '---
84296
+ :test_group_names:
84297
+ - Options 1
84298
+ - Options 2
84299
+ ', "test_group_data" = '--- {}
84300
+
84301
+ ' WHERE "i_wonder_ab_tests"."id" = 72
84302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84303
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 72 AND "i_wonder_test_group_memberships"."member_type" = 'user' AND "i_wonder_test_group_memberships"."member_id" = '3' AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 2' LIMIT 1
84304
+  (0.0ms) SAVEPOINT active_record_1
84305
+  (0.2ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 72 AND "i_wonder_test_group_memberships"."member_type" = 'user' AND "i_wonder_test_group_memberships"."member_id" = '3') LIMIT 1
84306
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 72], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "3"], ["member_type", "user"], ["test_group_name", "Option 2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84308
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 72 AND "i_wonder_test_group_memberships"."member_type" = 'user' AND "i_wonder_test_group_memberships"."member_id" = '3' AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 2' LIMIT 1
84309
+  (0.0ms) SAVEPOINT active_record_1
84310
+  (0.3ms) UPDATE "i_wonder_ab_tests" SET "test_applies_to" = 'account', "updated_at" = '2011-10-28 19:28:23.473108', "options" = '---
84311
+ :test_group_names:
84312
+ - Options 1
84313
+ - Options 2
84314
+ ', "test_group_data" = '--- {}
84315
+
84316
+ ' WHERE "i_wonder_ab_tests"."id" = 72
84317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84318
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 72 AND "i_wonder_test_group_memberships"."member_type" = 'account' AND "i_wonder_test_group_memberships"."member_id" = '4' AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 2' LIMIT 1
84319
+  (0.0ms) SAVEPOINT active_record_1
84320
+  (0.3ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 72 AND "i_wonder_test_group_memberships"."member_type" = 'account' AND "i_wonder_test_group_memberships"."member_id" = '4') LIMIT 1
84321
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 72], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "4"], ["member_type", "account"], ["test_group_name", "Option 2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84323
+ IWonder::TestGroupMembership Load (0.4ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 72 AND "i_wonder_test_group_memberships"."member_type" = 'account' AND "i_wonder_test_group_memberships"."member_id" = '4' AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 2' LIMIT 1
84324
+  (0.2ms) ROLLBACK
84325
+  (0.1ms) BEGIN
84326
+  (0.1ms) SAVEPOINT active_record_1
84327
+  (0.3ms) SELECT 1 FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."name" = 'Blah Test' LIMIT 1
84328
+  (0.2ms) SELECT 1 FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."sym" = 'blah' LIMIT 1
84329
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
84330
+  (0.1ms) SAVEPOINT active_record_1
84331
+ SQL (0.3ms) INSERT INTO "i_wonder_ab_tests" ("created_at", "description", "name", "options", "sym", "test_applies_to", "test_group_data", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["description", nil], ["name", "Blah Test"], ["options", "--- \n:test_group_names: \n- Options 1\n- Options 2\n"], ["sym", "blah"], ["test_applies_to", "session"], ["test_group_data", "--- {}\n\n"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84332
+ SQL (0.2ms) INSERT INTO "i_wonder_ab_test_goals" ("ab_test_id", "options") VALUES ($1, $2) RETURNING "id" [["ab_test_id", 73], ["options", "--- \n:event_type: success\n:goal_type: Event\n"]]
84333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84334
+  (0.0ms) SAVEPOINT active_record_1
84335
+  (0.3ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'account' AND "i_wonder_test_group_memberships"."member_id" = 'random_1') LIMIT 1
84336
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 73], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "random_1"], ["member_type", "account"], ["test_group_name", "Options 1"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84338
+  (0.0ms) SAVEPOINT active_record_1
84339
+  (0.2ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'user' AND "i_wonder_test_group_memberships"."member_id" = 'random_2') LIMIT 1
84340
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 73], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "random_2"], ["member_type", "user"], ["test_group_name", "Options 1"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84342
+  (0.1ms) SAVEPOINT active_record_1
84343
+  (0.3ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = 'random_3') LIMIT 1
84344
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 73], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "random_3"], ["member_type", "session"], ["test_group_name", "Options 1"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84346
+ IWonder::TestGroupMembership Load (0.5ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2' LIMIT 1
84347
+  (0.1ms) SAVEPOINT active_record_1
84348
+  (0.3ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2') LIMIT 1
84349
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 73], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "2"], ["member_type", "session"], ["test_group_name", "Option 2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84351
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2' LIMIT 1
84352
+  (0.0ms) SAVEPOINT active_record_1
84353
+  (0.2ms) UPDATE "i_wonder_ab_tests" SET "test_applies_to" = 'user', "updated_at" = '2011-10-28 19:28:23.521916', "options" = '---
84354
+ :test_group_names:
84355
+ - Options 1
84356
+ - Options 2
84357
+ ', "test_group_data" = '--- {}
84358
+
84359
+ ' WHERE "i_wonder_ab_tests"."id" = 73
84360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84361
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'user' AND "i_wonder_test_group_memberships"."member_id" = '3' LIMIT 1
84362
+  (0.0ms) SAVEPOINT active_record_1
84363
+  (0.3ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'user' AND "i_wonder_test_group_memberships"."member_id" = '3') LIMIT 1
84364
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 73], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "3"], ["member_type", "user"], ["test_group_name", "Option 2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84366
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'user' AND "i_wonder_test_group_memberships"."member_id" = '3' LIMIT 1
84367
+  (0.0ms) SAVEPOINT active_record_1
84368
+  (0.3ms) UPDATE "i_wonder_ab_tests" SET "test_applies_to" = 'account', "updated_at" = '2011-10-28 19:28:23.527026', "options" = '---
84369
+ :test_group_names:
84370
+ - Options 1
84371
+ - Options 2
84372
+ ', "test_group_data" = '--- {}
84373
+
84374
+ ' WHERE "i_wonder_ab_tests"."id" = 73
84375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84376
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'account' AND "i_wonder_test_group_memberships"."member_id" = '4' LIMIT 1
84377
+  (0.1ms) SAVEPOINT active_record_1
84378
+  (0.3ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'account' AND "i_wonder_test_group_memberships"."member_id" = '4') LIMIT 1
84379
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 73], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "4"], ["member_type", "account"], ["test_group_name", "Option 2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84381
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 73 AND "i_wonder_test_group_memberships"."member_type" = 'account' AND "i_wonder_test_group_memberships"."member_id" = '4' LIMIT 1
84382
+  (0.1ms) ROLLBACK
84383
+  (0.1ms) BEGIN
84384
+  (0.1ms) SAVEPOINT active_record_1
84385
+  (0.2ms) SELECT 1 FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."name" = 'Blah Test' LIMIT 1
84386
+  (0.2ms) SELECT 1 FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."sym" = 'blah' LIMIT 1
84387
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
84388
+  (0.0ms) SAVEPOINT active_record_1
84389
+ SQL (0.3ms) INSERT INTO "i_wonder_ab_tests" ("created_at", "description", "name", "options", "sym", "test_applies_to", "test_group_data", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["description", nil], ["name", "Blah Test"], ["options", "--- \n:test_group_names: \n- Options 1\n- Options 2\n"], ["sym", "blah"], ["test_applies_to", "session"], ["test_group_data", "--- {}\n\n"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84390
+ SQL (0.2ms) INSERT INTO "i_wonder_ab_test_goals" ("ab_test_id", "options") VALUES ($1, $2) RETURNING "id" [["ab_test_id", 74], ["options", "--- \n:event_type: success\n:goal_type: Event\n"]]
84391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84392
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 74
84393
+ IWonder::AbTest Load (0.2ms) SELECT "i_wonder_ab_tests".* FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."sym" = 'blah' LIMIT 1
84394
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 74 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2' LIMIT 1
84395
+  (0.1ms) SAVEPOINT active_record_1
84396
+  (0.3ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 74 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2') LIMIT 1
84397
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 74], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "2"], ["member_type", "session"], ["test_group_name", "Options 1"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84399
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 74
84400
+ IWonder::AbTest Load (0.3ms) SELECT "i_wonder_ab_tests".* FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."sym" = 'blah' LIMIT 1
84401
+ IWonder::TestGroupMembership Load (0.3ms) SELECT "i_wonder_test_group_memberships".* FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 74 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2' LIMIT 1
84402
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 74
84403
+  (0.1ms) ROLLBACK
84404
+  (0.1ms) BEGIN
84405
+  (0.0ms) ROLLBACK
84406
+  (0.1ms) BEGIN
84407
+ IWonder::AbTest Load (0.3ms) SELECT "i_wonder_ab_tests".* FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."sym" = 'non-existant test' LIMIT 1
84408
+  (0.1ms) ROLLBACK
84409
+  (0.1ms) BEGIN
84410
+  (0.1ms) ROLLBACK
84411
+  (0.1ms) BEGIN
84412
+  (0.1ms) SAVEPOINT active_record_1
84413
+  (0.2ms) SELECT 1 FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."name" = 'Blah Test' LIMIT 1
84414
+  (0.2ms) SELECT 1 FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."sym" = 'blah' LIMIT 1
84415
+ SQL (0.3ms) INSERT INTO "i_wonder_ab_tests" ("created_at", "description", "name", "options", "sym", "test_applies_to", "test_group_data", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["description", nil], ["name", "Blah Test"], ["options", "--- \n:test_group_names: \n- Options 1\n- Options 2\n"], ["sym", "blah"], ["test_applies_to", "session"], ["test_group_data", "--- {}\n\n"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84416
+ SQL (0.1ms) INSERT INTO "i_wonder_ab_test_goals" ("ab_test_id", "options") VALUES ($1, $2) RETURNING "id" [["ab_test_id", 75], ["options", "--- \n:event_type: success\n:goal_type: Event\n"]]
84417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84418
+  (0.2ms) SAVEPOINT active_record_1
84419
+ SQL (195.0ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Thu, 27 Oct 2011 19:28:23 UTC +00:00], ["event_type", "success"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "5"], ["updated_at", Thu, 27 Oct 2011 19:28:23 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84421
+  (0.1ms) SAVEPOINT active_record_1
84422
+  (0.4ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 75 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '1') LIMIT 1
84423
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 75], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "1"], ["member_type", "session"], ["test_group_name", "Option 1"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84425
+  (0.1ms) SAVEPOINT active_record_1
84426
+  (0.3ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 75 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '2') LIMIT 1
84427
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 75], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "2"], ["member_type", "session"], ["test_group_name", "Option 2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84429
+  (0.1ms) SAVEPOINT active_record_1
84430
+  (0.2ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 75 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '3') LIMIT 1
84431
+ SQL (0.2ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 75], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "3"], ["member_type", "session"], ["test_group_name", "Option 2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84433
+  (0.0ms) SAVEPOINT active_record_1
84434
+  (0.2ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 75 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '4') LIMIT 1
84435
+ SQL (0.2ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 75], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "4"], ["member_type", "session"], ["test_group_name", "Option 2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84437
+  (0.0ms) SAVEPOINT active_record_1
84438
+  (0.3ms) SELECT 1 FROM "i_wonder_test_group_memberships" WHERE ("i_wonder_test_group_memberships"."ab_test_id" = 75 AND "i_wonder_test_group_memberships"."member_type" = 'session' AND "i_wonder_test_group_memberships"."member_id" = '5') LIMIT 1
84439
+ SQL (0.3ms) INSERT INTO "i_wonder_test_group_memberships" ("ab_test_id", "created_at", "member_id", "member_type", "test_group_name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["ab_test_id", 75], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["member_id", "5"], ["member_type", "session"], ["test_group_name", "Option 1"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00]]
84440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84441
+  (0.0ms) SAVEPOINT active_record_1
84442
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["event_type", "success"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "1"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84444
+  (0.0ms) SAVEPOINT active_record_1
84445
+ SQL (0.2ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["event_type", "random"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84447
+  (0.0ms) SAVEPOINT active_record_1
84448
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["event_type", "success"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "2"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84450
+  (0.1ms) SAVEPOINT active_record_1
84451
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["event_type", "success"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "3"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84452
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84453
+  (0.1ms) SAVEPOINT active_record_1
84454
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["event_type", "random"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "4"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84456
+  (0.0ms) SAVEPOINT active_record_1
84457
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["event_type", "success"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "6"], ["updated_at", Fri, 28 Oct 2011 19:28:23 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84458
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84459
+  (0.3ms) SELECT COUNT(*) FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 75 AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 1'
84460
+  (0.3ms) SELECT COUNT(*) FROM "i_wonder_test_group_memberships" WHERE "i_wonder_test_group_memberships"."ab_test_id" = 75 AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 2'
84461
+ IWonder::AbTest Load (0.4ms) SELECT "i_wonder_ab_tests".* FROM "i_wonder_ab_tests" WHERE "i_wonder_ab_tests"."id" = 75 LIMIT 1
84462
+  (72.1ms) SELECT COUNT(*) FROM "i_wonder_test_group_memberships" LEFT JOIN i_wonder_events ON i_wonder_events.session_id = i_wonder_test_group_memberships.member_id WHERE "i_wonder_test_group_memberships"."ab_test_id" = 75 AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 1' AND (i_wonder_events.event_type = 'success') AND (i_wonder_events.created_at > '2011-10-28 19:28:23.553089')
84463
+  (0.6ms) SELECT COUNT(*) FROM "i_wonder_test_group_memberships" LEFT JOIN i_wonder_events ON i_wonder_events.session_id = i_wonder_test_group_memberships.member_id WHERE "i_wonder_test_group_memberships"."ab_test_id" = 75 AND "i_wonder_test_group_memberships"."test_group_name" = 'Option 2' AND (i_wonder_events.event_type = 'success') AND (i_wonder_events.created_at > '2011-10-28 19:28:23.553089')
84464
+  (0.1ms) ROLLBACK
84465
+  (0.1ms) BEGIN
84466
+
84467
+
84468
+ Started GET "/i_wonder" for 127.0.0.1 at 2011-10-28 12:28:24 -0700
84469
+ Processing by IWonder::DashboardController#landing as HTML
84470
+ Completed 200 OK in 193ms (Views: 192.7ms | ActiveRecord: 0.0ms)
84471
+
84472
+
84473
+ Started GET "/i_wonder?block_this=true" for 127.0.0.1 at 2011-10-28 12:28:24 -0700
84474
+ Processing by IWonder::DashboardController#landing as HTML
84475
+ Parameters: {"block_this"=>"true"}
84476
+ Redirected to http://www.example.com/
84477
+ Completed 302 Found in 0ms
84478
+  (0.2ms) ROLLBACK
84479
+  (0.1ms) BEGIN
84480
+  (0.1ms) SAVEPOINT active_record_1
84481
+ SQL (0.5ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["event_type", "test_event_1"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84483
+  (0.1ms) SAVEPOINT active_record_1
84484
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["event_type", "test_event_1"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84486
+  (0.1ms) SAVEPOINT active_record_1
84487
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["event_type", "test_event_2"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84489
+  (0.0ms) SAVEPOINT active_record_1
84490
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["event_type", "test_event_3"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84492
+  (0.0ms) SAVEPOINT active_record_1
84493
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["event_type", "test_event_1"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84495
+ IWonder::Event Load (42.8ms) SELECT event_type, COUNT(event_type) as count, MAX(created_at) as most_recent FROM "i_wonder_events" GROUP BY event_type ORDER BY most_recent DESC
84496
+ IWonder::Event Load (0.3ms) SELECT COUNT(event_type) as count, MAX(created_at) as most_recent FROM "i_wonder_events" WHERE "i_wonder_events"."event_type" = 'test_event_1' GROUP BY event_type
84497
+  (0.1ms) ROLLBACK
84498
+  (0.1ms) BEGIN
84499
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" 
84500
+  (0.1ms) SAVEPOINT active_record_1
84501
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["event_type", "test_event"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84503
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" 
84504
+  (0.1ms) ROLLBACK
84505
+  (0.1ms) BEGIN
84506
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events"
84507
+  (0.1ms) SAVEPOINT active_record_1
84508
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["event_type", "test_event"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84510
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events"
84511
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" LIMIT 1
84512
+  (0.1ms) ROLLBACK
84513
+  (0.1ms) BEGIN
84514
+ SQL (0.2ms) DELETE FROM "i_wonder_events"
84515
+  (0.1ms) SAVEPOINT active_record_1
84516
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Wed, 28 Sep 2011 19:28:24 UTC +00:00], ["event_type", "new_visitor"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "123"], ["updated_at", Wed, 28 Sep 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84518
+  (0.1ms) SAVEPOINT active_record_1
84519
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Wed, 28 Sep 2011 19:28:24 UTC +00:00], ["event_type", "hit"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "123"], ["updated_at", Wed, 28 Sep 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84520
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84521
+  (0.1ms) SAVEPOINT active_record_1
84522
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Wed, 28 Sep 2011 19:28:24 UTC +00:00], ["event_type", "hit"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "123"], ["updated_at", Wed, 28 Sep 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", 1]]
84523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84524
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events" WHERE "i_wonder_events"."user_id" = 1 AND "i_wonder_events"."event_type" = 'new_visitor' LIMIT 1
84525
+ SQL (0.3ms) UPDATE "i_wonder_events" SET "user_id" = '1', "session_id" = '123' WHERE (session_id = '123' AND user_id IS NULL)
84526
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" WHERE "i_wonder_events"."user_id" = 1
84527
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" WHERE "i_wonder_events"."session_id" = '123'
84528
+  (0.3ms) SELECT COUNT(*) FROM "i_wonder_events" WHERE "i_wonder_events"."session_id" = '123' AND "i_wonder_events"."user_id" = 1 AND "i_wonder_events"."event_type" = 'new_visitor'
84529
+  (0.1ms) SAVEPOINT active_record_1
84530
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["event_type", "new_visitor"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "321"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84532
+  (0.0ms) SAVEPOINT active_record_1
84533
+ SQL (0.2ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["event_type", "hit"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", "321"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84535
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events" WHERE "i_wonder_events"."user_id" = 1 AND "i_wonder_events"."event_type" = 'new_visitor' LIMIT 1
84536
+ SQL (0.3ms) UPDATE "i_wonder_events" SET "user_id" = '1', "session_id" = '123' WHERE (session_id = '321' AND user_id IS NULL)
84537
+ SQL (22.9ms) UPDATE "i_wonder_events" SET "event_type" = 'return_visit' WHERE (user_id = '1' AND event_type = 'new_visitor' AND id <> 550)
84538
+ IWonder::Event Load (0.5ms) SELECT "i_wonder_events".* FROM "i_wonder_events" WHERE "i_wonder_events"."id" = $1 LIMIT 1 [["id", 553]]
84539
+  (0.3ms) SELECT COUNT(*) FROM "i_wonder_events" WHERE "i_wonder_events"."session_id" = '123'
84540
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" WHERE "i_wonder_events"."session_id" = '123' AND "i_wonder_events"."event_type" = 'new_visitor'
84541
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" WHERE "i_wonder_events"."session_id" = '123' AND "i_wonder_events"."event_type" = 'return_visit'
84542
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" WHERE "i_wonder_events"."session_id" = '321'
84543
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" WHERE "i_wonder_events"."user_id" = 1
84544
+  (0.1ms) ROLLBACK
84545
+  (0.1ms) BEGIN
84546
+
84547
+
84548
+ Started GET "/i_wonder/events" for 127.0.0.1 at 2011-10-28 12:28:24 -0700
84549
+ Processing by IWonder::EventsController#index as HTML
84550
+ IWonder::Event Load (0.4ms) SELECT event_type, COUNT(event_type) as count, MAX(created_at) as most_recent FROM "i_wonder_events" GROUP BY event_type ORDER BY most_recent DESC
84551
+ Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.4ms)
84552
+  (0.1ms) ROLLBACK
84553
+  (0.1ms) BEGIN
84554
+  (0.0ms) SAVEPOINT active_record_1
84555
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", "1"], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Test Metric"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84556
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = $1 LIMIT 1 [["id", 481]]
84557
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84558
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 25 Sep 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Mon, 24 Sep 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84559
+  (0.0ms) UPDATE "i_wonder_metrics" SET "earliest_measurement" = '2012-09-24 07:00:01.000000', "options" = '---
84560
+ :collection_type: custom
84561
+ :takes_snapshots: true
84562
+ ' WHERE "i_wonder_metrics"."id" = 481
84563
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84564
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84565
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 26 Sep 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Tue, 25 Sep 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84566
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84567
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84568
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Thu, 27 Sep 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Wed, 26 Sep 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84569
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84570
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84571
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Fri, 28 Sep 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Thu, 27 Sep 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84572
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84573
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84574
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sat, 29 Sep 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Fri, 28 Sep 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84575
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84576
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84577
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sun, 30 Sep 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Sat, 29 Sep 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84578
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84579
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84580
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Mon, 01 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Sun, 30 Sep 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84581
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84582
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84583
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 02 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Mon, 01 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84584
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84585
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84586
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 03 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Tue, 02 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84587
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84588
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84589
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Thu, 04 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Wed, 03 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84590
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84591
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84592
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Fri, 05 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Thu, 04 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84593
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84594
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84595
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sat, 06 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Fri, 05 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84596
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84597
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84598
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sun, 07 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Sat, 06 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84599
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84600
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84601
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Mon, 08 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Sun, 07 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84602
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84603
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84604
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 09 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Mon, 08 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84605
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84606
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84607
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 10 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Tue, 09 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84608
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84609
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84610
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Thu, 11 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Wed, 10 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84611
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84612
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84613
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Fri, 12 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Thu, 11 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84614
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84615
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84616
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sat, 13 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Fri, 12 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84617
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84618
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84619
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sun, 14 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Sat, 13 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84620
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84621
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84622
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Mon, 15 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Sun, 14 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84623
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84624
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84625
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 16 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Mon, 15 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84626
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84627
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84628
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 17 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Tue, 16 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84629
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84630
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84631
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Thu, 18 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Wed, 17 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84632
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84633
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84634
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Fri, 19 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Thu, 18 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84635
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84636
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84637
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sat, 20 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Fri, 19 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84638
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84639
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84640
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sun, 21 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Sat, 20 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84641
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84642
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84643
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Sun, 21 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84644
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84645
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84646
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Mon, 22 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84647
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84648
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 481 LIMIT 1
84649
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 481], ["start_time", Tue, 23 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84650
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481 ORDER BY end_time DESC LIMIT 1
84651
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84652
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = $1 LIMIT 1 [["id", 481]]
84653
+  (0.0ms) SELECT COUNT(*) FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 481
84654
+  (0.1ms) ROLLBACK
84655
+  (0.1ms) BEGIN
84656
+  (0.0ms) SAVEPOINT active_record_1
84657
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Measurement 1"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84659
+  (0.0ms) SAVEPOINT active_record_1
84660
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Measurement 2"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84662
+  (0.0ms) SAVEPOINT active_record_1
84663
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 4], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sat, 20 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 482], ["start_time", Fri, 19 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84665
+  (0.0ms) SAVEPOINT active_record_1
84666
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 7], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sun, 21 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 482], ["start_time", Sat, 20 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84668
+  (0.0ms) SAVEPOINT active_record_1
84669
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 9], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 482], ["start_time", Sun, 21 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84671
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 482 ORDER BY end_time DESC LIMIT 1
84672
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 483 ORDER BY end_time DESC LIMIT 1
84673
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 482 ORDER BY end_time DESC LIMIT 1
84674
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 483 ORDER BY end_time DESC LIMIT 1
84675
+  (0.1ms) ROLLBACK
84676
+  (0.1ms) BEGIN
84677
+  (0.0ms) SAVEPOINT active_record_1
84678
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", "1"], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Measurement 3"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84679
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84680
+  (0.0ms) SAVEPOINT active_record_1
84681
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 10], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sun, 21 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 484], ["start_time", Sat, 20 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84683
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 484 ORDER BY end_time DESC LIMIT 1
84684
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 484 ORDER BY end_time DESC LIMIT 1
84685
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 484 ORDER BY end_time DESC LIMIT 1
84686
+  (0.0ms) SAVEPOINT active_record_1
84687
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
84688
+  (0.0ms) SAVEPOINT active_record_1
84689
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 484 LIMIT 1
84690
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 484], ["start_time", Sun, 21 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84692
+  (0.0ms) SAVEPOINT active_record_1
84693
+  (0.0ms) UPDATE "i_wonder_metrics" SET "earliest_measurement" = '2012-10-21 07:00:01.000000', "options" = '---
84694
+ :collection_type: custom
84695
+ :takes_snapshots: true
84696
+ ' WHERE "i_wonder_metrics"."id" = 484
84697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84698
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 484 ORDER BY end_time DESC LIMIT 1
84699
+  (0.0ms) SAVEPOINT active_record_1
84700
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
84701
+  (0.0ms) SAVEPOINT active_record_1
84702
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 484 LIMIT 1
84703
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 484], ["start_time", Mon, 22 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84705
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 484 ORDER BY end_time DESC LIMIT 1
84706
+  (0.0ms) SAVEPOINT active_record_1
84707
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
84708
+  (0.0ms) SAVEPOINT active_record_1
84709
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 484 LIMIT 1
84710
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 484], ["start_time", Tue, 23 Oct 2012 07:00:01 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84712
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 484 ORDER BY end_time DESC LIMIT 1
84713
+  (0.0ms) SELECT COUNT(*) FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 484
84714
+  (0.1ms) ROLLBACK
84715
+  (0.1ms) BEGIN
84716
+  (0.0ms) SAVEPOINT active_record_1
84717
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", "3"], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", -1], ["last_measurement", nil], ["name", "Test Metric"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: false\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84719
+  (0.0ms) SAVEPOINT active_record_1
84720
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
84721
+  (0.1ms) ROLLBACK
84722
+  (0.1ms) BEGIN
84723
+  (0.0ms) SAVEPOINT active_record_1
84724
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Test Metric"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84726
+  (0.0ms) SAVEPOINT active_record_1
84727
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- \nkey_1: 1\n"], ["count", nil], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sat, 20 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 486], ["start_time", Fri, 19 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84729
+  (0.0ms) SAVEPOINT active_record_1
84730
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- \nkey_1: 2\n"], ["count", nil], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sun, 21 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 486], ["start_time", Sat, 20 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84732
+  (0.0ms) SAVEPOINT active_record_1
84733
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- \nkey_1: 3\nkey_2: 1\n"], ["count", nil], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 486], ["start_time", Sun, 21 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84735
+  (0.0ms) SAVEPOINT active_record_1
84736
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- \nkey_1: 4\nkey_2: 2\n"], ["count", nil], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 486], ["start_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84738
+  (0.0ms) SAVEPOINT active_record_1
84739
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- \nkey_1: 5\nkey_2: 3\n"], ["count", nil], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 486], ["start_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84741
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 486 AND (start_time < '2012-10-23 07:00:00.000000' AND end_time > '2012-10-20 07:00:00.000000')
84742
+  (0.1ms) ROLLBACK
84743
+  (0.1ms) BEGIN
84744
+  (0.0ms) SAVEPOINT active_record_1
84745
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Test Metric"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84747
+  (0.0ms) SAVEPOINT active_record_1
84748
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sat, 20 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 487], ["start_time", Fri, 19 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84750
+  (0.0ms) SAVEPOINT active_record_1
84751
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 2], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Sun, 21 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 487], ["start_time", Sat, 20 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84753
+  (0.0ms) SAVEPOINT active_record_1
84754
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 3], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 487], ["start_time", Sun, 21 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84756
+  (0.0ms) SAVEPOINT active_record_1
84757
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 4], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 487], ["start_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84759
+  (0.0ms) SAVEPOINT active_record_1
84760
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 5], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 487], ["start_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84762
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 487 AND (start_time < '2012-10-23 07:00:00.000000' AND end_time > '2012-10-20 07:00:00.000000')
84763
+  (0.1ms) ROLLBACK
84764
+  (0.1ms) BEGIN
84765
+  (0.0ms) SAVEPOINT active_record_1
84766
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Test Metric"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84768
+  (0.0ms) SAVEPOINT active_record_1
84769
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 488], ["start_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84771
+  (0.0ms) SAVEPOINT active_record_1
84772
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 3], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 488], ["start_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84774
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 488 AND (start_time < '2012-10-24 07:00:00.000000' AND end_time > '2012-10-22 07:00:00.000000')
84775
+  (0.0ms) SAVEPOINT active_record_1
84776
+  (0.0ms) UPDATE "i_wonder_metrics" SET "options" = '---
84777
+ :collection_type: custom
84778
+ :takes_snapshots: true
84779
+ :combination_rule: average
84780
+ ' WHERE "i_wonder_metrics"."id" = 488
84781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84782
+  (0.0ms) SAVEPOINT active_record_1
84783
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 488], ["start_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84785
+  (0.0ms) SAVEPOINT active_record_1
84786
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 3], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 488], ["start_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84788
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 488 AND (start_time < '2012-10-24 07:00:00.000000' AND end_time > '2012-10-22 07:00:00.000000')
84789
+  (0.1ms) ROLLBACK
84790
+  (0.1ms) BEGIN
84791
+ IWonder::Metric Load (0.3ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics"
84792
+  (0.2ms) SAVEPOINT active_record_1
84793
+  (11.7ms) SELECT 1 FROM "i_wonder_reports" WHERE "i_wonder_reports"."name" = 'Report 1' LIMIT 1
84794
+ SQL (12.6ms) INSERT INTO "i_wonder_reports" ("created_at", "description", "name", "pin_to_dashboard", "report_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["description", nil], ["name", "Report 1"], ["pin_to_dashboard", nil], ["report_type", "line"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84796
+  (0.1ms) SAVEPOINT active_record_1
84797
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Measurement 4"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84799
+  (0.1ms) SAVEPOINT active_record_1
84800
+  (0.3ms) UPDATE "i_wonder_metrics" SET "collection_method" = 'IWonder::Report.find(41).destroy; 1', "updated_at" = '2011-10-28 19:28:24.847119', "options" = '---
84801
+ :collection_type: custom
84802
+ :takes_snapshots: true
84803
+ ' WHERE "i_wonder_metrics"."id" = 489
84804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84805
+ IWonder::Snapshot Load (0.3ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 489 ORDER BY end_time DESC LIMIT 1
84806
+  (0.1ms) SAVEPOINT active_record_1
84807
+ IWonder::Report Load (0.4ms) SELECT "i_wonder_reports".* FROM "i_wonder_reports" WHERE "i_wonder_reports"."id" = $1 LIMIT 1 [["id", 41]]
84808
+ SQL (0.2ms) DELETE FROM "i_wonder_reports" WHERE "i_wonder_reports"."id" = $1 [["id", 41]]
84809
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
84810
+  (0.0ms) SAVEPOINT active_record_1
84811
+ IWonder::Metric Load (0.3ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = 489 LIMIT 1
84812
+ SQL (0.4ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["end_time", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["metric_id", 489], ["start_time", Thu, 27 Oct 2011 19:28:24 UTC +00:00], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84814
+  (0.0ms) SAVEPOINT active_record_1
84815
+  (0.3ms) UPDATE "i_wonder_metrics" SET "earliest_measurement" = '2011-10-27 19:28:24.849602', "updated_at" = '2011-10-28 19:28:24.855004', "options" = '---
84816
+ :collection_type: custom
84817
+ :takes_snapshots: true
84818
+ ' WHERE "i_wonder_metrics"."id" = 489
84819
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84820
+ IWonder::Snapshot Load (0.3ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 489 ORDER BY end_time DESC LIMIT 1
84821
+ IWonder::Metric Load (0.2ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE "i_wonder_metrics"."id" = $1 LIMIT 1 [["id", 489]]
84822
+  (0.2ms) SELECT 1 FROM "i_wonder_reports" WHERE "i_wonder_reports"."id" = 41 LIMIT 1
84823
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 489
84824
+  (0.1ms) ROLLBACK
84825
+  (0.1ms) BEGIN
84826
+ SQL (0.1ms) DELETE FROM "i_wonder_metrics"
84827
+  (0.1ms) SAVEPOINT active_record_1
84828
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", 3600], ["last_measurement", nil], ["name", "Measurement 5"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84830
+  (0.1ms) SAVEPOINT active_record_1
84831
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", 3600], ["last_measurement", Fri, 28 Oct 2011 18:58:24 UTC +00:00], ["name", "Measurement 6"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84833
+  (0.1ms) SAVEPOINT active_record_1
84834
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", 3600], ["last_measurement", Fri, 28 Oct 2011 17:58:24 UTC +00:00], ["name", "Measurement 7"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84836
+  (0.1ms) SAVEPOINT active_record_1
84837
+ SQL (0.5ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", Fri, 28 Oct 2011 17:58:24 UTC +00:00], ["name", "Measurement 8"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84838
+  (0.2ms) RELEASE SAVEPOINT active_record_1
84839
+  (0.1ms) SAVEPOINT active_record_1
84840
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", Wed, 26 Oct 2011 19:28:24 UTC +00:00], ["name", "Measurement 9"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84842
+  (0.1ms) SAVEPOINT active_record_1
84843
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", -1], ["last_measurement", nil], ["name", "Measurement 10"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: false\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84845
+  (0.1ms) SAVEPOINT active_record_1
84846
+ SQL (0.3ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", true], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", 3600], ["last_measurement", nil], ["name", "Measurement 11"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84848
+  (11.6ms) SELECT COUNT(*) FROM "i_wonder_metrics" WHERE (archived = 'f' or archived IS NULL) AND (frequency > 0) AND (last_measurement IS NULL OR last_measurement+(frequency * interval '1 second') < NOW())
84849
+ IWonder::Metric Load (0.4ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE (archived = 'f' or archived IS NULL) AND (frequency > 0) AND (last_measurement IS NULL OR last_measurement+(frequency * interval '1 second') < NOW())
84850
+ IWonder::Metric Load (0.4ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE (archived = 'f' or archived IS NULL) AND (frequency > 0) AND (last_measurement IS NULL OR last_measurement+(frequency * interval '1 second') < NOW())
84851
+ IWonder::Metric Load (0.4ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" WHERE (archived = 'f' or archived IS NULL) AND (frequency > 0) AND (last_measurement IS NULL OR last_measurement+(frequency * interval '1 second') < NOW())
84852
+  (0.4ms) ROLLBACK
84853
+  (0.1ms) BEGIN
84854
+  (0.1ms) SAVEPOINT active_record_1
84855
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", 3600], ["last_measurement", nil], ["name", "Measurement 12"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84857
+  (0.1ms) ROLLBACK
84858
+  (0.1ms) BEGIN
84859
+  (0.1ms) SAVEPOINT active_record_1
84860
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", "IWonder::Event.where(:event_type => \"\").where(\"created_at >= ? AND created_at < ?\", start_time, end_time).count"], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", -1], ["last_measurement", nil], ["name", "test name"], ["options", "--- \n:collection_type: event_counter\n:event_counter_event: \n:takes_snapshots: false\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84862
+  (0.1ms) SAVEPOINT active_record_1
84863
+  (0.3ms) UPDATE "i_wonder_metrics" SET "frequency" = 3600, "updated_at" = '2011-10-28 19:28:24.905404', "options" = '---
84864
+ :collection_type: event_counter
84865
+ :event_counter_event:
84866
+ :takes_snapshots: true
84867
+ ' WHERE "i_wonder_metrics"."id" = 498
84868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84869
+  (0.1ms) SAVEPOINT active_record_1
84870
+  (0.3ms) UPDATE "i_wonder_metrics" SET "frequency" = -1, "updated_at" = '2011-10-28 19:28:24.907546', "options" = '---
84871
+ :collection_type: event_counter
84872
+ :event_counter_event:
84873
+ :takes_snapshots: false
84874
+ ' WHERE "i_wonder_metrics"."id" = 498
84875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84876
+  (0.1ms) SAVEPOINT active_record_1
84877
+  (0.3ms) UPDATE "i_wonder_metrics" SET "frequency" = 3600, "updated_at" = '2011-10-28 19:28:24.909206', "options" = '---
84878
+ :collection_type: event_counter
84879
+ :event_counter_event:
84880
+ :takes_snapshots: true
84881
+ ' WHERE "i_wonder_metrics"."id" = 498
84882
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84883
+  (0.1ms) SAVEPOINT active_record_1
84884
+  (0.3ms) UPDATE "i_wonder_metrics" SET "frequency" = -1, "updated_at" = '2011-10-28 19:28:24.911157', "options" = '---
84885
+ :collection_type: event_counter
84886
+ :event_counter_event:
84887
+ :takes_snapshots: false
84888
+ ' WHERE "i_wonder_metrics"."id" = 498
84889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84890
+  (0.1ms) ROLLBACK
84891
+  (0.1ms) BEGIN
84892
+  (0.0ms) SAVEPOINT active_record_1
84893
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", 3600], ["last_measurement", nil], ["name", "Measurement 13"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84895
+  (0.1ms) ROLLBACK
84896
+  (0.1ms) BEGIN
84897
+  (0.0ms) SAVEPOINT active_record_1
84898
+ SQL (0.5ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", "IWonder::Event.where(:event_type => \"hit\").where(\"created_at >= ? AND created_at < ?\", start_time, end_time).count"], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", -1], ["last_measurement", nil], ["name", "Track Hits"], ["options", "--- \n:collection_type: event_counter\n:event_counter_event: hit\n:takes_snapshots: false\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84899
+  (0.2ms) RELEASE SAVEPOINT active_record_1
84900
+  (0.1ms) SAVEPOINT active_record_1
84901
+ SQL (0.4ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Wed, 26 Oct 2011 19:28:24 UTC +00:00], ["event_type", "hit"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Wed, 26 Oct 2011 19:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84903
+  (0.1ms) SAVEPOINT active_record_1
84904
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 17:28:24 UTC +00:00], ["event_type", :hit], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Fri, 28 Oct 2011 17:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84906
+  (0.1ms) SAVEPOINT active_record_1
84907
+ SQL (0.3ms) INSERT INTO "i_wonder_events" ("account_id", "action", "controller", "created_at", "event_type", "extra_details", "referrer", "remote_ip", "session_id", "updated_at", "user_agent", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["account_id", nil], ["action", nil], ["controller", nil], ["created_at", Fri, 28 Oct 2011 17:28:24 UTC +00:00], ["event_type", "hit"], ["extra_details", "--- {}\n\n"], ["referrer", nil], ["remote_ip", nil], ["session_id", nil], ["updated_at", Fri, 28 Oct 2011 17:28:24 UTC +00:00], ["user_agent", nil], ["user_id", nil]]
84908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84909
+  (0.0ms) SAVEPOINT active_record_1
84910
+  (0.6ms) SELECT COUNT(*) FROM "i_wonder_events" WHERE "i_wonder_events"."event_type" = 'hit' AND (created_at >= '2011-10-27 19:28:24.927024' AND created_at < '2011-10-28 19:28:24.927115')
84911
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
84912
+  (0.1ms) ROLLBACK
84913
+  (0.1ms) BEGIN
84914
+  (0.0ms) SAVEPOINT active_record_1
84915
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", "Account.where(\"created_at >= ? AND created_at < ?\", start_time, end_time).count"], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", -1], ["last_measurement", nil], ["name", "Track Accounts"], ["options", "--- \n:collection_type: model_counter\n:model_counter_class: Account\n:model_counter_scopes: \n:model_counter_method: Creation Rate\n:combination_rule: sum\n:takes_snapshots: false\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84917
+  (0.1ms) SAVEPOINT active_record_1
84918
+ SQL (17.3ms) INSERT INTO "accounts" ("active", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["active", nil], ["created_at", Wed, 26 Oct 2011 19:28:24 UTC +00:00], ["updated_at", Wed, 26 Oct 2011 19:28:24 UTC +00:00]]
84919
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84920
+  (0.1ms) SAVEPOINT active_record_1
84921
+ SQL (0.3ms) INSERT INTO "accounts" ("active", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["active", nil], ["created_at", Fri, 28 Oct 2011 17:28:24 UTC +00:00], ["updated_at", Fri, 28 Oct 2011 17:28:24 UTC +00:00]]
84922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84923
+  (0.1ms) SAVEPOINT active_record_1
84924
+ SQL (0.2ms) INSERT INTO "accounts" ("active", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["active", nil], ["created_at", Fri, 28 Oct 2011 17:28:24 UTC +00:00], ["updated_at", Fri, 28 Oct 2011 17:28:24 UTC +00:00]]
84925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84926
+  (0.0ms) SAVEPOINT active_record_1
84927
+  (0.3ms) SELECT COUNT(*) FROM "accounts" WHERE (created_at >= '2011-10-27 19:28:24.961649' AND created_at < '2011-10-28 19:28:24.961760')
84928
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
84929
+  (0.1ms) SAVEPOINT active_record_1
84930
+  (0.3ms) UPDATE "i_wonder_metrics" SET "collection_method" = 'Account.where("created_at < ?", end_time).count', "updated_at" = '2011-10-28 19:28:24.963832', "options" = '---
84931
+ :collection_type: model_counter
84932
+ :model_counter_class: Account
84933
+ :model_counter_scopes:
84934
+ :model_counter_method: Total Number
84935
+ :combination_rule: average
84936
+ :takes_snapshots: false
84937
+ ' WHERE "i_wonder_metrics"."id" = 501
84938
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84939
+  (0.1ms) SAVEPOINT active_record_1
84940
+  (0.2ms) SELECT COUNT(*) FROM "accounts" WHERE (created_at < '2011-10-28 19:28:24.965287')
84941
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
84942
+  (0.0ms) SAVEPOINT active_record_1
84943
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
84944
+  (0.0ms) SAVEPOINT active_record_1
84945
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
84946
+  (0.1ms) ROLLBACK
84947
+  (0.1ms) BEGIN
84948
+
84949
+
84950
+ Started POST "/i_wonder/metrics" for 127.0.0.1 at 2011-10-28 12:28:24 -0700
84951
+ Processing by IWonder::MetricsController#create as HTML
84952
+ Parameters: {"metric"=>{"name"=>"New Metric"}}
84953
+  (0.1ms) SAVEPOINT active_record_1
84954
+ SQL (0.4ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", "IWonder::Event.where(:event_type => \"\").where(\"created_at >= ? AND created_at < ?\", start_time, end_time).count"], ["created_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00], ["earliest_measurement", nil], ["frequency", -1], ["last_measurement", nil], ["name", "New Metric"], ["options", "--- \n:collection_type: event_counter\n:event_counter_event: \n:takes_snapshots: false\n"], ["updated_at", Fri, 28 Oct 2011 19:28:24 UTC +00:00]]
84955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84956
+ Redirected to http://www.example.com/i_wonder/metrics/502
84957
+ Completed 302 Found in 4ms
84958
+  (0.1ms) ROLLBACK
84959
+  (0.1ms) BEGIN
84960
+  (0.0ms) SAVEPOINT active_record_1
84961
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Test Metric 1"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84963
+  (0.0ms) SAVEPOINT active_record_1
84964
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 1], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 503], ["start_time", Sun, 21 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84966
+  (0.0ms) SAVEPOINT active_record_1
84967
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 2], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 503], ["start_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84969
+  (0.0ms) SAVEPOINT active_record_1
84970
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- {}\n\n"], ["count", 3], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 503], ["start_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84972
+  (0.0ms) SAVEPOINT active_record_1
84973
+ SQL (0.0ms) INSERT INTO "i_wonder_metrics" ("archived", "collection_method", "created_at", "earliest_measurement", "frequency", "last_measurement", "name", "options", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["archived", nil], ["collection_method", ""], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["earliest_measurement", nil], ["frequency", 86400], ["last_measurement", nil], ["name", "Test Metric 2"], ["options", "--- \n:collection_type: custom\n:takes_snapshots: true\n"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84975
+  (0.0ms) SAVEPOINT active_record_1
84976
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- \nkey_1: 3\nkey_2: 1\n"], ["count", nil], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 504], ["start_time", Mon, 22 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84978
+  (0.0ms) SAVEPOINT active_record_1
84979
+ SQL (0.0ms) INSERT INTO "i_wonder_snapshots" ("complex_data", "count", "created_at", "end_time", "metric_id", "start_time", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["complex_data", "--- \nkey_1: 3\nkey_2: 2\n"], ["count", nil], ["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["end_time", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["metric_id", 504], ["start_time", Tue, 23 Oct 2012 07:00:00 UTC +00:00], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84981
+  (0.0ms) SAVEPOINT active_record_1
84982
+  (0.0ms) SELECT 1 FROM "i_wonder_reports" WHERE "i_wonder_reports"."name" = 'Report 2' LIMIT 1
84983
+ SQL (0.0ms) INSERT INTO "i_wonder_reports" ("created_at", "description", "name", "pin_to_dashboard", "report_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00], ["description", nil], ["name", "Report 2"], ["pin_to_dashboard", nil], ["report_type", "line"], ["updated_at", Wed, 24 Oct 2012 07:00:00 UTC +00:00]]
84984
+ SQL (0.0ms) INSERT INTO "i_wonder_report_memberships" ("metric_id", "report_id") VALUES ($1, $2) RETURNING "id" [["metric_id", 503], ["report_id", 42]]
84985
+ SQL (0.0ms) INSERT INTO "i_wonder_report_memberships" ("metric_id", "report_id") VALUES ($1, $2) RETURNING "id" [["metric_id", 504], ["report_id", 42]]
84986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84987
+  (0.0ms) SELECT COUNT(*) FROM "i_wonder_metrics" INNER JOIN "i_wonder_report_memberships" ON "i_wonder_metrics"."id" = "i_wonder_report_memberships"."metric_id" WHERE "i_wonder_report_memberships"."report_id" = 42
84988
+ IWonder::Metric Load (0.0ms) SELECT "i_wonder_metrics".* FROM "i_wonder_metrics" INNER JOIN "i_wonder_report_memberships" ON "i_wonder_metrics"."id" = "i_wonder_report_memberships"."metric_id" WHERE "i_wonder_report_memberships"."report_id" = 42
84989
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 503 AND (start_time < '2012-10-22 07:00:00.000000' AND end_time > '2012-10-21 07:00:00.000000')
84990
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 504 AND (start_time < '2012-10-22 07:00:00.000000' AND end_time > '2012-10-21 07:00:00.000000')
84991
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 503 AND (start_time < '2012-10-23 07:00:00.000000' AND end_time > '2012-10-22 07:00:00.000000')
84992
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 504 AND (start_time < '2012-10-23 07:00:00.000000' AND end_time > '2012-10-22 07:00:00.000000')
84993
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 503 AND (start_time < '2012-10-24 07:00:00.000000' AND end_time > '2012-10-23 07:00:00.000000')
84994
+ IWonder::Snapshot Load (0.0ms) SELECT "i_wonder_snapshots".* FROM "i_wonder_snapshots" WHERE "i_wonder_snapshots"."metric_id" = 504 AND (start_time < '2012-10-24 07:00:00.000000' AND end_time > '2012-10-23 07:00:00.000000')
84995
+  (0.2ms) ROLLBACK
84996
+  (0.1ms) BEGIN
84997
+  (0.0ms) ROLLBACK
84998
+  (0.1ms) BEGIN
84999
+  (0.0ms) ROLLBACK
85000
+  (0.1ms) BEGIN
85001
+ Processing by TestController#test_with_report as HTML
85002
+ Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms)
85003
+  (0.2ms) ROLLBACK
85004
+  (0.1ms) BEGIN
85005
+ Processing by TestController#test_without_report as HTML
85006
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
85007
+  (0.1ms) ROLLBACK
85008
+  (0.1ms) BEGIN
85009
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events"
85010
+
85011
+
85012
+ Started GET "/test_without_report" for 127.0.0.1 at 2011-10-28 12:28:25 -0700
85013
+ Processing by TestController#test_without_report as HTML
85014
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
85015
+  (0.1ms) SAVEPOINT active_record_1
85016
+  (0.4ms) INSERT INTO i_wonder_events (event_type, account_id, user_id, session_id, controller, action, extra_details, remote_ip, user_agent, referrer, created_at, updated_at) values ('new_visitor', '3', '2', '569849b6af3aaeb95e81', 'test', 'test_without_report', NULL, '127.0.0.1', 'chrome', 'http://google.com', '2011-10-28 19:28:25.122712', '2011-10-28 19:28:25.122726')
85017
+  (0.3ms) INSERT INTO i_wonder_events (event_type, account_id, user_id, session_id, controller, action, extra_details, remote_ip, user_agent, referrer, created_at, updated_at) values ('hit', '3', '2', '569849b6af3aaeb95e81', 'test', 'test_without_report', NULL, '127.0.0.1', 'chrome', 'http://google.com', '2011-10-28 19:28:25.123389', '2011-10-28 19:28:25.123399')
85018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85019
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" 
85020
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events" LIMIT 1
85021
+ IWonder::Event Load (0.5ms) SELECT "i_wonder_events".* FROM "i_wonder_events" ORDER BY "i_wonder_events"."id" DESC LIMIT 1
85022
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" LIMIT 1
85023
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" LIMIT 1
85024
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" LIMIT 1
85025
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" LIMIT 1
85026
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" LIMIT 1
85027
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" LIMIT 1
85028
+
85029
+
85030
+ Started GET "/test_without_report" for 127.0.0.1 at 2011-10-28 12:28:25 -0700
85031
+ Processing by TestController#test_without_report as HTML
85032
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
85033
+  (0.1ms) SAVEPOINT active_record_1
85034
+  (0.4ms) INSERT INTO i_wonder_events (event_type, account_id, user_id, session_id, controller, action, extra_details, remote_ip, user_agent, referrer, created_at, updated_at) values ('hit', '3', '2', '569849b6af3aaeb95e81', 'test', 'test_without_report', NULL, '127.0.0.1', NULL, NULL, '2011-10-28 19:28:25.131632', '2011-10-28 19:28:25.131645')
85035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85036
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" 
85037
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events" ORDER BY "i_wonder_events"."id" DESC LIMIT 1
85038
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events" ORDER BY "i_wonder_events"."id" DESC LIMIT 1
85039
+  (0.1ms) ROLLBACK
85040
+  (0.1ms) BEGIN
85041
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events"
85042
+
85043
+
85044
+ Started GET "/test_without_login" for 127.0.0.1 at 2011-10-28 12:28:25 -0700
85045
+ Processing by TestController#test_without_login as HTML
85046
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
85047
+  (0.3ms) SELECT COUNT(*) FROM "i_wonder_events" 
85048
+  (0.2ms) ROLLBACK
85049
+  (0.1ms) BEGIN
85050
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events"
85051
+
85052
+
85053
+ Started GET "/i_wonder/events" for 127.0.0.1 at 2011-10-28 12:28:25 -0700
85054
+ Processing by IWonder::EventsController#index as HTML
85055
+ IWonder::Event Load (0.4ms) SELECT event_type, COUNT(event_type) as count, MAX(created_at) as most_recent FROM "i_wonder_events" GROUP BY event_type ORDER BY most_recent DESC
85056
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)
85057
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events"
85058
+  (0.1ms) ROLLBACK
85059
+  (0.1ms) BEGIN
85060
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" 
85061
+
85062
+
85063
+ Started GET "/test_redirect" for 127.0.0.1 at 2011-10-28 12:28:25 -0700
85064
+ Processing by TestController#test_redirect as HTML
85065
+ Redirected to http://www.example.comtest_without_login
85066
+ Completed 302 Found in 0ms
85067
+  (0.1ms) SAVEPOINT active_record_1
85068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85069
+  (0.3ms) SELECT COUNT(*) FROM "i_wonder_events"
85070
+  (0.1ms) ROLLBACK
85071
+  (0.1ms) BEGIN
85072
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" 
85073
+
85074
+
85075
+ Started GET "/test_redirect" for 127.0.0.1 at 2011-10-28 12:28:25 -0700
85076
+ Processing by TestController#test_redirect as HTML
85077
+ Redirected to http://www.example.comtest_without_login
85078
+ Completed 302 Found in 0ms
85079
+  (0.1ms) SAVEPOINT active_record_1
85080
+  (0.4ms) INSERT INTO i_wonder_events (event_type, account_id, user_id, session_id, controller, action, extra_details, remote_ip, user_agent, referrer, created_at, updated_at) values ('new_visitor', '3', '2', 'cc149e5872e06a1e4c0d', 'test', 'test_redirect', NULL, '127.0.0.1', NULL, NULL, '2011-10-28 19:28:25.155341', '2011-10-28 19:28:25.155352')
85081
+  (0.3ms) INSERT INTO i_wonder_events (event_type, account_id, user_id, session_id, controller, action, extra_details, remote_ip, user_agent, referrer, created_at, updated_at) values ('hit', '3', '2', 'cc149e5872e06a1e4c0d', 'test', 'test_redirect', NULL, '127.0.0.1', NULL, NULL, '2011-10-28 19:28:25.156084', '2011-10-28 19:28:25.156096')
85082
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85083
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events"
85084
+  (0.1ms) ROLLBACK
85085
+  (0.1ms) BEGIN
85086
+  (0.0ms) ROLLBACK
85087
+  (0.1ms) BEGIN
85088
+ IWonder::Event Load (0.2ms) SELECT "i_wonder_events".* FROM "i_wonder_events" 
85089
+
85090
+
85091
+ Started GET "/test_without_login" for 127.0.0.1 at 2011-10-28 12:28:25 -0700
85092
+ Processing by TestController#test_without_login as HTML
85093
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
85094
+  (0.1ms) SAVEPOINT active_record_1
85095
+  (0.4ms) INSERT INTO i_wonder_events (event_type, account_id, user_id, session_id, controller, action, extra_details, remote_ip, user_agent, referrer, created_at, updated_at) values ('new_visitor', NULL, NULL, '291285c2b86757c9d938', 'test', 'test_without_login', NULL, '127.0.0.1', NULL, NULL, '2011-10-28 19:28:25.161473', '2011-10-28 19:28:25.161492')
85096
+  (0.3ms) INSERT INTO i_wonder_events (event_type, account_id, user_id, session_id, controller, action, extra_details, remote_ip, user_agent, referrer, created_at, updated_at) values ('hit', NULL, NULL, '291285c2b86757c9d938', 'test', 'test_without_login', NULL, '127.0.0.1', NULL, NULL, '2011-10-28 19:28:25.162229', '2011-10-28 19:28:25.162238')
85097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85098
+  (0.3ms) SELECT COUNT(*) FROM "i_wonder_events"
85099
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events" LIMIT 1
85100
+
85101
+
85102
+ Started GET "/test_without_report" for 127.0.0.1 at 2011-10-28 12:28:25 -0700
85103
+ Processing by TestController#test_without_report as HTML
85104
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
85105
+ IWonder::Event Load (0.4ms) SELECT "i_wonder_events".* FROM "i_wonder_events" WHERE "i_wonder_events"."user_id" = 2 AND "i_wonder_events"."event_type" = 'new_visitor' LIMIT 1
85106
+ SQL (0.3ms) UPDATE "i_wonder_events" SET "user_id" = '2', "session_id" = '291285c2b86757c9d938' WHERE (session_id = '291285c2b86757c9d938' AND user_id IS NULL)
85107
+  (0.1ms) SAVEPOINT active_record_1
85108
+  (0.3ms) INSERT INTO i_wonder_events (event_type, account_id, user_id, session_id, controller, action, extra_details, remote_ip, user_agent, referrer, created_at, updated_at) values ('hit', '3', '2', '291285c2b86757c9d938', 'test', 'test_without_report', NULL, '127.0.0.1', NULL, NULL, '2011-10-28 19:28:25.168774', '2011-10-28 19:28:25.168784')
85109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85110
+  (0.2ms) SELECT COUNT(*) FROM "i_wonder_events" 
85111
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events" ORDER BY "i_wonder_events"."id" DESC LIMIT 1
85112
+  (0.4ms) INSERT INTO i_wonder_events (event_type, account_id, user_id, session_id, controller, action, extra_details, remote_ip, user_agent, referrer, created_at, updated_at) values ('blah blah', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2011-10-28 19:28:25.171367', '2011-10-28 19:28:25.171381')
85113
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events"
85114
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events" 
85115
+ IWonder::Event Load (0.3ms) SELECT "i_wonder_events".* FROM "i_wonder_events" ORDER BY "i_wonder_events"."id" DESC LIMIT 1
85116
+  (0.1ms) ROLLBACK