deckard 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deckard/monitoring.rb +2 -2
- metadata +3 -3
data/lib/deckard/monitoring.rb
CHANGED
@@ -12,7 +12,7 @@ class Deckard
|
|
12
12
|
retry if (retries += 1) < retry_count
|
13
13
|
if retries >= retry_count
|
14
14
|
subject = "ALERT :: Check Content Failed on #{url}"
|
15
|
-
body = "#{e} :: #{url}"
|
15
|
+
body = "#{Time.now} :: #{e} :: #{url}"
|
16
16
|
log = subject + " -- " + body
|
17
17
|
Deckard::Util.alert(priority, subject, body, log, schedule, url)
|
18
18
|
check = false
|
@@ -23,7 +23,7 @@ class Deckard
|
|
23
23
|
Deckard::Log.info("PASS :: Found text \"#{content}\" on #{url}")
|
24
24
|
else
|
25
25
|
subject = "ALERT :: Check Content Failed on #{url}"
|
26
|
-
body = "Could not find text \"#{content}\" at #{url}"
|
26
|
+
body = "#{Time.now} :: Could not find text \"#{content}\" at #{url}"
|
27
27
|
log = subject + " -- " + body
|
28
28
|
Deckard::Util.alert(priority, subject, body, log, schedule, url)
|
29
29
|
check = false
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 5
|
9
|
+
version: 0.5.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- joe williams
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-08-
|
17
|
+
date: 2010-08-25 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|