easymon 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of easymon might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/easymon/checklist.rb +4 -4
- data/lib/easymon/result.rb +2 -3
- data/lib/easymon/version.rb +1 -1
- data/lib/easymon.rb +4 -0
- data/test/dummy/log/development.log +20 -0
- data/test/dummy/log/test.log +2621 -0
- data/test/dummy/tmp/cache/4D4/7A0/health_check +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e3c6dbe76e00da8ea581456f3629db07caf8feb
|
4
|
+
data.tar.gz: 3ebe3496b6880dc63b076c92c1e319a406a3865b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42a4731f64e2201753c66dccf6132d12073505f583425e2a20f505fb403561704600d33b702870614ecf247029224b5211ea39163af38a32e02accc3a1304483
|
7
|
+
data.tar.gz: e8a181963593e0367d5563c62bc06504af6cacb27ae4f5e557155947f8cb378c9c4112208c7990aa39f7099aaa55c6b6c3dddbdce85d575b9eaed8b43233cebb
|
data/lib/easymon/checklist.rb
CHANGED
@@ -24,7 +24,7 @@ module Easymon
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def timing
|
27
|
-
results.values.map{|r| r.timing}.
|
27
|
+
results.values.map{|r| r.timing}.inject(0, :+)
|
28
28
|
end
|
29
29
|
|
30
30
|
def to_text
|
@@ -32,13 +32,13 @@ module Easymon
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def to_s
|
35
|
-
|
36
|
-
"\n - Total Time - " + self.timing
|
35
|
+
results.map{|name, result| "#{name}: #{result.to_s}"}.join("\n") +
|
36
|
+
"\n - Total Time - " + Easymon.timing_to_ms(self.timing) + "ms"
|
37
37
|
end
|
38
38
|
|
39
39
|
def to_json(*args)
|
40
40
|
combined = []
|
41
|
-
|
41
|
+
results.each do |name, result|
|
42
42
|
combined << result.to_hash.merge({"name" => name})
|
43
43
|
end
|
44
44
|
combined.to_json
|
data/lib/easymon/result.rb
CHANGED
@@ -19,7 +19,7 @@ module Easymon
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def to_s
|
22
|
-
"#{message} - #{timing
|
22
|
+
"#{message} - #{Easymon.timing_to_ms(timing)}ms"
|
23
23
|
end
|
24
24
|
|
25
25
|
def to_json(options = {})
|
@@ -27,8 +27,7 @@ module Easymon
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def to_hash
|
30
|
-
{:success => success, :message => message, :timing => timing}
|
30
|
+
{:success => success, :message => message, :timing => timing_to_ms(timing)}
|
31
31
|
end
|
32
|
-
|
33
32
|
end
|
34
33
|
end
|
data/lib/easymon/version.rb
CHANGED
data/lib/easymon.rb
CHANGED
@@ -731,3 +731,23 @@ Started GET "/up/index.json" for 127.0.0.1 at 2014-05-27 18:56:07 -0400
|
|
731
731
|
Processing by Easymon::ChecksController#show as JSON
|
732
732
|
Parameters: {"check"=>"index"}
|
733
733
|
Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
734
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1=1[0m
|
735
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1=1[0m
|
736
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1=1[0m
|
737
|
+
[1m[35m (0.3ms)[0m SELECT 1=1
|
738
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1=1[0m
|
739
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1=1[0m
|
740
|
+
0.002186
|
741
|
+
0.011523
|
742
|
+
0.000727
|
743
|
+
0.001202
|
744
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1=1[0m
|
745
|
+
0.0024
|
746
|
+
0.011956
|
747
|
+
0.000711
|
748
|
+
0.001118
|
749
|
+
{}
|
750
|
+
true
|
751
|
+
{}
|
752
|
+
{}
|
753
|
+
{}
|