deadman_check 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/deadman_check/version.rb +1 -1
- data/lib/deadman_check_switch.rb +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: 4d953112773ed31bd80555e610d6b73feda3b838
|
|
4
|
+
data.tar.gz: c59eebf4b31ea08b59e2a68889e5e5fb872b6adf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 818481b65efc9641f6c02cc3ef53d124ab89ace427d1ccc18eaed0854ec472917e904eb0bb2a60fb622ee83e3975c5a5c1be196cca00ee5cdb2b8b4fe2e27e8d
|
|
7
|
+
data.tar.gz: fe69bac98527ed9acc0251723b61f2645241fa4d502a8a3a3b0b057c5bd3baa8a7a378900a2a7158551caf6ed6da8da5b8b9371e2f7adb2a78eb2ac74251b046
|
data/README.md
CHANGED
|
@@ -116,7 +116,7 @@ job "DeadmanMonitoring" {
|
|
|
116
116
|
"--freshness",
|
|
117
117
|
"800",
|
|
118
118
|
"--alert-to",
|
|
119
|
-
"
|
|
119
|
+
"slackroom",
|
|
120
120
|
"--daemon",
|
|
121
121
|
"--daemon-sleep",
|
|
122
122
|
"900"]
|
|
@@ -249,7 +249,7 @@ $ deadman-check switch_monitor -h
|
|
|
249
249
|
--port 6379 \
|
|
250
250
|
--key deadman/myservice \
|
|
251
251
|
--freshness 500 \
|
|
252
|
-
--alert-to
|
|
252
|
+
--alert-to slackroom
|
|
253
253
|
|
|
254
254
|
OPTIONS:
|
|
255
255
|
|
|
@@ -267,7 +267,7 @@ $ deadman-check switch_monitor -h
|
|
|
267
267
|
EPOCH value exceeds current EPOCH
|
|
268
268
|
|
|
269
269
|
--alert-to SLACKROOM
|
|
270
|
-
Slackroom to alert to
|
|
270
|
+
Slackroom to alert to, don't include the # tag in name
|
|
271
271
|
|
|
272
272
|
--daemon
|
|
273
273
|
Run as a daemon, otherwise will run check just once
|
data/lib/deadman_check_switch.rb
CHANGED
|
@@ -34,7 +34,7 @@ module DeadmanCheck
|
|
|
34
34
|
|
|
35
35
|
def slack_alert(alert_to, key, epoch_diff)
|
|
36
36
|
client = Slack::Web::Client.new
|
|
37
|
-
client.chat_postMessage(channel: alert_to, text: "Alert: Deadman Switch
|
|
37
|
+
client.chat_postMessage(channel: "\##{alert_to}", text: "Alert: Deadman Switch
|
|
38
38
|
Triggered for #{key}, with #{epoch_diff} seconds since last run",
|
|
39
39
|
username: 'deadman')
|
|
40
40
|
end
|