procmon 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -0
- data/lib/procmon/version.rb +1 -1
- data/lib/test.rb +2 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -47,6 +47,13 @@ It's hosted on [rubygems.org][rubygems].
|
|
47
47
|
puts "Oh no! My process is not running"
|
48
48
|
end
|
49
49
|
end
|
50
|
+
|
51
|
+
# Checking for percent cpu usage
|
52
|
+
Procmon.process("Mail") do |process|
|
53
|
+
process.checks :cpu_usage, :above => 0.1 do
|
54
|
+
puts "This process sure is busy!"
|
55
|
+
end
|
56
|
+
end
|
50
57
|
|
51
58
|
# Would be nice if we can do this as well
|
52
59
|
# Procmon.process("Mail") do |process|
|
data/lib/procmon/version.rb
CHANGED
data/lib/test.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: procmon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Darren Dao
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-12-02 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activesupport
|