simple_host_monitoring 0.0.11 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/localhost.rb +10 -0
- data/lib/simple_host_monitoring.rb +0 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8332dc600be56d00ff039e2e36c77627601df031
|
4
|
+
data.tar.gz: 2336d46b32ab96ca8f8791f657e65ab9087edd99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df0d81b0ac0e3282bc42d7731f66b6de4beceddcd0aa5df9752b099846cf62e92090da339e6fdea49f1f2b2e5d842ba7f60df38d0d64d6e53eaff0c9f6310db8
|
7
|
+
data.tar.gz: 189ba5da723df2616602036b2397438b617605071941a76bfdcebf93685a862b4bb9bc2eb1b1173031a0043b20780eace3275d9ee8dfb2ed190ce5ed384f3554
|
data/lib/localhost.rb
CHANGED
@@ -47,6 +47,16 @@ module BlackStack
|
|
47
47
|
h.save
|
48
48
|
end
|
49
49
|
|
50
|
+
#
|
51
|
+
def mem_load
|
52
|
+
100.to_f*(self.mem_total.to_f - self.mem_free.to_f) / self.mem_total.to_f
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
def disk_load
|
57
|
+
100.to_f*(self.disk_total.to_f - self.disk_free.to_f) / self.disk_total.to_f
|
58
|
+
end
|
59
|
+
|
50
60
|
end # class LocalHost
|
51
61
|
|
52
62
|
end # module BlackStack
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_host_monitoring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: websocket
|
@@ -96,40 +96,40 @@ dependencies:
|
|
96
96
|
requirements:
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.0.
|
99
|
+
version: 0.0.24
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0.0.
|
102
|
+
version: 0.0.24
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.0.
|
109
|
+
version: 0.0.24
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 0.0.
|
112
|
+
version: 0.0.24
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: simple_cloud_logging
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 1.1.
|
119
|
+
version: 1.1.22
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 1.1.
|
122
|
+
version: 1.1.22
|
123
123
|
type: :runtime
|
124
124
|
prerelease: false
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
127
|
- - "~>"
|
128
128
|
- !ruby/object:Gem::Version
|
129
|
-
version: 1.1.
|
129
|
+
version: 1.1.22
|
130
130
|
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: 1.1.
|
132
|
+
version: 1.1.22
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
134
|
name: simple_command_line_parser
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|