ymlex 1.1.9.3 → 1.1.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ymlex/argusyml.rb +3 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42e97249cc3625e5c6886aa1a6a11005cc56bcf5
|
4
|
+
data.tar.gz: 6437909558f048e8b66300802ae9dbeec93a451a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f12336c7639d0d36be505c8d8f6f5cc550c9a636b1512155b4e36235075ffdc0620401b7de62ce1ea83941a7c84a98e22cea7f49337c8ad19b65d016fdded983
|
7
|
+
data.tar.gz: 6a889858bf0449a74b16a1e088e4b0168ce929b46a9956278cffa841f08e2fa12f25579988bcb9df31989e96966353ace79427dafef0b1eca8975c38abe093f1
|
data/lib/ymlex/argusyml.rb
CHANGED
@@ -21,11 +21,6 @@ class Alert
|
|
21
21
|
oncall = level["oncall"]
|
22
22
|
manager = level["manager"]
|
23
23
|
|
24
|
-
# # change g_ecomop_maop_all to #z_ecomop_maop_oncall_bak
|
25
|
-
# if @contacts["op"] != nil
|
26
|
-
# @contacts["op"].gsub!(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall_bak')
|
27
|
-
# end
|
28
|
-
#
|
29
24
|
mail = ""
|
30
25
|
sms = ""
|
31
26
|
hi = ""
|
@@ -70,7 +65,7 @@ class Alert
|
|
70
65
|
end
|
71
66
|
|
72
67
|
web = "g_ecomop_maop_all;g_ecomop_maop_manager;" if sms.include? "g_ecomop_maop_all" or sms.include? "#z_ecomop_maop_oncall"
|
73
|
-
sms.gsub!(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall
|
68
|
+
sms.gsub!(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall')
|
74
69
|
mail.gsub!(/g_ecomop_maop_all/,'ma-op')
|
75
70
|
alt = {
|
76
71
|
"max_alert_times" => level["max_alert_times"] || "1",
|
@@ -89,7 +84,8 @@ class Alert
|
|
89
84
|
}
|
90
85
|
if lvl =~ /fatal/ and manager != ""
|
91
86
|
alt["level1_upgrade_interval"] = "900"
|
92
|
-
alt["level1_upgrade_sms"] = "#{manager};#{@contacts['op']}".gsub(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall
|
87
|
+
#alt["level1_upgrade_sms"] = "#{manager};#{@contacts['op']}".gsub(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall')
|
88
|
+
alt["level1_upgrade_sms"] = "#{manager};"
|
93
89
|
end
|
94
90
|
alt
|
95
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ymlex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.9.
|
4
|
+
version: 1.1.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wen Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'extend ymal: support inherit and valueize'
|
14
14
|
email: wenli@baidu.com
|