flashduty-knowledge-base 1.2.7 → 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/en.d.ts +2 -0
- package/dist/esm/en.js +226 -117
- package/dist/esm/zh.js +218 -108
- package/dist/iife/en.js +218 -109
- package/dist/iife/zh.js +205 -95
- package/dist/zh.d.ts +2 -0
- package/package.json +1 -1
package/dist/esm/zh.js
CHANGED
|
@@ -1834,7 +1834,7 @@ Azure Monitor 到 Flashduty 告警等级映射关系:
|
|
|
1834
1834
|
| Sev4 | Info | 提醒 |
|
|
1835
1835
|
|
|
1836
1836
|
</div>
|
|
1837
|
-
`,
|
|
1837
|
+
`,p=`---
|
|
1838
1838
|
title: "百度云BCM监控集成"
|
|
1839
1839
|
description: "通过 webhook 的方式同步百度云 BCM 告警事件到 Flashduty,实现告警事件自动化降噪处理"
|
|
1840
1840
|
date: "2025-05-19T10:00:00+08:00"
|
|
@@ -1910,7 +1910,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/baidu-bcm-integration-guide"
|
|
|
1910
1910
|
| 通知 | Info | 提醒 |
|
|
1911
1911
|
|
|
1912
1912
|
</div>
|
|
1913
|
-
`,
|
|
1913
|
+
`,m=`---
|
|
1914
1914
|
title: "华为云监控 CES集成"
|
|
1915
1915
|
description: 通过 webhook 的方式同步华为云监控 CES 告警事件到 Flashduty,实现告警事件自动化降噪处理"
|
|
1916
1916
|
date: "2025-05-19T10:00:00+08:00"
|
|
@@ -4164,7 +4164,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/solarwinds-integration-guide"
|
|
|
4164
4164
|
|Info|Info|提醒|
|
|
4165
4165
|
|
|
4166
4166
|
</div>
|
|
4167
|
-
`,
|
|
4167
|
+
`,E=`---
|
|
4168
4168
|
title: "火山引擎云监控告警事件"
|
|
4169
4169
|
description: "通过 webhook 的方式同步火山引擎云监控告警事件到 Flashduty,实现告警事件自动化降噪处理"
|
|
4170
4170
|
date: "2024-08-20T10:00:00+08:00"
|
|
@@ -4255,7 +4255,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-metric-integration-gui
|
|
|
4255
4255
|
|通知|Info|提醒|
|
|
4256
4256
|
|
|
4257
4257
|
</div>
|
|
4258
|
-
`,
|
|
4258
|
+
`,N=`---
|
|
4259
4259
|
title: "火山引擎云监控事件中心告警事件"
|
|
4260
4260
|
description: "通过 webhook 的方式同步火山引擎云监控事件中心告警事件到 Flashduty,实现告警事件自动化降噪处理"
|
|
4261
4261
|
date: "2024-07-05T10:00:00+08:00"
|
|
@@ -4344,7 +4344,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-event-integration-guid
|
|
|
4344
4344
|
|通知|Info|提醒|
|
|
4345
4345
|
|
|
4346
4346
|
</div>
|
|
4347
|
-
|
|
4347
|
+
`,$=`---
|
|
4348
4348
|
title: "火山引擎日志服务 TLS 告警事件"
|
|
4349
4349
|
description: "通过 webhook 的方式同步火山引擎日志服务 TLS 告警事件到 Flashduty,实现告警事件自动化降噪处理"
|
|
4350
4350
|
date: "2024-07-05T10:00:00+08:00"
|
|
@@ -4481,7 +4481,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-tls-integration-guide"
|
|
|
4481
4481
|
|通知|Info|提醒|
|
|
4482
4482
|
|
|
4483
4483
|
</div>
|
|
4484
|
-
|
|
4484
|
+
`,W=`---
|
|
4485
4485
|
title: "Opmanager 告警事件"
|
|
4486
4486
|
description: "通过 webhook 的方式同步 Opmanager 告警事件到 Flashduty,实现告警事件自动化降噪处理"
|
|
4487
4487
|
date: "2024-07-05T10:00:00+08:00"
|
|
@@ -4943,7 +4943,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/zilliz-integration-guide"
|
|
|
4943
4943
|
|
|
4944
4944
|
</div>
|
|
4945
4945
|
|
|
4946
|
-
`,
|
|
4946
|
+
`,O=`---
|
|
4947
4947
|
title: "华为云 APM 告警事件"
|
|
4948
4948
|
description: "通过 webhook 的方式同步华为云 APM 告警事件到 Flashduty,实现告警事件自动化降噪处理"
|
|
4949
4949
|
date: "2024-07-05T10:00:00+08:00"
|
|
@@ -5051,7 +5051,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/huawei-apm-integration-guide"
|
|
|
5051
5051
|
|
|
5052
5052
|
</div>
|
|
5053
5053
|
|
|
5054
|
-
`,
|
|
5054
|
+
`,q=`---
|
|
5055
5055
|
title: "zstack 告警事件"
|
|
5056
5056
|
description: "通过 webhook 的方式同步 zstack 告警事件到 Flashduty,实现告警事件自动化降噪处理"
|
|
5057
5057
|
date: "2024-07-05T10:00:00+08:00"
|
|
@@ -5140,7 +5140,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/zstack-integration-guide"
|
|
|
5140
5140
|
|
|
5141
5141
|
</div>
|
|
5142
5142
|
|
|
5143
|
-
`,
|
|
5143
|
+
`,H=`---
|
|
5144
5144
|
title: "Keep 告警集成指引"
|
|
5145
5145
|
description: "通过 Keep 的 Provider 将告警事件推送到 Flashduty,实现告警事件自动化降噪处理。"
|
|
5146
5146
|
date: "2025-05-19T10:00:00+08:00"
|
|
@@ -5342,7 +5342,7 @@ flashduty_env: "dev"
|
|
|
5342
5342
|
# ------- FlashDuty ----------------
|
|
5343
5343
|
\`\`\`
|
|
5344
5344
|
|
|
5345
|
-
5.重启 ElastAlert,等待告警触发。`,
|
|
5345
|
+
5.重启 ElastAlert,等待告警触发。`,V=`---
|
|
5346
5346
|
title: "钉钉告警集成"
|
|
5347
5347
|
description: "在 Flashduty 生成唯一的钉钉机器人地址,通过钉钉的方式将告警的发生与恢复同步到 Flashduty"
|
|
5348
5348
|
date: "2025-05-19T10:00:00+08:00"
|
|
@@ -5425,7 +5425,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/dingtalk-alert-integration-guide"
|
|
|
5425
5425
|
|
|
5426
5426
|
当前钉钉告警集成推送到 Flashduty 的严重程度均为Warning。
|
|
5427
5427
|
|
|
5428
|
-
`,
|
|
5428
|
+
`,J=`---
|
|
5429
5429
|
title: "飞书告警集成"
|
|
5430
5430
|
description: "在 Flashduty 生成唯一的飞书机器人地址,通过飞书的方式将告警的发生与恢复同步到 Flashduty"
|
|
5431
5431
|
date: "2025-05-19T10:00:00+08:00"
|
|
@@ -5508,7 +5508,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/feishu-alert-integration-guide"
|
|
|
5508
5508
|
|
|
5509
5509
|
当前飞书告警集成推送到 Flashduty 的严重程度均为 Warning。
|
|
5510
5510
|
|
|
5511
|
-
`,
|
|
5511
|
+
`,G=`---
|
|
5512
5512
|
title: "自定义变更事件集成指引"
|
|
5513
5513
|
description: "通过标准协议推送自有系统变更事件到 Flashduty,大部分故障由变更导致,变更和告警事件联动有助于快速定位故障原因。"
|
|
5514
5514
|
date: "2025-05-19T10:00:00+08:00"
|
|
@@ -5923,7 +5923,8 @@ url: "https://docs.flashcat.cloud/zh/flashduty/dingtalk-integration-guide"
|
|
|
5923
5923
|
- 回到分派策略配置页面,刷新后重新选择群聊列表
|
|
5924
5924
|
- 如果仍然拿不到群聊列表,请尝试群内卸载酷应用后,重试以上步骤。如果还不可以,请联系客户或专属技术支持
|
|
5925
5925
|
|
|
5926
|
-
<img src="https://download.flashcat.cloud/dingtalk-
|
|
5926
|
+
<img src="https://download.flashcat.cloud/flashduty/doc/zh/fd/dingtalk-install-1.png" alt="drawing" width="800"/>
|
|
5927
|
+
<img src="https://download.flashcat.cloud/flashduty/doc/zh/fd/dingtalk-install-2.png" alt="drawing" width="800"/>
|
|
5927
5928
|
|
|
5928
5929
|
<img src="https://download.flashcat.cloud/dingtalk-self-app-notify-rule.png" alt="drawing" width="800"/>
|
|
5929
5930
|
|
|
@@ -7432,7 +7433,7 @@ msg_type 必填,值为 interactive
|
|
|
7432
7433
|
"fields": [{
|
|
7433
7434
|
"text": {
|
|
7434
7435
|
"tag": "lark_md",
|
|
7435
|
-
"content": "**🏢 协作空间:**{{
|
|
7436
|
+
"content": "**🏢 协作空间:**{{.ChannelName}}"
|
|
7436
7437
|
}
|
|
7437
7438
|
},
|
|
7438
7439
|
{
|
|
@@ -7444,34 +7445,46 @@ msg_type 必填,值为 interactive
|
|
|
7444
7445
|
{
|
|
7445
7446
|
"text": {
|
|
7446
7447
|
"tag": "lark_md",
|
|
7447
|
-
"content": "**⏰ 触发时间:**{{date "2006-01-02 15:04:05" .StartTime}}
|
|
7448
|
+
"content": "**⏰ 触发时间:**{{date "2006-01-02 15:04:05" .StartTime}}"
|
|
7448
7449
|
}
|
|
7449
7450
|
},
|
|
7451
|
+
{{if gt .AlertCnt 1}}
|
|
7450
7452
|
{
|
|
7451
7453
|
"text": {
|
|
7452
7454
|
"tag": "lark_md",
|
|
7453
|
-
"content": "**🔔 聚合告警:**{{.AlertCnt}}条
|
|
7455
|
+
"content": "**🔔 聚合告警:**{{.AlertCnt}}条"
|
|
7454
7456
|
}
|
|
7455
7457
|
},
|
|
7458
|
+
{{end}}{{if .Labels.resource}}
|
|
7456
7459
|
{
|
|
7457
7460
|
"tag": "div",
|
|
7458
7461
|
"text": {
|
|
7459
7462
|
"tag": "lark_md",
|
|
7460
|
-
"content": "**📌 告警对象:**
|
|
7463
|
+
"content": {{printf "%q" (print "**📌 告警对象:**" (joinAlertLabels . "resource" ","))}}
|
|
7461
7464
|
}
|
|
7462
7465
|
},
|
|
7466
|
+
{{end}}{{if .Description}}
|
|
7463
7467
|
{
|
|
7464
7468
|
"tag": "div",
|
|
7465
7469
|
"text": {
|
|
7466
7470
|
"tag": "lark_md",
|
|
7467
|
-
"content":
|
|
7471
|
+
"content": {{printf "%q" (print "**🔍 故障描述:**" .Description)}}
|
|
7468
7472
|
}
|
|
7469
7473
|
},
|
|
7474
|
+
{{end}}{{if gt (len .Responders) 0}}
|
|
7470
7475
|
{
|
|
7471
7476
|
"tag": "div",
|
|
7472
7477
|
"text": {
|
|
7473
7478
|
"tag": "lark_md",
|
|
7474
|
-
"content": "**👨💻 处理人员:**{{range .Responders}}@{{.PersonName}} {{end}}
|
|
7479
|
+
"content": "**👨💻 处理人员:**{{range .Responders}}@{{.PersonName}} {{end}}"
|
|
7480
|
+
}
|
|
7481
|
+
},
|
|
7482
|
+
{{end}}
|
|
7483
|
+
{
|
|
7484
|
+
"tag": "div",
|
|
7485
|
+
"text": {
|
|
7486
|
+
"tag": "lark_md",
|
|
7487
|
+
"content": ""
|
|
7475
7488
|
}
|
|
7476
7489
|
}
|
|
7477
7490
|
]
|
|
@@ -7500,7 +7513,28 @@ msg_type 必填,值为 interactive
|
|
|
7500
7513
|
"url": "{{.DetailUrl}}?ack=1"
|
|
7501
7514
|
}
|
|
7502
7515
|
]
|
|
7503
|
-
}
|
|
7516
|
+
}
|
|
7517
|
+
{{if or .IsFlapping .IsInStorm}},{{end}}
|
|
7518
|
+
{{if .IsFlapping}}
|
|
7519
|
+
{
|
|
7520
|
+
"tag": "div",
|
|
7521
|
+
"text": {
|
|
7522
|
+
"tag": "lark_md",
|
|
7523
|
+
"content": "🔴 当前故障频繁发生与恢复,{{if .Flapping.MuteMinutes}}未来{{.Flapping.MuteMinutes}}分钟内此告警重复触发将不再通知。{{end}}建议您优化告警策略。"
|
|
7524
|
+
}
|
|
7525
|
+
}
|
|
7526
|
+
{{end}}
|
|
7527
|
+
{{if and .IsFlapping .IsInStorm}},{{end}}
|
|
7528
|
+
{{if .IsInStorm}}
|
|
7529
|
+
{
|
|
7530
|
+
"tag": "div",
|
|
7531
|
+
"text": {
|
|
7532
|
+
"tag": "lark_md",
|
|
7533
|
+
"content": "🔴 当前故障已聚合{{.AlertCnt}}条告警,触发告警风暴,请加急处理!"
|
|
7534
|
+
}
|
|
7535
|
+
}
|
|
7536
|
+
{{end}}
|
|
7537
|
+
]
|
|
7504
7538
|
}
|
|
7505
7539
|
}
|
|
7506
7540
|
\`\`\`
|
|
@@ -7520,10 +7554,10 @@ msg_type 必填,值为 post
|
|
|
7520
7554
|
}, {
|
|
7521
7555
|
"tag": "text",
|
|
7522
7556
|
"text": "协作空间:",
|
|
7523
|
-
"
|
|
7557
|
+
"style": ["bold"]
|
|
7524
7558
|
}, {
|
|
7525
7559
|
"tag": "text",
|
|
7526
|
-
"text": "{{if .ChannelName}}{{.ChannelName}}{{else}}无{{end}}
|
|
7560
|
+
"text": "{{if .ChannelName}}{{.ChannelName}}{{else}}无{{end}}"
|
|
7527
7561
|
}],
|
|
7528
7562
|
[{
|
|
7529
7563
|
"tag": "text",
|
|
@@ -7531,11 +7565,10 @@ msg_type 必填,值为 post
|
|
|
7531
7565
|
}, {
|
|
7532
7566
|
"tag": "text",
|
|
7533
7567
|
"text": "严重程度:",
|
|
7534
|
-
"
|
|
7568
|
+
"style": ["bold"]
|
|
7535
7569
|
}, {
|
|
7536
7570
|
"tag": "text",
|
|
7537
|
-
"text": "{{.IncidentSeverity}}
|
|
7538
|
-
"text_type": "{{if eq .IncidentSeverity "Critical"}}bold{{end}}"
|
|
7571
|
+
"text": "{{.IncidentSeverity}}"
|
|
7539
7572
|
}],
|
|
7540
7573
|
[{
|
|
7541
7574
|
"tag": "text",
|
|
@@ -7543,10 +7576,10 @@ msg_type 必填,值为 post
|
|
|
7543
7576
|
}, {
|
|
7544
7577
|
"tag": "text",
|
|
7545
7578
|
"text": "触发时间:",
|
|
7546
|
-
"
|
|
7579
|
+
"style": ["bold"]
|
|
7547
7580
|
}, {
|
|
7548
7581
|
"tag": "text",
|
|
7549
|
-
"text": "{{date "2006-01-02 15:04:05" .StartTime}}
|
|
7582
|
+
"text": "{{date "2006-01-02 15:04:05" .StartTime}}"
|
|
7550
7583
|
}],
|
|
7551
7584
|
{{if gt .AlertCnt 1}}[{
|
|
7552
7585
|
"tag": "text",
|
|
@@ -7554,10 +7587,10 @@ msg_type 必填,值为 post
|
|
|
7554
7587
|
}, {
|
|
7555
7588
|
"tag": "text",
|
|
7556
7589
|
"text": "聚合告警:",
|
|
7557
|
-
"
|
|
7590
|
+
"style": ["bold"]
|
|
7558
7591
|
}, {
|
|
7559
7592
|
"tag": "text",
|
|
7560
|
-
"text": "{{.AlertCnt}}
|
|
7593
|
+
"text": "{{.AlertCnt}}条"
|
|
7561
7594
|
}],{{end}}
|
|
7562
7595
|
{{if .Labels.resource}}[{
|
|
7563
7596
|
"tag": "text",
|
|
@@ -7565,10 +7598,10 @@ msg_type 必填,值为 post
|
|
|
7565
7598
|
}, {
|
|
7566
7599
|
"tag": "text",
|
|
7567
7600
|
"text": "告警对象:",
|
|
7568
|
-
"
|
|
7601
|
+
"style": ["bold"]
|
|
7569
7602
|
}, {
|
|
7570
7603
|
"tag": "text",
|
|
7571
|
-
"text":
|
|
7604
|
+
"text": {{printf "%q" (print (joinAlertLabels . "resource" ","))}}
|
|
7572
7605
|
}],{{end}}
|
|
7573
7606
|
{{if .Description}}[{
|
|
7574
7607
|
"tag": "text",
|
|
@@ -7576,10 +7609,10 @@ msg_type 必填,值为 post
|
|
|
7576
7609
|
}, {
|
|
7577
7610
|
"tag": "text",
|
|
7578
7611
|
"text": "描述:",
|
|
7579
|
-
"
|
|
7612
|
+
"style": ["bold"]
|
|
7580
7613
|
}, {
|
|
7581
7614
|
"tag": "text",
|
|
7582
|
-
"text":
|
|
7615
|
+
"text": {{printf "%q" (print .Description)}}
|
|
7583
7616
|
}],{{end}}
|
|
7584
7617
|
{{if gt (len .Responders) 0}}[{
|
|
7585
7618
|
"tag": "text",
|
|
@@ -7587,10 +7620,10 @@ msg_type 必填,值为 post
|
|
|
7587
7620
|
}, {
|
|
7588
7621
|
"tag": "text",
|
|
7589
7622
|
"text": "处理人员:",
|
|
7590
|
-
"
|
|
7623
|
+
"style": ["bold"]
|
|
7591
7624
|
}, {
|
|
7592
7625
|
"tag": "text",
|
|
7593
|
-
"text": "{{range .Responders}}@{{.PersonName}} {{end}}
|
|
7626
|
+
"text": "{{range .Responders}}@{{.PersonName}} {{end}}"
|
|
7594
7627
|
}],{{end}}
|
|
7595
7628
|
[{
|
|
7596
7629
|
"tag": "a",
|
|
@@ -7604,6 +7637,20 @@ msg_type 必填,值为 post
|
|
|
7604
7637
|
"href": "{{.DetailUrl}}?ack=1",
|
|
7605
7638
|
"text": "认领"
|
|
7606
7639
|
}]
|
|
7640
|
+
{{if or .IsFlapping .IsInStorm}},{{end}}
|
|
7641
|
+
{{if .IsFlapping}}
|
|
7642
|
+
[{
|
|
7643
|
+
"tag": "text",
|
|
7644
|
+
"text": "\\n 🔴 当前故障频繁发生与恢复,{{if .Flapping.MuteMinutes}}未来{{.Flapping.MuteMinutes}}分钟内此告警重复触发将不再通知。{{end}}建议您优化告警策略。"
|
|
7645
|
+
}]
|
|
7646
|
+
{{end}}
|
|
7647
|
+
{{if and .IsFlapping .IsInStorm}},{{end}}
|
|
7648
|
+
{{if .IsInStorm}}
|
|
7649
|
+
,[{
|
|
7650
|
+
"tag": "text",
|
|
7651
|
+
"text": "\\n 🔴 当前故障已聚合{{.AlertCnt}}条告警,触发告警风暴,请加急处理!"
|
|
7652
|
+
}]
|
|
7653
|
+
{{end}}
|
|
7607
7654
|
]
|
|
7608
7655
|
}
|
|
7609
7656
|
}
|
|
@@ -7738,94 +7785,100 @@ msg_type 必填,值为 post
|
|
|
7738
7785
|
- 如果不设置自定义内容,将采用系统默认模板,仅展示关键信息:
|
|
7739
7786
|
|
|
7740
7787
|
\`\`\`json
|
|
7741
|
-
{
|
|
7742
|
-
|
|
7788
|
+
{
|
|
7789
|
+
"head": {
|
|
7790
|
+
"text": "{{fireReason .}}INC [#{{.Num}}] {{.Title}}",
|
|
7791
|
+
"style": {
|
|
7792
|
+
"bold": true,
|
|
7793
|
+
"italic": false,
|
|
7794
|
+
"color": "{{$s := serverityToColor .IncidentSeverity}}{{$s}}"
|
|
7795
|
+
}
|
|
7796
|
+
},
|
|
7797
|
+
"body": [
|
|
7798
|
+
{
|
|
7799
|
+
"type": "message",
|
|
7800
|
+
"text": {{printf "%q" (print "协作空间:" .ChannelName)}},
|
|
7743
7801
|
"style": {
|
|
7744
|
-
"bold":
|
|
7802
|
+
"bold": false,
|
|
7803
|
+
"italic": false
|
|
7804
|
+
}
|
|
7805
|
+
},
|
|
7806
|
+
{
|
|
7807
|
+
"type": "message",
|
|
7808
|
+
"text": "严重程度:{{.IncidentSeverity}}",
|
|
7809
|
+
"style": {
|
|
7810
|
+
"bold": false,
|
|
7745
7811
|
"italic": false,
|
|
7746
|
-
"color": "{{$s := serverityToColor .IncidentSeverity}}{{
|
|
7812
|
+
"color": "{{$s := serverityToColor .IncidentSeverity}}{{$s}}"
|
|
7747
7813
|
}
|
|
7748
7814
|
},
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
"
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
"type": "message",
|
|
7760
|
-
"text": "严重程度:{{.IncidentSeverity}}",
|
|
7761
|
-
"style": {
|
|
7762
|
-
"bold": false,
|
|
7763
|
-
"italic": false,
|
|
7764
|
-
"color": "{{$s := serverityToColor .IncidentSeverity}}{{toHtml $s}}"
|
|
7765
|
-
}
|
|
7766
|
-
},
|
|
7767
|
-
{
|
|
7768
|
-
"type": "message",
|
|
7769
|
-
"text": "持续时长:{{ago .StartTime}}{{if gt .AlertCnt 1}}",
|
|
7770
|
-
"style": {
|
|
7771
|
-
"bold": false,
|
|
7772
|
-
"italic": false
|
|
7773
|
-
}
|
|
7774
|
-
},
|
|
7775
|
-
{
|
|
7776
|
-
"type": "message",
|
|
7777
|
-
"text": "聚合告警:{{.AlertCnt}}条{{end}}{{if .Labels.resource}}",
|
|
7778
|
-
"style": {
|
|
7779
|
-
"bold": false,
|
|
7780
|
-
"italic": false
|
|
7781
|
-
}
|
|
7782
|
-
},
|
|
7783
|
-
{
|
|
7784
|
-
"type": "message",
|
|
7785
|
-
"text": "告警对象:{{.Labels.resource}}{{end}}{{if .Description}}",
|
|
7786
|
-
"style": {
|
|
7787
|
-
"bold": false,
|
|
7788
|
-
"italic": false
|
|
7789
|
-
}
|
|
7790
|
-
},
|
|
7791
|
-
{
|
|
7815
|
+
{
|
|
7816
|
+
"type": "message",
|
|
7817
|
+
"text": "{{if .AlertCnt}}聚合告警:{{.AlertCnt}}条{{end}}",
|
|
7818
|
+
"style": {
|
|
7819
|
+
"bold": false,
|
|
7820
|
+
"italic": false
|
|
7821
|
+
}
|
|
7822
|
+
},
|
|
7823
|
+
{{if .Labels.resource}}
|
|
7824
|
+
{
|
|
7792
7825
|
"type": "message",
|
|
7793
|
-
"text":
|
|
7826
|
+
"text": {{printf "%q" (print "告警对象:" (joinAlertLabels . "resource" ", "))}},
|
|
7794
7827
|
"style": {
|
|
7795
7828
|
"bold": false,
|
|
7796
7829
|
"italic": false
|
|
7797
7830
|
}
|
|
7798
|
-
|
|
7799
|
-
|
|
7831
|
+
},
|
|
7832
|
+
{{end}}{{if .Labels.body_text}}
|
|
7833
|
+
{
|
|
7800
7834
|
"type": "message",
|
|
7801
|
-
"text":
|
|
7835
|
+
"text": {{printf "%q" (print "故障描述:" .Labels.body_text)}},
|
|
7802
7836
|
"style": {
|
|
7803
7837
|
"bold": false,
|
|
7804
7838
|
"italic": false
|
|
7805
7839
|
}
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
"
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
},
|
|
7820
|
-
{
|
|
7840
|
+
},
|
|
7841
|
+
{{else if .Description}}
|
|
7842
|
+
{
|
|
7843
|
+
"type": "message",
|
|
7844
|
+
"text": {{printf "%q" (print "故障描述:" .Description)}},
|
|
7845
|
+
"style": {
|
|
7846
|
+
"bold": false,
|
|
7847
|
+
"italic": false
|
|
7848
|
+
}
|
|
7849
|
+
},
|
|
7850
|
+
{{end}}{{if gt (len .Responders) 0}}
|
|
7851
|
+
{
|
|
7852
|
+
"type": "message",
|
|
7853
|
+
"text": "处理人员:{{range .Responders}}@{{.PersonName}}{{end}}",
|
|
7854
|
+
"style": {
|
|
7855
|
+
"bold": false,
|
|
7856
|
+
"italic": false
|
|
7857
|
+
}
|
|
7858
|
+
},
|
|
7859
|
+
{{end}}
|
|
7860
|
+
{
|
|
7821
7861
|
"type": "message",
|
|
7822
|
-
"text": "
|
|
7823
|
-
"
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7862
|
+
"text": "查看详情",
|
|
7863
|
+
"link": {{printf "%q" .DetailUrl}}
|
|
7864
|
+
},
|
|
7865
|
+
{
|
|
7866
|
+
"type": "message",
|
|
7867
|
+
"text": "{{if .IsFlapping}}🔴 当前故障频繁发生与恢复,{{if .Flapping.MuteMinutes}}未来{{.Flapping.MuteMinutes}}分钟内此告警重复触发将不再通知。{{end}}建议您优化告警策略。{{end}}",
|
|
7868
|
+
"style": {
|
|
7869
|
+
"bold": true,
|
|
7870
|
+
"italic": false
|
|
7827
7871
|
}
|
|
7828
|
-
|
|
7872
|
+
},
|
|
7873
|
+
{
|
|
7874
|
+
"type": "message",
|
|
7875
|
+
"text": "{{if .IsInStorm}}🔴 当前故障已聚合{{.AlertCnt}}条告警,触发告警风暴,请加急处理!{{end}}",
|
|
7876
|
+
"style": {
|
|
7877
|
+
"bold": true,
|
|
7878
|
+
"italic": false
|
|
7879
|
+
}
|
|
7880
|
+
}
|
|
7881
|
+
]
|
|
7829
7882
|
}
|
|
7830
7883
|
\`\`\`
|
|
7831
7884
|
</div>
|
|
@@ -7938,4 +7991,61 @@ msg_type 必填,值为 post
|
|
|
7938
7991
|
<img src="https://download.flashcat.cloud/flashduty/changelog/20230720/email_render.png" alt="drawing" style="display: block; margin: 0 auto;" width="500"/>
|
|
7939
7992
|
|
|
7940
7993
|
</div>
|
|
7941
|
-
`,dn
|
|
7994
|
+
`,dn=`---
|
|
7995
|
+
title: "Link 集成"
|
|
7996
|
+
description: "通过 Link 集成,可直接从故障属性、标签等信息中获取访问外部链接所需的关键参数,实现快速访问"
|
|
7997
|
+
date: "2025-05-19T10:00:00+08:00"
|
|
7998
|
+
url: "https://docs.flashcat.cloud/zh/flashduty/link-integration-guide"
|
|
7999
|
+
---
|
|
8000
|
+
|
|
8001
|
+
通过 Link 集成,可直接从故障属性、标签等信息中获取访问外部链接所需的关键参数,实现快速访问
|
|
8002
|
+
|
|
8003
|
+
## 配置说明
|
|
8004
|
+
|
|
8005
|
+
Link 集成功能支持从故障属性、标签等信息中提取关键参数,实现与外部系统的快速跳转。通过自动化填充和跳转,避免了手动输入,提高了问题定位与处理的效率。该功能适用于故障排查、性能监控和系统调试等场景,有助于优化运维流程,提升响应速度与准确性
|
|
8006
|
+
|
|
8007
|
+
### 打开方式
|
|
8008
|
+
|
|
8009
|
+
#### 1. 弹窗
|
|
8010
|
+
在故障详情的当前页面中弹出窗口,保持原有界面状态,适合快速查看或操作后返回
|
|
8011
|
+
|
|
8012
|
+
#### 2. 新标签页
|
|
8013
|
+
在浏览器新标签中打开链接,适用于需要保留当前操作上下文并同时访问外部内容的场景
|
|
8014
|
+
|
|
8015
|
+
### URL 配置
|
|
8016
|
+
|
|
8017
|
+
URL的参数引用内容为标签时以 labels. 开头;引用内容为自定义字段时,以 fields. 开头;引用内容为故障属性时,直接引用即可,如 .title、.severity 等
|
|
8018
|
+
|
|
8019
|
+
#### 故障标签中获取
|
|
8020
|
+
支持通过 \${} 的方式从参数中动态取值,用于构造请求地址。例如参数值从故障标签(labels)中自动填充,无需手动输入:
|
|
8021
|
+
|
|
8022
|
+
\`\`\`
|
|
8023
|
+
https://cmdb.com/vm?sn=\${labels.sn}
|
|
8024
|
+
\`\`\`
|
|
8025
|
+
|
|
8026
|
+
在上述示例中,\${labels.sn} 表示将故障中的 sn 标签值动态注入至 URL 中。如果故障数据中包含 sn=VM123456,则最终请求地址为:
|
|
8027
|
+
|
|
8028
|
+
\`\`\`
|
|
8029
|
+
https://cmdb.com/vm?sn=VM123456
|
|
8030
|
+
\`\`\`
|
|
8031
|
+
|
|
8032
|
+
|
|
8033
|
+
#### 自定义字段中获取
|
|
8034
|
+
支持通过 \${} 的方式从参数中动态取值,用于构造请求地址。例如参数值从自定义字段(fields)中自动填充,无需手动输入:
|
|
8035
|
+
|
|
8036
|
+
\`\`\`
|
|
8037
|
+
https://cmdb.com/vm?sn=\${fields.sn}
|
|
8038
|
+
\`\`\`
|
|
8039
|
+
|
|
8040
|
+
在上述示例中,\${fields.sn} 表示将故障中的 sn 自定义字段值动态注入至 URL 中。如果自定义字段数据中包含 sn=VM123456,则最终请求地址为:
|
|
8041
|
+
|
|
8042
|
+
\`\`\`
|
|
8043
|
+
https://cmdb.com/vm?sn=VM123456
|
|
8044
|
+
\`\`\`
|
|
8045
|
+
|
|
8046
|
+
### 注意事项
|
|
8047
|
+
|
|
8048
|
+
1. 当引用的内容不存在时,Link 集成会正常生成对应的链接,但无法获取到值
|
|
8049
|
+
2. 同一个协作空间至多绑定三个 Link 集成
|
|
8050
|
+
3. 注意引用语法,如未按照要求进行书写引用变量,会导致无法正常获取对应值
|
|
8051
|
+
`,on={CustomAlert:n,Email:t,N9e:e,Prometheus:a,Grafana:i,Zabbix:s,UptimeKuma:l,AliyunARMS:d,AliyunCmEvent:o,AliyunCm:r,AliyunSLS:c,AWSCW:u,AzureMonitor:h,BaiDuBCM:p,HuaWeiCES:m,InfluxDB:g,OpenFalcon:y,PagerDuty:f,TencentBK:b,TencentCLS:v,TencentCm:w,TencentEb:_,OceanBase:k,Graylog:F,Skywalking:x,Sentry:T,Jiankongbao:A,AWSEventBridge:S,Dynatrace:C,HuaweiyunLTS:I,GoogleCM:L,Splunk:D,AppDynamics:P,SolarWinds:M,VolcEngineMetric:E,VolcEngineEvent:N,VolcEngineTLS:$,OpManager:W,Meraki:R,Zilliz:U,StateCloud:z,Guance:j,CustomChange:G,Jira:K,Lark:Z,Dingtalk:X,Wecom:Y,Slack:Q,MicrosoftTeams:nn,AlertWebhook:tn,IncidentWebhook:en,CustomAction:an,Templates:ln,HuaweiyunAPM:O,JiraSync:sn,ZStack:q,Keep:H,ElastAlert2:B,DingtalkAlert:V,FeishuAlert:J,Link:dn};module.exports=on;
|