flashduty-knowledge-base 1.2.8 → 1.2.9
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.
- package/dist/esm/en.js +167 -115
- package/dist/esm/zh.js +160 -107
- package/dist/iife/en.js +161 -109
- package/dist/iife/zh.js +148 -95
- package/package.json +1 -1
package/dist/iife/zh.js
CHANGED
|
@@ -5358,7 +5358,8 @@ url: "https://docs.flashcat.cloud/zh/flashduty/dingtalk-integration-guide"
|
|
|
5358
5358
|
- 回到分派策略配置页面,刷新后重新选择群聊列表
|
|
5359
5359
|
- 如果仍然拿不到群聊列表,请尝试群内卸载酷应用后,重试以上步骤。如果还不可以,请联系客户或专属技术支持
|
|
5360
5360
|
|
|
5361
|
-
<img src="https://download.flashcat.cloud/dingtalk-
|
|
5361
|
+
<img src="https://download.flashcat.cloud/flashduty/doc/zh/fd/dingtalk-install-1.png" alt="drawing" width="800"/>
|
|
5362
|
+
<img src="https://download.flashcat.cloud/flashduty/doc/zh/fd/dingtalk-install-2.png" alt="drawing" width="800"/>
|
|
5362
5363
|
|
|
5363
5364
|
<img src="https://download.flashcat.cloud/dingtalk-self-app-notify-rule.png" alt="drawing" width="800"/>
|
|
5364
5365
|
|
|
@@ -6782,7 +6783,7 @@ msg_type 必填,值为 interactive
|
|
|
6782
6783
|
"fields": [{
|
|
6783
6784
|
"text": {
|
|
6784
6785
|
"tag": "lark_md",
|
|
6785
|
-
"content": "**🏢 协作空间:**{{
|
|
6786
|
+
"content": "**🏢 协作空间:**{{.ChannelName}}"
|
|
6786
6787
|
}
|
|
6787
6788
|
},
|
|
6788
6789
|
{
|
|
@@ -6794,34 +6795,46 @@ msg_type 必填,值为 interactive
|
|
|
6794
6795
|
{
|
|
6795
6796
|
"text": {
|
|
6796
6797
|
"tag": "lark_md",
|
|
6797
|
-
"content": "**⏰ 触发时间:**{{date "2006-01-02 15:04:05" .StartTime}}
|
|
6798
|
+
"content": "**⏰ 触发时间:**{{date "2006-01-02 15:04:05" .StartTime}}"
|
|
6798
6799
|
}
|
|
6799
6800
|
},
|
|
6801
|
+
{{if gt .AlertCnt 1}}
|
|
6800
6802
|
{
|
|
6801
6803
|
"text": {
|
|
6802
6804
|
"tag": "lark_md",
|
|
6803
|
-
"content": "**🔔 聚合告警:**{{.AlertCnt}}条
|
|
6805
|
+
"content": "**🔔 聚合告警:**{{.AlertCnt}}条"
|
|
6804
6806
|
}
|
|
6805
6807
|
},
|
|
6808
|
+
{{end}}{{if .Labels.resource}}
|
|
6806
6809
|
{
|
|
6807
6810
|
"tag": "div",
|
|
6808
6811
|
"text": {
|
|
6809
6812
|
"tag": "lark_md",
|
|
6810
|
-
"content": "**📌 告警对象:**
|
|
6813
|
+
"content": {{printf "%q" (print "**📌 告警对象:**" (joinAlertLabels . "resource" ","))}}
|
|
6811
6814
|
}
|
|
6812
6815
|
},
|
|
6816
|
+
{{end}}{{if .Description}}
|
|
6813
6817
|
{
|
|
6814
6818
|
"tag": "div",
|
|
6815
6819
|
"text": {
|
|
6816
6820
|
"tag": "lark_md",
|
|
6817
|
-
"content":
|
|
6821
|
+
"content": {{printf "%q" (print "**🔍 故障描述:**" .Description)}}
|
|
6818
6822
|
}
|
|
6819
6823
|
},
|
|
6824
|
+
{{end}}{{if gt (len .Responders) 0}}
|
|
6820
6825
|
{
|
|
6821
6826
|
"tag": "div",
|
|
6822
6827
|
"text": {
|
|
6823
6828
|
"tag": "lark_md",
|
|
6824
|
-
"content": "**👨💻 处理人员:**{{range .Responders}}@{{.PersonName}} {{end}}
|
|
6829
|
+
"content": "**👨💻 处理人员:**{{range .Responders}}@{{.PersonName}} {{end}}"
|
|
6830
|
+
}
|
|
6831
|
+
},
|
|
6832
|
+
{{end}}
|
|
6833
|
+
{
|
|
6834
|
+
"tag": "div",
|
|
6835
|
+
"text": {
|
|
6836
|
+
"tag": "lark_md",
|
|
6837
|
+
"content": ""
|
|
6825
6838
|
}
|
|
6826
6839
|
}
|
|
6827
6840
|
]
|
|
@@ -6850,7 +6863,28 @@ msg_type 必填,值为 interactive
|
|
|
6850
6863
|
"url": "{{.DetailUrl}}?ack=1"
|
|
6851
6864
|
}
|
|
6852
6865
|
]
|
|
6853
|
-
}
|
|
6866
|
+
}
|
|
6867
|
+
{{if or .IsFlapping .IsInStorm}},{{end}}
|
|
6868
|
+
{{if .IsFlapping}}
|
|
6869
|
+
{
|
|
6870
|
+
"tag": "div",
|
|
6871
|
+
"text": {
|
|
6872
|
+
"tag": "lark_md",
|
|
6873
|
+
"content": "🔴 当前故障频繁发生与恢复,{{if .Flapping.MuteMinutes}}未来{{.Flapping.MuteMinutes}}分钟内此告警重复触发将不再通知。{{end}}建议您优化告警策略。"
|
|
6874
|
+
}
|
|
6875
|
+
}
|
|
6876
|
+
{{end}}
|
|
6877
|
+
{{if and .IsFlapping .IsInStorm}},{{end}}
|
|
6878
|
+
{{if .IsInStorm}}
|
|
6879
|
+
{
|
|
6880
|
+
"tag": "div",
|
|
6881
|
+
"text": {
|
|
6882
|
+
"tag": "lark_md",
|
|
6883
|
+
"content": "🔴 当前故障已聚合{{.AlertCnt}}条告警,触发告警风暴,请加急处理!"
|
|
6884
|
+
}
|
|
6885
|
+
}
|
|
6886
|
+
{{end}}
|
|
6887
|
+
]
|
|
6854
6888
|
}
|
|
6855
6889
|
}
|
|
6856
6890
|
\`\`\`
|
|
@@ -6870,10 +6904,10 @@ msg_type 必填,值为 post
|
|
|
6870
6904
|
}, {
|
|
6871
6905
|
"tag": "text",
|
|
6872
6906
|
"text": "协作空间:",
|
|
6873
|
-
"
|
|
6907
|
+
"style": ["bold"]
|
|
6874
6908
|
}, {
|
|
6875
6909
|
"tag": "text",
|
|
6876
|
-
"text": "{{if .ChannelName}}{{.ChannelName}}{{else}}无{{end}}
|
|
6910
|
+
"text": "{{if .ChannelName}}{{.ChannelName}}{{else}}无{{end}}"
|
|
6877
6911
|
}],
|
|
6878
6912
|
[{
|
|
6879
6913
|
"tag": "text",
|
|
@@ -6881,11 +6915,10 @@ msg_type 必填,值为 post
|
|
|
6881
6915
|
}, {
|
|
6882
6916
|
"tag": "text",
|
|
6883
6917
|
"text": "严重程度:",
|
|
6884
|
-
"
|
|
6918
|
+
"style": ["bold"]
|
|
6885
6919
|
}, {
|
|
6886
6920
|
"tag": "text",
|
|
6887
|
-
"text": "{{.IncidentSeverity}}
|
|
6888
|
-
"text_type": "{{if eq .IncidentSeverity "Critical"}}bold{{end}}"
|
|
6921
|
+
"text": "{{.IncidentSeverity}}"
|
|
6889
6922
|
}],
|
|
6890
6923
|
[{
|
|
6891
6924
|
"tag": "text",
|
|
@@ -6893,10 +6926,10 @@ msg_type 必填,值为 post
|
|
|
6893
6926
|
}, {
|
|
6894
6927
|
"tag": "text",
|
|
6895
6928
|
"text": "触发时间:",
|
|
6896
|
-
"
|
|
6929
|
+
"style": ["bold"]
|
|
6897
6930
|
}, {
|
|
6898
6931
|
"tag": "text",
|
|
6899
|
-
"text": "{{date "2006-01-02 15:04:05" .StartTime}}
|
|
6932
|
+
"text": "{{date "2006-01-02 15:04:05" .StartTime}}"
|
|
6900
6933
|
}],
|
|
6901
6934
|
{{if gt .AlertCnt 1}}[{
|
|
6902
6935
|
"tag": "text",
|
|
@@ -6904,10 +6937,10 @@ msg_type 必填,值为 post
|
|
|
6904
6937
|
}, {
|
|
6905
6938
|
"tag": "text",
|
|
6906
6939
|
"text": "聚合告警:",
|
|
6907
|
-
"
|
|
6940
|
+
"style": ["bold"]
|
|
6908
6941
|
}, {
|
|
6909
6942
|
"tag": "text",
|
|
6910
|
-
"text": "{{.AlertCnt}}
|
|
6943
|
+
"text": "{{.AlertCnt}}条"
|
|
6911
6944
|
}],{{end}}
|
|
6912
6945
|
{{if .Labels.resource}}[{
|
|
6913
6946
|
"tag": "text",
|
|
@@ -6915,10 +6948,10 @@ msg_type 必填,值为 post
|
|
|
6915
6948
|
}, {
|
|
6916
6949
|
"tag": "text",
|
|
6917
6950
|
"text": "告警对象:",
|
|
6918
|
-
"
|
|
6951
|
+
"style": ["bold"]
|
|
6919
6952
|
}, {
|
|
6920
6953
|
"tag": "text",
|
|
6921
|
-
"text":
|
|
6954
|
+
"text": {{printf "%q" (print (joinAlertLabels . "resource" ","))}}
|
|
6922
6955
|
}],{{end}}
|
|
6923
6956
|
{{if .Description}}[{
|
|
6924
6957
|
"tag": "text",
|
|
@@ -6926,10 +6959,10 @@ msg_type 必填,值为 post
|
|
|
6926
6959
|
}, {
|
|
6927
6960
|
"tag": "text",
|
|
6928
6961
|
"text": "描述:",
|
|
6929
|
-
"
|
|
6962
|
+
"style": ["bold"]
|
|
6930
6963
|
}, {
|
|
6931
6964
|
"tag": "text",
|
|
6932
|
-
"text":
|
|
6965
|
+
"text": {{printf "%q" (print .Description)}}
|
|
6933
6966
|
}],{{end}}
|
|
6934
6967
|
{{if gt (len .Responders) 0}}[{
|
|
6935
6968
|
"tag": "text",
|
|
@@ -6937,10 +6970,10 @@ msg_type 必填,值为 post
|
|
|
6937
6970
|
}, {
|
|
6938
6971
|
"tag": "text",
|
|
6939
6972
|
"text": "处理人员:",
|
|
6940
|
-
"
|
|
6973
|
+
"style": ["bold"]
|
|
6941
6974
|
}, {
|
|
6942
6975
|
"tag": "text",
|
|
6943
|
-
"text": "{{range .Responders}}@{{.PersonName}} {{end}}
|
|
6976
|
+
"text": "{{range .Responders}}@{{.PersonName}} {{end}}"
|
|
6944
6977
|
}],{{end}}
|
|
6945
6978
|
[{
|
|
6946
6979
|
"tag": "a",
|
|
@@ -6954,6 +6987,20 @@ msg_type 必填,值为 post
|
|
|
6954
6987
|
"href": "{{.DetailUrl}}?ack=1",
|
|
6955
6988
|
"text": "认领"
|
|
6956
6989
|
}]
|
|
6990
|
+
{{if or .IsFlapping .IsInStorm}},{{end}}
|
|
6991
|
+
{{if .IsFlapping}}
|
|
6992
|
+
[{
|
|
6993
|
+
"tag": "text",
|
|
6994
|
+
"text": "\\n 🔴 当前故障频繁发生与恢复,{{if .Flapping.MuteMinutes}}未来{{.Flapping.MuteMinutes}}分钟内此告警重复触发将不再通知。{{end}}建议您优化告警策略。"
|
|
6995
|
+
}]
|
|
6996
|
+
{{end}}
|
|
6997
|
+
{{if and .IsFlapping .IsInStorm}},{{end}}
|
|
6998
|
+
{{if .IsInStorm}}
|
|
6999
|
+
,[{
|
|
7000
|
+
"tag": "text",
|
|
7001
|
+
"text": "\\n 🔴 当前故障已聚合{{.AlertCnt}}条告警,触发告警风暴,请加急处理!"
|
|
7002
|
+
}]
|
|
7003
|
+
{{end}}
|
|
6957
7004
|
]
|
|
6958
7005
|
}
|
|
6959
7006
|
}
|
|
@@ -7088,94 +7135,100 @@ msg_type 必填,值为 post
|
|
|
7088
7135
|
- 如果不设置自定义内容,将采用系统默认模板,仅展示关键信息:
|
|
7089
7136
|
|
|
7090
7137
|
\`\`\`json
|
|
7091
|
-
{
|
|
7092
|
-
|
|
7138
|
+
{
|
|
7139
|
+
"head": {
|
|
7140
|
+
"text": "{{fireReason .}}INC [#{{.Num}}] {{.Title}}",
|
|
7141
|
+
"style": {
|
|
7142
|
+
"bold": true,
|
|
7143
|
+
"italic": false,
|
|
7144
|
+
"color": "{{$s := serverityToColor .IncidentSeverity}}{{$s}}"
|
|
7145
|
+
}
|
|
7146
|
+
},
|
|
7147
|
+
"body": [
|
|
7148
|
+
{
|
|
7149
|
+
"type": "message",
|
|
7150
|
+
"text": {{printf "%q" (print "协作空间:" .ChannelName)}},
|
|
7093
7151
|
"style": {
|
|
7094
|
-
"bold":
|
|
7152
|
+
"bold": false,
|
|
7153
|
+
"italic": false
|
|
7154
|
+
}
|
|
7155
|
+
},
|
|
7156
|
+
{
|
|
7157
|
+
"type": "message",
|
|
7158
|
+
"text": "严重程度:{{.IncidentSeverity}}",
|
|
7159
|
+
"style": {
|
|
7160
|
+
"bold": false,
|
|
7095
7161
|
"italic": false,
|
|
7096
|
-
"color": "{{$s := serverityToColor .IncidentSeverity}}{{
|
|
7162
|
+
"color": "{{$s := serverityToColor .IncidentSeverity}}{{$s}}"
|
|
7097
7163
|
}
|
|
7098
7164
|
},
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
"
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
"type": "message",
|
|
7110
|
-
"text": "严重程度:{{.IncidentSeverity}}",
|
|
7111
|
-
"style": {
|
|
7112
|
-
"bold": false,
|
|
7113
|
-
"italic": false,
|
|
7114
|
-
"color": "{{$s := serverityToColor .IncidentSeverity}}{{toHtml $s}}"
|
|
7115
|
-
}
|
|
7116
|
-
},
|
|
7117
|
-
{
|
|
7118
|
-
"type": "message",
|
|
7119
|
-
"text": "持续时长:{{ago .StartTime}}{{if gt .AlertCnt 1}}",
|
|
7120
|
-
"style": {
|
|
7121
|
-
"bold": false,
|
|
7122
|
-
"italic": false
|
|
7123
|
-
}
|
|
7124
|
-
},
|
|
7125
|
-
{
|
|
7126
|
-
"type": "message",
|
|
7127
|
-
"text": "聚合告警:{{.AlertCnt}}条{{end}}{{if .Labels.resource}}",
|
|
7128
|
-
"style": {
|
|
7129
|
-
"bold": false,
|
|
7130
|
-
"italic": false
|
|
7131
|
-
}
|
|
7132
|
-
},
|
|
7133
|
-
{
|
|
7134
|
-
"type": "message",
|
|
7135
|
-
"text": "告警对象:{{.Labels.resource}}{{end}}{{if .Description}}",
|
|
7136
|
-
"style": {
|
|
7137
|
-
"bold": false,
|
|
7138
|
-
"italic": false
|
|
7139
|
-
}
|
|
7140
|
-
},
|
|
7141
|
-
{
|
|
7165
|
+
{
|
|
7166
|
+
"type": "message",
|
|
7167
|
+
"text": "{{if .AlertCnt}}聚合告警:{{.AlertCnt}}条{{end}}",
|
|
7168
|
+
"style": {
|
|
7169
|
+
"bold": false,
|
|
7170
|
+
"italic": false
|
|
7171
|
+
}
|
|
7172
|
+
},
|
|
7173
|
+
{{if .Labels.resource}}
|
|
7174
|
+
{
|
|
7142
7175
|
"type": "message",
|
|
7143
|
-
"text":
|
|
7176
|
+
"text": {{printf "%q" (print "告警对象:" (joinAlertLabels . "resource" ", "))}},
|
|
7144
7177
|
"style": {
|
|
7145
7178
|
"bold": false,
|
|
7146
7179
|
"italic": false
|
|
7147
7180
|
}
|
|
7148
|
-
|
|
7149
|
-
|
|
7181
|
+
},
|
|
7182
|
+
{{end}}{{if .Labels.body_text}}
|
|
7183
|
+
{
|
|
7150
7184
|
"type": "message",
|
|
7151
|
-
"text":
|
|
7185
|
+
"text": {{printf "%q" (print "故障描述:" .Labels.body_text)}},
|
|
7152
7186
|
"style": {
|
|
7153
7187
|
"bold": false,
|
|
7154
7188
|
"italic": false
|
|
7155
7189
|
}
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
"
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
},
|
|
7170
|
-
{
|
|
7190
|
+
},
|
|
7191
|
+
{{else if .Description}}
|
|
7192
|
+
{
|
|
7193
|
+
"type": "message",
|
|
7194
|
+
"text": {{printf "%q" (print "故障描述:" .Description)}},
|
|
7195
|
+
"style": {
|
|
7196
|
+
"bold": false,
|
|
7197
|
+
"italic": false
|
|
7198
|
+
}
|
|
7199
|
+
},
|
|
7200
|
+
{{end}}{{if gt (len .Responders) 0}}
|
|
7201
|
+
{
|
|
7202
|
+
"type": "message",
|
|
7203
|
+
"text": "处理人员:{{range .Responders}}@{{.PersonName}}{{end}}",
|
|
7204
|
+
"style": {
|
|
7205
|
+
"bold": false,
|
|
7206
|
+
"italic": false
|
|
7207
|
+
}
|
|
7208
|
+
},
|
|
7209
|
+
{{end}}
|
|
7210
|
+
{
|
|
7171
7211
|
"type": "message",
|
|
7172
|
-
"text": "
|
|
7173
|
-
"
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7212
|
+
"text": "查看详情",
|
|
7213
|
+
"link": {{printf "%q" .DetailUrl}}
|
|
7214
|
+
},
|
|
7215
|
+
{
|
|
7216
|
+
"type": "message",
|
|
7217
|
+
"text": "{{if .IsFlapping}}🔴 当前故障频繁发生与恢复,{{if .Flapping.MuteMinutes}}未来{{.Flapping.MuteMinutes}}分钟内此告警重复触发将不再通知。{{end}}建议您优化告警策略。{{end}}",
|
|
7218
|
+
"style": {
|
|
7219
|
+
"bold": true,
|
|
7220
|
+
"italic": false
|
|
7177
7221
|
}
|
|
7178
|
-
|
|
7222
|
+
},
|
|
7223
|
+
{
|
|
7224
|
+
"type": "message",
|
|
7225
|
+
"text": "{{if .IsInStorm}}🔴 当前故障已聚合{{.AlertCnt}}条告警,触发告警风暴,请加急处理!{{end}}",
|
|
7226
|
+
"style": {
|
|
7227
|
+
"bold": true,
|
|
7228
|
+
"italic": false
|
|
7229
|
+
}
|
|
7230
|
+
}
|
|
7231
|
+
]
|
|
7179
7232
|
}
|
|
7180
7233
|
\`\`\`
|
|
7181
7234
|
</div>
|