systemd_mon_mod 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/systemd_mon/notifiers/slack.rb +5 -3
- data/lib/systemd_mon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae04005cfd484f39a51e1c6e270870f34c419070e9f5939b7d1a6c50e6bc63eb
|
4
|
+
data.tar.gz: c86ac408f1cbc072c27458748cfd59a2786e0fab8fa090970a6d32c3d969f76a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eebf5567a019f50183f09122fdac9d1d40aca1f2b006704ad3577a7f5049c894aa9092adb0a06dff0e4484fd6d15d9db3ec53974532193a66cd8eddb5bfbcb04
|
7
|
+
data.tar.gz: 91e9ee911d32c8261bbde4c98f848ac18c5234724a395cc826e680eb14ac2db345b4f2c96f734c8058089be5d6a7909c83d3280a200359c54a5891792ee3ca25
|
@@ -47,9 +47,11 @@ module SystemdMon::Notifiers
|
|
47
47
|
unit = notification.unit
|
48
48
|
message = "@channel #{notification.type_text}: systemd unit #{unit.name} on #{notification.hostname} #{unit.state_change.status_text}"
|
49
49
|
|
50
|
-
if notification.type == :info
|
51
|
-
|
52
|
-
|
50
|
+
return if notification.type == :info
|
51
|
+
|
52
|
+
# if notification.type == :info
|
53
|
+
# message = "#{notification.type_text}: systemd unit #{unit.name} on #{notification.hostname} #{unit.state_change.status_text}"
|
54
|
+
# end
|
53
55
|
|
54
56
|
attach = {
|
55
57
|
fallback: "@channel #{message}: #{unit.state.active} (#{unit.state.sub})",
|
data/lib/systemd_mon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: systemd_mon_mod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Cairns
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-dbus
|