flashduty-knowledge-base 1.3.5 → 1.3.7

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/iife/zh.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(n){"use strict";const e={CustomAlert:`---
1
+ (function(n){"use strict";const t={CustomAlert:`---
2
2
  title: "标准告警事件集成指引"
3
3
  description: "通过标准协议推送自有系统告警事件到 Flashduty,实现告警事件自动化降噪处理。"
4
4
  date: "2025-05-19T10:00:00+08:00"
@@ -81,11 +81,20 @@ POST, Content-Type:"application/json"
81
81
 
82
82
  字段|必含|类型|释义
83
83
  :-:|:-:|:-:|:---
84
- | title_rule | 是 | string | 告警标题,不超过\`512\`个字符,超出后将自动截断。<br><br>支持根据告警内容动态生成标题,生成规则请参考 [定制故障标题](https://docs.flashcat.cloud/zh/flashduty/customize-incident-attrs)。
84
+ | title_rule | 是 | string | 告警标题,不超过\`512\`个字符,超出后将自动截断。<br><br>支持根据告警内容动态生成标题,生成规则请参考 [定制故障标题](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-pipelines)。
85
85
  | event_status | 是 | string | 告警状态。<br><br>枚举值(\`首字母大写\`):*Critical*:严重,*Warning*:警告,*Info*:提醒,*Ok*:恢复。<br><br>当指定为Ok时,意味着对告警进行自动恢复。
86
86
  | alert_key | 否 | string | 告警标识,用于对已经存在的告警进行更新或自动恢复。<br><br>您可以自定义此值,但不可超过\`255\`个字符。您也可以依赖系统自动生成,该值会在响应中返回。<br><br>如果您上报的是恢复事件,则此值必须存在。
87
87
  | description | 否 | string | 告警描述,不超过\`2048\`个字符,超出后将自动截断。
88
88
  | labels | 否 | map | 告警标签集合,key 为标签名称,value 为标签值:<br><br>1. 标签的 key 和 value 均为 string 类型,区分大小写。<br>2. 标签的 key 不要超过\`128\`个字符,遵循Prometheus标签命名规范。value 不超过\`2048\`个字符,超出后将自动截断。<br>3. 至多传入\`50\`个标签。\`标签内容参考\`[最佳实践](#最佳实践)。<br><br>示例:"resource": "171.26.23.22", "check": "api latency > 500ms"
89
+ | images | 否 | [][image](#image) | 图片数组,可用于前端或飞书和钉钉应用通知的图片展示。系统根据 alt 进行合并覆盖,相同(包括空字符)的alt只保留一条
90
+
91
+ #### image 结构体 <span id="image"></span>
92
+
93
+ 字段|必含|类型|释义
94
+ :-:|:-:|:-:|:---
95
+ | alt | 否 | string | 图片的替代文本, 长度限制 128 字符,超长截断。
96
+ | src | 是 | string | 图片来源,值:http/https 开头的图片链接地址 或 [图片上传接口](https://developer.flashcat.cloud/api-344943718)返回的image_key,长度限制 256 字符,超长会被丢弃
97
+ | href | 否 | string | 超链接引用路径,长度限制 256 字符,超长截断
89
98
 
90
99
  </div>
91
100
 
@@ -216,7 +225,7 @@ curl -X POST '{api_host}/event/push/alert/standard?integration_key={integration_
216
225
  3. 新的event可能由于匹配到排除、丢弃、抑制或静默规则,而被丢弃。
217
226
  4. 当新的event触发了新告警,则系统会进入第二层降噪检查,判断新告警是否可以被合并到某个活跃的故障中,如果可以,则只会并入已有的故障,而不会产生新故障。
218
227
 
219
- 更多内容请参考 [告警降噪](https://docs.flashcat.cloud/zh/flashduty/what-is-noise-reduction)。
228
+ 更多内容请参考 [告警降噪](https://docs.flashcat.cloud/zh/on-call/channel/noise-reduction)。
220
229
  </details>
221
230
 
222
231
  `,Email:`---
@@ -289,7 +298,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/email-integration-guide"
289
298
 
290
299
  配置示例:
291
300
 
292
- - 接收所有邮件,当邮件内容中包含 **RESOVED** 字样时,关闭告警,否则触发新告警;
301
+ - 接收所有邮件,当邮件内容中包含 **RESOLVED** 字样时,关闭告警,否则触发新告警;
293
302
  - Alert Key 从邮件标题中提取,规则为 **/(.\\*)/**。
294
303
 
295
304
  <img src="https://download.flashcat.cloud/flashduty/integration/email/send-mode.png" alt="drawing" width="800"/>
@@ -318,7 +327,7 @@ attachment_stripped = true
318
327
  ## 严重程度映射关系
319
328
  ---
320
329
 
321
- 当前邮件集成推送到 Flashduty 的告警等级均为Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/flashduty/alert-pipelines) 来自定义严重程度。
330
+ 当前邮件集成推送到 Flashduty 的告警等级均为Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-pipelines) 来自定义严重程度。
322
331
 
323
332
  `,N9e:`---
324
333
  title: "夜莺/FlahCat集成"
@@ -397,7 +406,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/nightingale-integration-guide"
397
406
  #### 步骤 1:添加通知媒介
398
407
 
399
408
  1. 登录您的 n9e 控制台,选择 告警管理 > 通知媒介,并点击新增。
400
- 2. 填写媒介名称和标识,选择 **FlashDuty** 类型,\`URL\` 填写 Flashduty 的 \`推送地址\`。
409
+ 2. 填写媒介名称和标识,选择 **Flashduty** 类型,\`URL\` 填写 Flashduty 的 \`推送地址\`。
401
410
  3. 点击 **保存** 后,完成。
402
411
 
403
412
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/zh/fd/n9e-1.png" />
@@ -406,7 +415,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/nightingale-integration-guide"
406
415
 
407
416
  1. 登录您的 n9e 控制台,选择 告警管理 > 通知规则,并点击新增或编辑已有的告警规则。
408
417
  2. 基础信息部分按需配置即可。
409
- 3. 在通知配置中选择上一步添加的 \`FlashDuty\` 通知媒介。
418
+ 3. 在通知配置中选择上一步添加的 \`Flashduty\` 通知媒介。
410
419
  4. 选择通过此规则生成的告警应发送到的协作空间(协作空间需提前在 [Flashduty](https://console.flashcat.cloud/channel) 中创建),其他按需选择。
411
420
  5. 点击 **保存** 后,完成。
412
421
 
@@ -415,7 +424,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/nightingale-integration-guide"
415
424
  #### 步骤 3:告警规则中选择通知规则
416
425
 
417
426
  1. 登录您的 n9e 控制台,选择 告警管理 > 告警规则,并点击新增或编辑已有的告警规则。
418
- 2. 在通知配置中选择上一步添加的 \`FlashDuty\` 通知规则,其他按需选择。
427
+ 2. 在通知配置中选择上一步添加的 \`Flashduty\` 通知规则,其他按需选择。
419
428
  3. 点击 **保存** 后,完成。
420
429
 
421
430
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/zh/fd/n9e-3.png" />
@@ -907,7 +916,7 @@ media type 必须关联至某个 user 才能发送事件。user 至少拥有对
907
916
  1. 登录 Zabbix 控制台,选择 \`Users > Users\`,选择 Admin 用户,选择 media,选择 Add,进入编辑窗口:
908
917
 
909
918
  - Type: 选择以上创建的快猫星云 media type
910
- - Send To:填写 FlashDuty
919
+ - Send To:填写 Flashduty
911
920
  - 其他配置使用默认配置,保持不变
912
921
 
913
922
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/zabbix-3.png" />
@@ -925,7 +934,7 @@ media type 必须关联至某个 user 才能发送事件。user 至少拥有对
925
934
 
926
935
  1. 点击 \`Create action\`,进入 action 编辑页面
927
936
 
928
- - Name:填写为“Send To FlashDuty
937
+ - Name:填写为“Send To Flashduty
929
938
 
930
939
  2. 选择 \`Operations\`,分别添加三种场景的通知发送配置:
931
940
 
@@ -1017,7 +1026,7 @@ media type 必须关联至某个 user 才能发送事件。user 至少拥有对
1017
1026
 
1018
1027
  1. 点击 \`Create action\`,进入 action 编辑页面
1019
1028
 
1020
- - Name:填写为“Send To FlashDuty
1029
+ - Name:填写为“Send To Flashduty
1021
1030
 
1022
1031
  2. 选择 \`Operations\`,分别添加三种场景的通知发送配置:
1023
1032
 
@@ -1063,7 +1072,7 @@ media type 必须关联至某个 user 才能发送事件。user 至少拥有对
1063
1072
  - \`{ALERT.SUBJECT}\`:告警标题,保持在第一个参数
1064
1073
  - \`{ALERT.MESSAGE}\`:告警信息,保持在第二个参数
1065
1074
 
1066
- - \`FlashDuty webhook 推送请求地址\`,复制集成的推送地址即可,保持在第三个参数
1075
+ - \`Flashduty webhook 推送请求地址\`,复制集成的推送地址即可,保持在第三个参数
1067
1076
  - \`Zabbix 控制台地址\`,直接复制即可(如果您的页面配置了 tomcat/nginx 转发路径,请同时携带),用于生成告警详情页面连接。如果没有空着即可,保持在第四个参数
1068
1077
  - \`HTTPProxy\`:如果您的 Zabbix Server 不能直接访问快猫星云服务,可以将该参数设置为一个代理地址。如果没有空着即可,保持在第五个参数
1069
1078
 
@@ -1117,7 +1126,7 @@ media type 必须关联至某个 user 才能发送事件。user 至少拥有对
1117
1126
 
1118
1127
  1. 点击\`Create action\`,进入 action 编辑页面
1119
1128
 
1120
- - Name:填写为“Send To FlashDuty
1129
+ - Name:填写为“Send To Flashduty
1121
1130
 
1122
1131
  2. 选择 \`Operations\`,分别更新三种场景的通知用户配置:
1123
1132
 
@@ -1132,11 +1141,11 @@ media type 必须关联至某个 user 才能发送事件。user 至少拥有对
1132
1141
 
1133
1142
  3. 选择 \`Operations\`,分别更新三种场景的通知内容配置:
1134
1143
 
1135
- - **在 Default Message 配置项,完整复制以下内容,粘贴在默认内容之后**,FlashDuty 收到事件后将解析对应文字,找到告警属性信息:
1144
+ - **在 Default Message 配置项,完整复制以下内容,粘贴在默认内容之后**,Flashduty 收到事件后将解析对应文字,找到告警属性信息:
1136
1145
 
1137
1146
  \`\`\`
1138
1147
 
1139
- -----FlashDuty Required Starts-----event_severity={TRIGGER.SEVERITY}||event_name={TRIGGER.NAME}||event_id={EVENT.ID}||event_tags={EVENT.TAGS}||event_ack={EVENT.ACK.STATUS}||event_value={EVENT.VALUE}||trigger_id={TRIGGER.ID}||trigger_desc={TRIGGER.DESCRIPTION}||trigger_expr={TRIGGER.EXPRESSION}||host_group={TRIGGER.HOSTGROUP.NAME}||host_ip={HOST.IP}||host_name={HOST.NAME}||item_name={ITEM.NAME}||item_value={ITEM.VALUE}-----FlashDuty Required Ends-----
1148
+ -----Flashduty Required Starts-----event_severity={TRIGGER.SEVERITY}||event_name={TRIGGER.NAME}||event_id={EVENT.ID}||event_tags={EVENT.TAGS}||event_ack={EVENT.ACK.STATUS}||event_value={EVENT.VALUE}||trigger_id={TRIGGER.ID}||trigger_desc={TRIGGER.DESCRIPTION}||trigger_expr={TRIGGER.EXPRESSION}||host_group={TRIGGER.HOSTGROUP.NAME}||host_ip={HOST.IP}||host_name={HOST.NAME}||item_name={ITEM.NAME}||item_value={ITEM.VALUE}-----Flashduty Required Ends-----
1140
1149
 
1141
1150
  \`\`\`
1142
1151
 
@@ -1230,7 +1239,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/uptime-kuma-integration-guide"
1230
1239
  **步骤 1:设置通知渠道**
1231
1240
 
1232
1241
  1. 进入 \`Settings -> Notifications\` 页面,单击 Setup 进行编辑,如下图所示;
1233
- 2. \`Notification Type\` 选择 \`FlashDuty( Flashduty )\`;
1242
+ 2. \`Notification Type\` 选择 \`Flashduty( Flashduty )\`;
1234
1243
  3. \`Integration Key\` 复制写入集成推送地址中的 integration_key 参数值;
1235
1244
  4. \`Severity\` 为严重程度,按需选择;
1236
1245
  5. 提交保存
@@ -1243,7 +1252,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/uptime-kuma-integration-guide"
1243
1252
 
1244
1253
  1. 点击 \`Add New Monitor\` 或编辑已有的监控项,按需完成监控配置;
1245
1254
  2. 如图,右侧 \`Notifications\` 部分启用上一步创建的通知方式;
1246
- 3. 如需设置标签,可以添加 \`Tags\`,注意仅同时存在 Key/Value 的标签才会推送到 FlashDuty
1255
+ 3. 如需设置标签,可以添加 \`Tags\`,注意仅同时存在 Key/Value 的标签才会推送到 Flashduty
1247
1256
  4. 提交保存,等待告警触发。
1248
1257
 
1249
1258
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/integration/uptime-kuma/monitor.png" />
@@ -1647,7 +1656,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/aliyun-sls-integration-guide"
1647
1656
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/integration/aliyun-sls/aliyun-sls-update-alert-rule.jpg" />
1648
1657
 
1649
1658
  4. 点击\`确定\`按钮,提交保存
1650
- 5. 针对所有其他规则,重复上述步骤,可以将全部告警推送到 FlashDuty
1659
+ 5. 针对所有其他规则,重复上述步骤,可以将全部告警推送到 Flashduty
1651
1660
 
1652
1661
  </div>
1653
1662
 
@@ -1719,10 +1728,10 @@ url: "https://docs.flashcat.cloud/zh/flashduty/aws-cloudwatch-integration-guide"
1719
1728
 
1720
1729
  1. 登录您的 AWS 控制台,检索 \`Simple Notification Service\` 产品,并进入对应产品控制台
1721
1730
  2. 进入 \`Topics\` 页面,单击 \`Create topic\` 按钮,开始创建主题
1722
- 3. \`Type\` 选择 \`Standard\`,填写名称为 \`FlashDuty\`
1731
+ 3. \`Type\` 选择 \`Standard\`,填写名称为 \`Flashduty\`
1723
1732
  4. 点击 \`Create Topic\` 按钮,完成主题创建
1724
1733
  5. 进入 \`Subscriptions\` 页面,单击 \`Create subscription\` 按钮,为主题创建订阅
1725
- 6. \`Topic ARN\` 选择 \`FlashDuty\`,\`Protocal\` 选择 \`HTTPS\`,\`Endpoint\` 填写集成的推送地址(当前页面填写集成名称,保存后即可生成地址)
1734
+ 6. \`Topic ARN\` 选择 \`Flashduty\`,\`Protocal\` 选择 \`HTTPS\`,\`Endpoint\` 填写集成的推送地址(当前页面填写集成名称,保存后即可生成地址)
1726
1735
  7. 点击 \`Create subscription\` 按钮,完成订阅创建
1727
1736
 
1728
1737
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/aws-cloudwatch-subscribe.png" />
@@ -1730,7 +1739,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/aws-cloudwatch-integration-guide"
1730
1739
  8. 回到 \`Subscriptions\` 页面,当订阅状态为 \`Confirmed\`,说明订阅地址校验成功,否则请联系 Flashduty
1731
1740
  9. 检索 \`CloudWatch\` 产品,并进入对应产品控制台
1732
1741
  10. 进入 \`All alrams\` 页面,选择创建或编辑已有的告警策略
1733
- 11. 对于 \`Notification\` 这一步,\`In alarm\`、\`OK\` 和 \`Insufficient data\` 三种状态推送目标 \`SNS topic\` 均选择 \`FlashDuty\`,如下图所示:
1742
+ 11. 对于 \`Notification\` 这一步,\`In alarm\`、\`OK\` 和 \`Insufficient data\` 三种状态推送目标 \`SNS topic\` 均选择 \`Flashduty\`,如下图所示:
1734
1743
 
1735
1744
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/aws-cloudwatch-alram.png" />
1736
1745
 
@@ -1968,7 +1977,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/huawei-ces-integration-guide"
1968
1977
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/huawei-ces-create-notify-obj.png" />
1969
1978
 
1970
1979
  5. 进入 \`告警-告警通知-通知组\` 页面,单击 \`创建通知组\` 按钮
1971
- 6. 组名称填写 \`FlashDuty\`,通知对象勾选前边创建的 \`flashduty\`
1980
+ 6. 组名称填写 \`Flashduty\`,通知对象勾选前边创建的 \`flashduty\`
1972
1981
  7. 点击 \`确定\` 按钮,完成通知组创建
1973
1982
 
1974
1983
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/huawei-ces-create-notify-group.png" />
@@ -1976,7 +1985,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/huawei-ces-integration-guide"
1976
1985
  注意,创建通知组时,华为云会发起请求到 Flashduty,验证推送地址,查看通知组的通知对象列表,仅当通知对象状态为 \`已确认\` 时,才会正常推送告警
1977
1986
 
1978
1987
  8. 进入 \`告警-告警规则\` 页面,选择已有的告警规则进行编辑,或者创建新的告警规则,打开 \`告警规则详情\` 页面
1979
- 9. 其中 \`通知组\` 选择 \`FlashDuty\`,触发条件勾选 \`出现告警\` 和 \`恢复正常\`。点击 \`确定\` 按钮,保存修改
1988
+ 9. 其中 \`通知组\` 选择 \`Flashduty\`,触发条件勾选 \`出现告警\` 和 \`恢复正常\`。点击 \`确定\` 按钮,保存修改
1980
1989
 
1981
1990
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/huawei-ces-create-alarm.png" />
1982
1991
 
@@ -2062,7 +2071,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/influxdata-integration-guide"
2062
2071
  #### 步骤1:创建告警通道
2063
2072
  1. 登录您的 \`Influxdata\` 控制台,进去 \`Alerts > Notifycation Endpoints\` 页面。
2064
2073
  2. 点击 \`Create\` 创建告警通知通道。
2065
- 3. \`Destination\` 选择 \`HTTP\`,\`Name\` 输入 \`FlashDuty\`。
2074
+ 3. \`Destination\` 选择 \`HTTP\`,\`Name\` 输入 \`Flashduty\`。
2066
2075
  4. \`HTTP Method\` 选择 \`POST\`,\`URL\` 输入集成的推送地址。
2067
2076
 
2068
2077
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/influxdb-1.png" />
@@ -2071,7 +2080,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/influxdata-integration-guide"
2071
2080
  1. 登录您的 \`Influxdata\` 控制台,进去 \`Alerts > Notifycation Rules\` 页面。
2072
2081
  2. 点击 \`Create\` 创建告警通知规则。
2073
2082
  3. \`About\` 和 \`Conditions\` 按需配置即可。
2074
- 4. \`Message\` 选择步骤1创建的 \`FlashDuty\`。
2083
+ 4. \`Message\` 选择步骤1创建的 \`Flashduty\`。
2075
2084
 
2076
2085
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/influxdb-2.png" />
2077
2086
 
@@ -2339,7 +2348,7 @@ filter:
2339
2348
  query_string:
2340
2349
  query: "created_at:*"
2341
2350
 
2342
- # ------- FlashDuty ----------------
2351
+ # ------- Flashduty ----------------
2343
2352
  alert: pagerduty
2344
2353
  pagerduty_service_key: xxx
2345
2354
  pagerduty_client_name: wahaha
@@ -2349,7 +2358,7 @@ pagerduty_v2_payload_component: mysql
2349
2358
  pagerduty_v2_payload_group: app-stack
2350
2359
  pagerduty_v2_payload_severity: error
2351
2360
  pagerduty_v2_payload_source: mysql.host.name
2352
- # ------- FlashDuty ----------------
2361
+ # ------- Flashduty ----------------
2353
2362
  \`\`\`
2354
2363
 
2355
2364
  4. 步骤 4:重启 ElastAlert,等待告警触发
@@ -2406,7 +2415,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/tencent-bk-integration-guide"
2406
2415
  ---
2407
2416
  以下内容已经在\`蓝鲸V6/7版本\`完成验证,V5 及以下版本官方已不再支持,建议您升级。
2408
2417
 
2409
- 蓝鲸告警策略可以触发\`处理套餐\`,处理套餐可与周边系统打通,来完成复杂功能。我们首先创建一个处理套餐,配置 FlashDuty 的回调地址,然后编辑告警策略,关联动作到该处理套餐,实现告警变更自动推送到 FlashDuty。具体步骤如下:
2418
+ 蓝鲸告警策略可以触发\`处理套餐\`,处理套餐可与周边系统打通,来完成复杂功能。我们首先创建一个处理套餐,配置 Flashduty 的回调地址,然后编辑告警策略,关联动作到该处理套餐,实现告警变更自动推送到 Flashduty。具体步骤如下:
2410
2419
 
2411
2420
  #### 步骤 1、创建处理套餐
2412
2421
 
@@ -2414,7 +2423,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/tencent-bk-integration-guide"
2414
2423
 
2415
2424
  1. 登录您的蓝鲸智云桌面,进入\`监控平台\`;
2416
2425
  2. 进入\`配置-处理套餐\`页面,单击\`添加套餐\`按钮,开始创建处理套餐;
2417
- 3. 填写名称为\`Send To FlashDuty\`,套餐类型选择\`HTTP回调\`,推送方式选择\`POST\`,并填写集成的推送地址(保存集成后获得),如下图所示:
2426
+ 3. 填写名称为\`Send To Flashduty\`,套餐类型选择\`HTTP回调\`,推送方式选择\`POST\`,并填写集成的推送地址(保存集成后获得),如下图所示:
2418
2427
 
2419
2428
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/integration/tencent-bk/create_package.jpg" />
2420
2429
 
@@ -2432,12 +2441,12 @@ url: "https://docs.flashcat.cloud/zh/flashduty/tencent-bk-integration-guide"
2432
2441
  <div class="md-block">
2433
2442
 
2434
2443
  1. 进入\`配置-告警策略\`页面,选择一个已有的策略进行编辑,或新建一个告警策略;
2435
- 2. 下拉到\`告警处理\`部分,三种场景均选择\`Send To FlashDuty\`处理套餐,并关闭\`防御规则\`,如下图:
2444
+ 2. 下拉到\`告警处理\`部分,三种场景均选择\`Send To Flashduty\`处理套餐,并关闭\`防御规则\`,如下图:
2436
2445
 
2437
2446
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/integration/tencent-bk/update_alert_rule.jpg" />
2438
2447
 
2439
2448
  3. 提交保存,完成;
2440
- 4. 对于其他想要推送到 FlashDuty 的告警,重复以上步骤。
2449
+ 4. 对于其他想要推送到 Flashduty 的告警,重复以上步骤。
2441
2450
 
2442
2451
  </div>
2443
2452
 
@@ -2577,7 +2586,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/tencent-cls-integration-guide"
2577
2586
  "record_group_id": "{{escape .RecordGroupId}}",
2578
2587
  "detail_url": "{{escape .DetailUrl}}",
2579
2588
  "query_url": "{{escape .QueryUrl}}",
2580
- "message": {{.Message}},
2589
+ "message": "{{.Message}}",
2581
2590
  "query_result": {{.QueryResult}},
2582
2591
  "query_log": {{.QueryLog}},
2583
2592
  "analysis_result": {{.AnalysisResult}}
@@ -2727,7 +2736,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/tencent-event-bridge-integration-
2727
2736
 
2728
2737
  1. 登录您的腾讯云控制台,选择事件总线产品
2729
2738
  2. 进入 事件规则 页面,单击 新建 按钮,开始编辑规则
2730
- 3. 填写名称为 FlashDuty,如下图所示:
2739
+ 3. 填写名称为 Flashduty,如下图所示:
2731
2740
 
2732
2741
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/tencent-eb-new-rule.png" />
2733
2742
 
@@ -2830,12 +2839,12 @@ url: "https://docs.flashcat.cloud/zh/flashduty/oceanbase-integration-guide"
2830
2839
 
2831
2840
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/oceanbase-1.png" />
2832
2841
 
2833
- 5. 配置通道中复制以下脚本内容,同时**请将脚本中的 integration_key 参数补充上 FlashDuty 推送地址中的 integration_key 值**。
2842
+ 5. 配置通道中复制以下脚本内容,同时**请将脚本中的 integration_key 参数补充上 Flashduty 推送地址中的 integration_key 值**。
2834
2843
 
2835
2844
  \`\`\`
2836
2845
  #!/usr/bin/env bash
2837
2846
 
2838
- function sendToFlashDuty() {
2847
+ function sendToFlashduty() {
2839
2848
  URL="\${address}/event/push/alert/standard?integration_key=\${integration_key}"
2840
2849
  curl -s -X POST \${URL} -H 'Content-Type: application/json' -d '{
2841
2850
  "event_status": "'\${alert_level}'",
@@ -2905,7 +2914,7 @@ fi
2905
2914
 
2906
2915
  #只有状态是告警中或恢复告警才发通知,屏蔽或抑制的不发通知
2907
2916
  if [[ \${statusMd5} == \${active} || \${statusMd5} == \${Inactive} ]];then
2908
- sendToFlashDuty
2917
+ sendToFlashduty
2909
2918
  fi
2910
2919
  \`\`\`
2911
2920
 
@@ -2944,7 +2953,7 @@ OCP告警通知-单条告警
2944
2953
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/oceanbase-2.png" />
2945
2954
 
2946
2955
  3. 推送语言选择 **简体中文**。
2947
- 4. 告警通道选择 **FlashDuty** 。
2956
+ 4. 告警通道选择 **Flashduty** 。
2948
2957
  5. 开启 **恢复通知**。
2949
2958
  6. 提交。
2950
2959
 
@@ -2960,22 +2969,7 @@ OCP告警通知-单条告警
2960
2969
  |OceanBase| Flashduty|状态|
2961
2970
  |---|---|---|
2962
2971
  |停服|Critical|严重|
2963
- |严重|Warning|严重|
2964
- |警告|Warning|警告|
2965
- |注意|Info|提醒|
2966
- |提醒|Info|提醒|
2967
-
2968
- </div>
2969
-
2970
-
2971
- ## 状态对照
2972
- ---
2973
- <div class="md-block">
2974
-
2975
- |OceanBase| Flashduty|状态|
2976
- |---|---|---|
2977
- |停服|Critical|严重|
2978
- |严重|Warning|严重|
2972
+ |严重|Critical|严重|
2979
2973
  |警告|Warning|警告|
2980
2974
  |注意|Info|提醒|
2981
2975
  |提醒|Info|提醒|
@@ -3044,7 +3038,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/graylog-integration-guide"
3044
3038
 
3045
3039
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/graylog-2.png" />
3046
3040
 
3047
- 6. 输入 FlashDuty 获取到的 URL (第一次输入需要对 URL 加白)。
3041
+ 6. 输入 Flashduty 获取到的 URL (第一次输入需要对 URL 加白)。
3048
3042
 
3049
3043
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/graylog-3.png" />
3050
3044
 
@@ -3056,11 +3050,11 @@ url: "https://docs.flashcat.cloud/zh/flashduty/graylog-integration-guide"
3056
3050
 
3057
3051
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/graylog-5.png" />
3058
3052
 
3059
- ### 步骤2:在告警事件中使用 FlashDuty 告警通道
3053
+ ### 步骤2:在告警事件中使用 Flashduty 告警通道
3060
3054
  1. 创建或编辑已有的 Event Definition。
3061
3055
  2. 此处省略其他告警配置(按业务需求配置告警条件)。
3062
3056
  3. 在 Notifications 配置通道。
3063
- 4. Add Notifition 选择 FlashDuty 通道。
3057
+ 4. Add Notifition 选择 Flashduty 通道。
3064
3058
  5. 点击 Done。
3065
3059
  6. 下一步完成即可。
3066
3060
 
@@ -3147,7 +3141,7 @@ rules:
3147
3141
  tags:
3148
3142
  level: Warning
3149
3143
  \`\`\`
3150
- 4. 添加 FlashDuty 的 webhook 地址。
3144
+ 4. 添加 Flashduty 的 webhook 地址。
3151
3145
 
3152
3146
  \`\`\`
3153
3147
  # 在配置文件底部添加
@@ -3237,12 +3231,12 @@ Sentry 提供了两类告警机制:Issue Alerts 和 Metric Alerts。Issue Aler
3237
3231
 
3238
3232
  ## 二、Sentry 告警推送配置
3239
3233
 
3240
- ### 步骤1:添加 FlashDuty Custom Integrations
3234
+ ### 步骤1:添加 Flashduty Custom Integrations
3241
3235
 
3242
3236
  1. 登录 Sentry 管理控制台。
3243
3237
  2. 在左侧导航栏,找到 **Settings => Custom Integrations**。
3244
3238
  3. 点击 Create New Integration 并选择 **Internal Integration**。
3245
- 4. 在编辑页面。**Name 处填写 FlashDuty,WebhookURL 处复制写入集成的推送地址**。
3239
+ 4. 在编辑页面。**Name 处填写 Flashduty,WebhookURL 处复制写入集成的推送地址**。
3246
3240
  5. 开启 **Alert Rule Action**,参考如下图配置:
3247
3241
 
3248
3242
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/sentry-1.png" />
@@ -3255,11 +3249,11 @@ Sentry 提供了两类告警机制:Issue Alerts 和 Metric Alerts。Issue Aler
3255
3249
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/sentry-2.png" />
3256
3250
 
3257
3251
  **关于 WEBHOOKS 配置的特殊说明:**
3258
- 1. 勾选 **issue** 后 FlashDuty 可以接收 issue 的 resolved 事件,即在 issue 列表中对某个问题进行手动触发 resolved 时,我们会自动恢复 FlashDuty 中关联的故障。
3252
+ 1. 勾选 **issue** 后 Flashduty 可以接收 issue 的 resolved 事件,即在 issue 列表中对某个问题进行手动触发 resolved 时,我们会自动恢复 Flashduty 中关联的故障。
3259
3253
  2. 不支持 issue 的其他事件,如 create、assigned、archived 和 unresolved。
3260
- 3. 如果同时勾选了 error 和 comment ,FlashDuty 并不会接收和处理这类事件。
3254
+ 3. 如果同时勾选了 error 和 comment ,Flashduty 并不会接收和处理这类事件。
3261
3255
 
3262
- ### 步骤2:在 Alerts 中使用 FlashDuty Integration
3256
+ ### 步骤2:在 Alerts 中使用 Flashduty Integration
3263
3257
  1. 在左侧导航栏,找到 **Alerts => Create Alert**。
3264
3258
  2. 选择要创建的 Alert 类型,如 Issue 。
3265
3259
 
@@ -3271,7 +3265,7 @@ Sentry 提供了两类告警机制:Issue Alerts 和 Metric Alerts。Issue Aler
3271
3265
 
3272
3266
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/sentry-4.png" />
3273
3267
 
3274
- 5. 通知渠道选择上面添加的 **FlashDuty**。
3268
+ 5. 通知渠道选择上面添加的 **Flashduty**。
3275
3269
 
3276
3270
 
3277
3271
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/sentry-5.png" />
@@ -3356,7 +3350,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/jiankongbao-integration-guide"
3356
3350
 
3357
3351
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/jkb-2.png" />
3358
3352
 
3359
- 4. 自定义名称输入 FlashDuty,回调 URL 输入复制集成的推送地址。
3353
+ 4. 自定义名称输入 Flashduty,回调 URL 输入复制集成的推送地址。
3360
3354
  5. 回调方式选择 **POST**,数据格式选择 **JSON**。
3361
3355
  6. 勾选**开启 URL 回调**,其他按需选择即可,参考下图配置。
3362
3356
 
@@ -3365,10 +3359,10 @@ url: "https://docs.flashcat.cloud/zh/flashduty/jiankongbao-integration-guide"
3365
3359
  7. 点击保存。
3366
3360
 
3367
3361
 
3368
- ### 步骤2:在监控任务使用 FlashDuty 告警通道
3362
+ ### 步骤2:在监控任务使用 Flashduty 告警通道
3369
3363
  1. 创建或编辑已有的监控任务。
3370
3364
  2. 此处省略其他告警配置。
3371
- 3. 在 Webhook 通知处,选择 FlashDuty 通道。
3365
+ 3. 在 Webhook 通知处,选择 Flashduty 通道。
3372
3366
 
3373
3367
  <img alt="drawing" width="600" src="https://fcpub-1301667576.cos.ap-nanjing.myqcloud.com/flashduty/doc/jkb-4.png" />
3374
3368
 
@@ -3449,10 +3443,10 @@ url: "https://docs.flashcat.cloud/zh/flashduty/aws-eventbridge-integration-guide
3449
3443
 
3450
3444
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/aws-eb-3.png" />
3451
3445
 
3452
- 4. 在 \`Connection details\` 部分中,\`Connection name\` 处填写 \`FlashDuty\`。
3446
+ 4. 在 \`Connection details\` 部分中,\`Connection name\` 处填写 \`Flashduty\`。
3453
3447
  5. 在 \`Authorization\` 部分中,\`Destination type\` 选择 \`Other\`。
3454
3448
  6. \`Authorization type\` 选择 \`API Key\`。
3455
- 7. \`API key name\` 填写 \`FlashDuty\`,\`Value\` 填写集成推送地址的 \`integration_key\`。
3449
+ 7. \`API key name\` 填写 \`Flashduty\`,\`Value\` 填写集成推送地址的 \`integration_key\`。
3456
3450
  8. 点击 \`Create\` 保存即可。
3457
3451
 
3458
3452
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/aws-eb-4.png" />
@@ -3463,10 +3457,10 @@ url: "https://docs.flashcat.cloud/zh/flashduty/aws-eventbridge-integration-guide
3463
3457
 
3464
3458
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/aws-eb-5.png" />
3465
3459
 
3466
- 2. 在 \`API destination detail\` 编辑界面填写相关信息,\`Name\` 填写 \`FlashDuty\` 。
3460
+ 2. 在 \`API destination detail\` 编辑界面填写相关信息,\`Name\` 填写 \`Flashduty\` 。
3467
3461
  3. \`API destination endpoint\` 填写集成的推送地址(当前页面填写集成名称,保存后即可生成地址)。
3468
3462
  4. \`HTTP method\` 选择 \`POST\`。
3469
- 5. \`Connection type\` 选择 \`Use an existing connection\` 并在列表中选择步骤1添加的 \`FlashDuty\` Connection。
3463
+ 5. \`Connection type\` 选择 \`Use an existing connection\` 并在列表中选择步骤1添加的 \`Flashduty\` Connection。
3470
3464
  6. 点击 \`Create\` 保存即可。
3471
3465
 
3472
3466
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/aws-eb-6.png" />
@@ -3476,7 +3470,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/aws-eventbridge-integration-guide
3476
3470
  2. 在左侧导航栏选择 \`Buses=>Rules\`,创建或编辑已有的规则。
3477
3471
  3. 此处省略其他配置。
3478
3472
  4. 在 \`Target types\` 处,选择 \`EventBridge API destination\` 作为目标类型。
3479
- 5. 在 \`API destination\` 中选择 \`Use an existing API destination\`,并在下拉框中选择步骤2创建的 \`FlashDuty\` API destination。
3473
+ 5. 在 \`API destination\` 中选择 \`Use an existing API destination\`,并在下拉框中选择步骤2创建的 \`Flashduty\` API destination。
3480
3474
  6. \`Next\` 后按需配置,并保存即可。
3481
3475
 
3482
3476
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/aws-eb-7.png" />
@@ -3486,8 +3480,8 @@ url: "https://docs.flashcat.cloud/zh/flashduty/aws-eventbridge-integration-guide
3486
3480
 
3487
3481
  <div class="md-block">
3488
3482
 
3489
- 1. 由于 AWS EventBridge 的事件并没有严重等级,所以推送至 FlashDuty 的事件等级均为 Warning。
3490
- 2. AWS EventBridge 的事件只有触发,没有恢复,所以 FlashDuty 接收到的事件也不会自动关联恢复。
3483
+ 1. 由于 AWS EventBridge 的事件并没有严重等级,所以推送至 Flashduty 的事件等级均为 Warning。
3484
+ 2. AWS EventBridge 的事件只有触发,没有恢复,所以 Flashduty 接收到的事件也不会自动关联恢复。
3491
3485
 
3492
3486
  </div>
3493
3487
 
@@ -3563,7 +3557,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/dynatrace-integration-guide"
3563
3557
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/dyn-3.png" />
3564
3558
 
3565
3559
  5. 在 \`Notification type\` 处,选择 \`Custom Integraion\`。
3566
- 6. \`Display name\` 填写 \`FlashDuty\`。
3560
+ 6. \`Display name\` 填写 \`Flashduty\`。
3567
3561
  7. \`Webhook URL\` 填写集成的推送地址(当前页面填写集成名称,保存后即可生成地址)。
3568
3562
  8. \`Call webhook if problem is closed\` 保持开启状态。
3569
3563
 
@@ -3660,14 +3654,14 @@ url: "https://docs.flashcat.cloud/zh/flashduty/huaweilts-integration-guide"
3660
3654
 
3661
3655
  ## 一、华为云日志服务 LTS 告警推送配置
3662
3656
 
3663
- ### 步骤1:创建 FlashDuty 告警通道
3657
+ ### 步骤1:创建 Flashduty 告警通道
3664
3658
  1. 登录您的华为云控制台,检索 \`SMN\` 消息通知服务产品,并进入对应产品控制台。
3665
3659
  2. 在左侧导航栏选择 \`主题管理=>主题\`。
3666
- 3. 点击 \`创建主题\`,在编辑页面中的主题名称处输入 \`FlashDuty\` 并点击确认。
3660
+ 3. 点击 \`创建主题\`,在编辑页面中的主题名称处输入 \`Flashduty\` 并点击确认。
3667
3661
 
3668
3662
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/huawei-lts-1.png" />
3669
3663
 
3670
- 4. 回到主题列表后,在刚创建的 FlashDuty 主题中点击 \`添加订阅\`。
3664
+ 4. 回到主题列表后,在刚创建的 Flashduty 主题中点击 \`添加订阅\`。
3671
3665
 
3672
3666
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/huawei-lts-2.png" />
3673
3667
 
@@ -3686,14 +3680,14 @@ url: "https://docs.flashcat.cloud/zh/flashduty/huaweilts-integration-guide"
3686
3680
 
3687
3681
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/huawei-lts-5.png" />
3688
3682
 
3689
- 3. 在模版编辑页面中,名称填写 **FlashDuty**,消息头语言选择 \`英文\`。
3683
+ 3. 在模版编辑页面中,名称填写 **Flashduty**,消息头语言选择 \`英文\`。
3690
3684
  4. 通知类型选择 \`HTTP/HTTPS\`,数据类型选择 \`JSON\`。
3691
3685
  5. 点击 \`确认\` 保存。
3692
3686
 
3693
3687
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/huawei-lts-6.png" />
3694
3688
 
3695
3689
  6. 回到 \`告警行动规则\` 列表,点击 \`创建\`。
3696
- 7. 规则名称填写 **FlashDuty** ,主题和消息模版都选择已创建的 **FlashDuty** 主题和模版。
3690
+ 7. 规则名称填写 **Flashduty** ,主题和消息模版都选择已创建的 **Flashduty** 主题和模版。
3697
3691
 
3698
3692
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/huawei-lts-7.png" />
3699
3693
 
@@ -3703,7 +3697,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/huaweilts-integration-guide"
3703
3697
  2. 创建或编辑已有的告警规则。
3704
3698
  3. 此处省略其他配置。
3705
3699
  4. 在 \`高级设置\` 中,通知场景的 \`告警触发\` 和 \`告警恢复\` 都要勾选上。
3706
- 5. 打开行动规则,并选择 \`步骤2\` 创建的 **FlashDuty** 规则。
3700
+ 5. 打开行动规则,并选择 \`步骤2\` 创建的 **Flashduty** 规则。
3707
3701
  6. 语言选择 \`英文\`,完成配置后点击 \`确认\` 保存即可。
3708
3702
 
3709
3703
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/huawei-lts-8.png" />
@@ -3784,18 +3778,18 @@ url: "https://docs.flashcat.cloud/zh/flashduty/gcpcm-integration-guide"
3784
3778
 
3785
3779
  3. 在 Notification channels 页面找到 \`Webhooks\` 并点击 \`ADD NEW\`。
3786
3780
  4. 在 \`Endpoint URL\` 处输入集成的推送地址(当前页面填写集成名称,保存后即可生成地址。
3787
- 5. 在 \`Display Name\` 处输入 **FlashDuty** 。
3781
+ 5. 在 \`Display Name\` 处输入 **Flashduty** 。
3788
3782
  6. 点击 \`TEST CONNECTION\` 后,点击 \`SAVE\` 保存即可。
3789
3783
 
3790
3784
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/google-cm-2.png" />
3791
3785
 
3792
- ### 步骤2:在告警策略中使用 FlashDuty 告警通道
3786
+ ### 步骤2:在告警策略中使用 Flashduty 告警通道
3793
3787
 
3794
3788
  1. 回到 \`Alerting\` 页面。
3795
3789
  2. 创建或编辑已有的策略。
3796
3790
  3. 此处省略其他策略配置(按业务需求配置告警条件)。
3797
3791
  4. 在 \`Notifications and name\` 页面中,将 \`Use notification channel\` 保持开启状态。
3798
- 5. 在 \`Notification channels\` 下拉框中选择 **步骤1** 创建的 **FlashDuty** 通道,并勾选 \`Notify on incident closure\`。
3792
+ 5. 在 \`Notification channels\` 下拉框中选择 **步骤1** 创建的 **Flashduty** 通道,并勾选 \`Notify on incident closure\`。
3799
3793
  6. 完成其他配置并保存策略即可。
3800
3794
 
3801
3795
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/google-cm-3.png" />
@@ -3954,7 +3948,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/appdynamics-integration-guide"
3954
3948
 
3955
3949
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/appdyn-1.png" />
3956
3950
 
3957
- 3. 在模版配置中,\`Name\` 填写 **FlashDuty** 。
3951
+ 3. 在模版配置中,\`Name\` 填写 **Flashduty** 。
3958
3952
  4. 在 \`Request URL\` 部分,\`Method\` 选择 **POST** ,\`Raw URL\` 填写集成的推送地址(当前页面填写集成名称,保存后即可生成地址)。
3959
3953
 
3960
3954
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/appdyn-2.png" />
@@ -4032,7 +4026,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/appdynamics-integration-guide"
4032
4026
 
4033
4027
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/appdyn-6.png" />
4034
4028
 
4035
- 3. 在弹出的 \`Create HTTP Action\` 框中,输入 Name,\`HTTP Request Template\` 选择 \`步骤1\` 创建的 **FlashDuty** 并点击 \`SAVE\`。
4029
+ 3. 在弹出的 \`Create HTTP Action\` 框中,输入 Name,\`HTTP Request Template\` 选择 \`步骤1\` 创建的 **Flashduty** 并点击 \`SAVE\`。
4036
4030
 
4037
4031
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/appdyn-7.png" />
4038
4032
 
@@ -4118,7 +4112,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/solarwinds-integration-guide"
4118
4112
 
4119
4113
  **前提说明**
4120
4114
  1. SolarWinds 的告警类型有五种(Anomaly、Entity、Event、Log、Metric Group),每种类型对应不同的告警通道,所以需要创建五个告警通道,以便在不同告警类型中使用。
4121
- 2. 在创建 Webhook 通道过程中,其中 Name 字段建议使用: 类型_FlashDuty 组合的形式,例如:Anomaly_FlashDuty
4115
+ 2. 在创建 Webhook 通道过程中,其中 Name 字段建议使用: 类型_Flashduty 组合的形式,例如:Anomaly_Flashduty
4122
4116
  3. 在选择 **Select Custom Body Template Based On The Alert Types** 时,系统会默认生成相应的 **HTTP POST Body**, **生成的模版内容请不要修改**。
4123
4117
 
4124
4118
  **开始创建**
@@ -4128,7 +4122,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/solarwinds-integration-guide"
4128
4122
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/sw-1.png" />
4129
4123
 
4130
4124
  3. 点击 \`CREATE CONFIGURATION\` 进行创建相应的告警通道。
4131
- 4. 在 \`Method\` 处选择 **POST** ,\`Name\` 处可以根据前提说明中的建议进行命名,例如:Anomaly_FlashDuty
4125
+ 4. 在 \`Method\` 处选择 **POST** ,\`Name\` 处可以根据前提说明中的建议进行命名,例如:Anomaly_Flashduty
4132
4126
  5. \`Destination URL\` 填写集成的推送地址(当前页面填写集成名称,保存后即可生成地址)。
4133
4127
  6. \`Content Type\` 选择 **application/json**。
4134
4128
  7. \`Select Custom Body Template Based On The Alert Types\` 选择需要创建的类型,例如:Anomaly Based Alert。
@@ -4144,7 +4138,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/solarwinds-integration-guide"
4144
4138
  1. 在左侧导航栏找到 \`Alerts\`,选择 \`Alert Settings\`。
4145
4139
  2. 创建或编辑已有的策略(告警规则按需配置即可,此处省略告警规则的配置)。
4146
4140
  3. 在配置策略页面的 \`Actions\` 部分中,\`Services\` 选择 **Webhook** 。
4147
- 4. \`Configuration\` 选择步骤1创建的 Anomaly_FlashDuty 通道。
4141
+ 4. \`Configuration\` 选择步骤1创建的 Anomaly_Flashduty 通道。
4148
4142
  5. \`Send an additional notification when the Alert is cleared\` 保持开启状态。
4149
4143
 
4150
4144
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/sw-4.png" />
@@ -4219,14 +4213,14 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-metric-integration-gui
4219
4213
 
4220
4214
  ## 一、火山引擎云监控告警推送配置
4221
4215
 
4222
- ### 步骤1:创建 FlashDuty 告警通道
4216
+ ### 步骤1:创建 Flashduty 告警通道
4223
4217
  1. 登录您的火山引擎控制台,检索 \`云监控\` 产品,并进入对应产品控制台。
4224
4218
  2. 在左侧导航栏选择 \`通知组=>回调\`。
4225
4219
  3. 点击 \`创建回调地址\`。
4226
4220
 
4227
4221
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/ve-m-1.png" />
4228
4222
 
4229
- 4. 在编辑页面中填写相应的信息,回调地址名称填写 \`FlashDuty_Metric\`。
4223
+ 4. 在编辑页面中填写相应的信息,回调地址名称填写 \`Flashduty_Metric\`。
4230
4224
  5. 回调地址类型选择 \`通用回调地址\`。
4231
4225
  6. 回调地址填写**集成的推送地址**(当前页面填写集成名称,保存后即可生成地址)。
4232
4226
  7. 点击 \`确认\` 即可完成创建(不支持连通性测试,即使点击测试出现连通性失败,也不会影响告警的接收)。
@@ -4239,7 +4233,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-metric-integration-gui
4239
4233
  2. 创建或编辑已有的告警策略(策略请按需配置,此处略过)。
4240
4234
  3. 在策略编辑页面中,\`发送聚合策略\` 选择 \`规则和资源\`。
4241
4235
  4. \`告警恢复通知\` 保持开启状态。
4242
- 5. 在 \`告警渠道\` 中勾选 \`告警回调\` ,并在告警回调下拉框中选择**步骤1**创建的 \`FlashDuty_Metric\` 通道。
4236
+ 5. 在 \`告警渠道\` 中勾选 \`告警回调\` ,并在告警回调下拉框中选择**步骤1**创建的 \`Flashduty_Metric\` 通道。
4243
4237
  6. 其他配置完成后,点击 \`确认\` 即可完成。
4244
4238
 
4245
4239
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/ve-m-6.png" />
@@ -4310,14 +4304,14 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-event-integration-guid
4310
4304
 
4311
4305
  ## 一、火山引擎云监控事件中心告警推送配置
4312
4306
 
4313
- ### 步骤1:创建 FlashDuty 告警通道
4307
+ ### 步骤1:创建 Flashduty 告警通道
4314
4308
  1. 登录您的火山引擎控制台,检索 \`云监控\` 产品,并进入对应产品控制台。
4315
4309
  2. 在左侧导航栏选择 \`通知组=>回调\`。
4316
4310
  3. 点击 \`创建回调地址\`。
4317
4311
 
4318
4312
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/ve-m-1.png" />
4319
4313
 
4320
- 4. 在编辑页面中填写相应的信息,回调地址名称填写 \`FlashDuty_Event\`。
4314
+ 4. 在编辑页面中填写相应的信息,回调地址名称填写 \`Flashduty_Event\`。
4321
4315
  5. 回调地址类型选择 \`通用回调地址\`。
4322
4316
  6. 回调地址填写**集成的推送地址**(当前页面填写集成名称,保存后即可生成地址)。
4323
4317
  7. 点击 \`确认\` 即可完成创建(不支持连通性测试,即使点击测试出现连通性失败,也不会影响告警的接收)。
@@ -4328,7 +4322,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-event-integration-guid
4328
4322
 
4329
4323
  1. 在左侧导航栏选择 \`事件中心=>事件规则\`。
4330
4324
  2. 创建或编辑已有的事件规则(规则请按需配置,此处略过)。
4331
- 3. 在规则编辑页面中,投递渠道处勾选 \`告警回调\`,并在告警回调下拉框中选择**步骤1**创建的 \`FlashDuty_Event\` 通道。
4325
+ 3. 在规则编辑页面中,投递渠道处勾选 \`告警回调\`,并在告警回调下拉框中选择**步骤1**创建的 \`Flashduty_Event\` 通道。
4332
4326
  4. 其他配置完成后,点击 \`确认\` 即可完成。
4333
4327
 
4334
4328
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/ve-m-3.png" />
@@ -4399,14 +4393,14 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-tls-integration-guide"
4399
4393
 
4400
4394
  ## 一、火山引擎日志服务 TLS 告警推送配置
4401
4395
 
4402
- ### 步骤1:创建 FlashDuty 告警通道
4396
+ ### 步骤1:创建 Flashduty 告警通道
4403
4397
  1. 登录您的火山引擎控制台,检索 \`TLS\`日志服务产品,并进入对应产品控制台。
4404
4398
  2. 在左侧导航栏选择 \`日志告警=>通知管理\`。
4405
4399
  3. 选择 \`webhook 告警集成\`,并点击 \`创建 webhook 告警集成\`。
4406
4400
 
4407
4401
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/ve-tls-1.png" />
4408
4402
 
4409
- 4. 在弹出的编辑框中填写相应的信息,名称填写 \`FlashDuty\`。
4403
+ 4. 在弹出的编辑框中填写相应的信息,名称填写 \`Flashduty\`。
4410
4404
  5. 类型选择 \`自定义 Webhook\`,请求方法选择 \`POST\`。
4411
4405
  6. 请求地址填写**集成的推送地址**(当前页面填写集成名称,保存后即可生成地址)。
4412
4406
  7. 请求头保持默认的即可,配置完成点击 \`创建\`。
@@ -4417,7 +4411,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-tls-integration-guide"
4417
4411
 
4418
4412
  1. 回到 \`通知管理\` 页面。
4419
4413
  2. 选择 \`内容模版\`,并点击 \`创建内容模版\`。
4420
- 3. 在创建模版页面中填写相关信息,模版名称填写 \`FlashDuty\`。
4414
+ 3. 在创建模版页面中填写相关信息,模版名称填写 \`Flashduty\`。
4421
4415
  4. 其他类型的通道内容可为空,在 \`自定义Webhook\` 的通知内容处,填写以下模版内容。
4422
4416
 
4423
4417
  \`\`\`
@@ -4450,7 +4444,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-tls-integration-guide"
4450
4444
 
4451
4445
  1. 回到 \`通知管理\` 页面。
4452
4446
  2. 选择 \`通知组\`,并点击 \`创建通知组\`。
4453
- 3. 在编辑通知组页面中填写相关信息,通知组名称填写 \`FlashDuty\`。
4447
+ 3. 在编辑通知组页面中填写相关信息,通知组名称填写 \`Flashduty\`。
4454
4448
  4. 通知规则和其他配置可按需配置(此处略过)。
4455
4449
  5. 在通知渠道配置中,接收渠道的 \`自定义webhook\` 保持勾选状态。
4456
4450
  6. \`Webhook\` 选择**步骤1**创建的 **FlahDuty** 通道。
@@ -4465,7 +4459,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-tls-integration-guide"
4465
4459
  2. 创建或编辑已有的告警策略。
4466
4460
  3. 告警规则可按需配置(此处略过)。
4467
4461
  4. 在 \`通知组\` 处,点击 \`关联通知组\`。
4468
- 5. 在弹出的选择框中,选择**步骤3**创建的 **FlashDuty** 通知组,选择好后,点击 \`关联\`。
4462
+ 5. 在弹出的选择框中,选择**步骤3**创建的 **Flashduty** 通知组,选择好后,点击 \`关联\`。
4469
4463
  6. 配置好其他内容后,点击 \`创建/保存\` 即可完成。
4470
4464
 
4471
4465
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/ve-tls-5.png" />
@@ -4600,7 +4594,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/opmanager-integration-guide"
4600
4594
 
4601
4595
  10. 选择希望应用此配置文件的设备,使用右箭头将它们移动到选定设备窗口,然后点击下一步。
4602
4596
  11. Time Window/Delayed Trigger/Recurring Trigger 可按需配置,然后点击下一步。
4603
- 12. 为该配置文件添加名称 \`FlashDuty\`,然后点击 \`Save\` 保存即可完成配置。
4597
+ 12. 为该配置文件添加名称 \`Flashduty\`,然后点击 \`Save\` 保存即可完成配置。
4604
4598
 
4605
4599
  </dev>
4606
4600
 
@@ -4673,7 +4667,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/meraki-integration-guide"
4673
4667
  1. 登录您的 \`Meraki\` 控制台,选择需要配置告警的设备。
4674
4668
  2. 在 \`Alerts\` 页面中,按需配置 \`Cellular gateway\` 和其他部分。
4675
4669
  3. 在 \`Webhooks\` 处,配置 \`HTTPS receivers\`。
4676
- 4. \`Name\` 填写 \`FlashDuty\`,\`URL\` 填写**告警集成的推送地址**。
4670
+ 4. \`Name\` 填写 \`Flashduty\`,\`URL\` 填写**告警集成的推送地址**。
4677
4671
  5. \`Shared secret\` 留空,\`Payload template\` 保持默认的 \`Meraki(included)\` 即可。
4678
4672
  6. 点击 \`Save\` 保存。
4679
4673
 
@@ -4776,7 +4770,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/statecloud-integration-guide"
4776
4770
 
4777
4771
  通过 webhook 的方式同步天翼云监控告警事件到 Flashduty,实现告警事件自动化降噪处理。
4778
4772
 
4779
- 天翼云[二级节点](#二级节点)的资源监控事件推送,请使用华为云集成,请参考 [华为云告警集成指引](https://docs.flashcat.cloud/zh/flashduty/huawei-ces-integration-guide)。
4773
+ 天翼云[二级节点](#二级节点)的资源监控事件推送,请使用华为云集成,请参考 [华为云告警集成指引](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-sources/huawei-ces)。
4780
4774
 
4781
4775
  <div class="hide">
4782
4776
 
@@ -4921,7 +4915,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/guance-integration-guide"
4921
4915
 
4922
4916
  1. 登录您的 \`观测云\` 控制台,在 \`监控\` 中,选择 \`告警策略管理\` 。
4923
4917
  2. 在 \`告警策略\` 页面, 新建或修改告警策略。
4924
- 3. 在告警策略编辑页面的通知配置部分,选择 \`等级\`,\`通知对象\` 选择步骤1中创建的 \`FlashDuty\`。
4918
+ 3. 在告警策略编辑页面的通知配置部分,选择 \`等级\`,\`通知对象\` 选择步骤1中创建的 \`Flashduty\`。
4925
4919
  4. 其他按需配置,点击 \`保存\` 完成创建。
4926
4920
 
4927
4921
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/zh/fd/guance-2.png" />
@@ -5163,7 +5157,8 @@ url: "https://docs.flashcat.cloud/zh/flashduty/lark-integration-guide"
5163
5157
 
5164
5158
  - \`im:chat\`:获取与更新群组信息
5165
5159
  - \`im:message\`:获取与发送单聊、群组消息
5166
- - \`contact:user.id:readonly\`:通过手机号或邮箱获取用户 ID <span id="war-room-scope"></span>
5160
+ - \`contact:user.id:readonly\`:通过手机号或邮箱获取用户 ID
5161
+ - \`im:message.group_msg\`:读取群聊历史消息(AI 生成复盘报告需要读取作战室聊天记录) <span id="war-room-scope"></span>
5167
5162
 
5168
5163
  ![2025-09-18-10-55-14](https://docs-cdn.flashcat.cloud/images/png/d919be62107f6b9d0c662f440d620e61.png)
5169
5164
 
@@ -5507,7 +5502,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/wecom-integration-guide"
5507
5502
 
5508
5503
  4. 访问 [企业微信管理后台](https://work.weixin.qq.com/wework_admin/frame#apps),进入 **我的企业** 页面,获取 \`企业 ID\`。
5509
5504
 
5510
- ![2025-09-18-11-44-54](https://docs-cdn.flashcat.cloud/images/png/c032dc755a72550d57658dd5962dafe4.png)
5505
+ ![2025-09-18-11-44-54](https://docs-cdn.flashcat.cloud/images/png/c032dc755a72550d57658dd5962dafe4.png)
5511
5506
 
5512
5507
  5. 返回 Flashduty 集成配置页面,填写上一步获取的 \`企业 ID\`,点击 **保存** 完成集成。
5513
5508
 
@@ -5535,13 +5530,13 @@ url: "https://docs.flashcat.cloud/zh/flashduty/wecom-integration-guide"
5535
5530
 
5536
5531
  6. 在应用详情页,获取 \`Secret\`,并将其填写至 Flashduty 集成配置页面。
5537
5532
 
5538
- 7. 在应用详情页,进入 **网页授权及 JS-SDK** 页面,点击 **设置可信域名**,并按要求配置 **可作为应用 OAuth 2.0 网页授权功能的回调域名**。
5533
+ 7. 在应用详情页,进入 **网页授权及 JS-SDK** 页面,点击 **设置可信域名**,并按要求配置。
5539
5534
 
5540
5535
  > 可信域名需要指向 Flashduty 的后端地址 \`{api_host}\`(可通过 CNAME 或代理转发实现)。
5541
5536
  >
5542
5537
  > 关于可信域名的要求,详见企业微信官方文档 [《企业内部开发配置域名指引》](https://open.work.weixin.qq.com/wwopen/common/readDocument/40754)。
5543
5538
 
5544
- ![2025-09-18-11-51-26](https://docs-cdn.flashcat.cloud/images/png/5a07bc5e55edf4bb19b142dfbc83f653.png)
5539
+ ![2025-10-15-10-30-56](https://docs-cdn.flashcat.cloud/images/png/09a91d682198d1c8f830b5ed523965ef.png)
5545
5540
 
5546
5541
  返回 Flashduty 集成配置页面,填写该域名,并完成验证。
5547
5542
 
@@ -5553,11 +5548,21 @@ url: "https://docs.flashcat.cloud/zh/flashduty/wecom-integration-guide"
5553
5548
 
5554
5549
  9. 复制 Flashduty 集成详情页中的 \`回调地址\`,返回企业微信刚才的 **接收消息** 页面。在 **API 接收** 设置中,填入该 \`回调地址\` 以及上一步保存的 \`Token\` 和 \`EncodingAESKey\`,然后点击 **保存**。
5555
5550
 
5556
- ![2025-09-18-11-56-43](https://docs-cdn.flashcat.cloud/images/png/c990c27f7ad90af172e159fc4acfead7.png)
5551
+ ![2025-09-18-11-56-43](https://docs-cdn.flashcat.cloud/images/png/c990c27f7ad90af172e159fc4acfead7.png)
5552
+
5553
+ 10. 配置**前端可信域名**
5557
5554
 
5558
- 10. 配置可信 IP 地址:47.94.95.118; 123.56.8.183; 47.94.193.81; 1.13.19.96
5555
+ > 可信域名需要指向 Flashduty 的前端地址 \`console.flashcat.cloud\`(可通过 CNAME 或代理转发实现)。
5556
+ >
5557
+ > 关于可信域名的要求,详见企业微信官方文档 [《企业内部开发配置域名指引》](https://open.work.weixin.qq.com/wwopen/common/readDocument/40754)。
5559
5558
 
5560
- ![2025-09-19-11-03-07](https://docs-cdn.flashcat.cloud/images/png/40ee9fe1bea9d2ad1da3180517c45dc7.png)
5559
+ 前端可信域名校验通过后将生成的**主页地址**配置到企微应用的**工作台应用主页**
5560
+
5561
+ ![2025-10-14-19-51-01](https://docs-cdn.flashcat.cloud/images/png/595a71dd5624a37312676e83c45d79c4.png)
5562
+
5563
+ 11. 配置**可信 IP 地址**:\`47.93.12.134\`
5564
+
5565
+ ![2025-10-14-20-26-45](https://docs-cdn.flashcat.cloud/images/png/fe3b2b788dda5d331148ba0946631b91.png)
5561
5566
 
5562
5567
  ## 三、配置作战室
5563
5568
 
@@ -5600,7 +5605,8 @@ url: "https://docs.flashcat.cloud/zh/flashduty/wecom-integration-guide"
5600
5605
  - 请联系 Flashduty 客服或您的专属技术支持,为您购买并开通许可。
5601
5606
  8. **为什么作战室功能未按预期工作?**
5602
5607
  - 请参考 Flashduty [作战室介绍文档](https://docs.flashcat.cloud/zh/flashduty/war-room) 的 **常见问题** 部分。
5603
- `,Slack:`---
5608
+ 9. **为什么在企微工作台打开应用后提示“redirect_uri需使用应用可信域名”?**
5609
+ - 请确认**应用主页**的url中的\`redirect_uri\`参数中的域名是否完成企业微信要求的域名归属认证,详见企业微信官方文档 [《企业内部开发配置域名指引》](https://open.work.weixin.qq.com/wwopen/common/readDocument/40754)。`,Slack:`---
5604
5610
  title: "Slack 集成"
5605
5611
  description: "通过集成 Slack 第三方应用,您可以在 Slack 内接收和响应告警。"
5606
5612
  date: "2025-05-19T10:00:00+08:00"
@@ -5624,6 +5630,8 @@ url: "https://docs.flashcat.cloud/zh/flashduty/slack-integration-guide"
5624
5630
 
5625
5631
  完成先前步骤后,在 Flashduty 集成配置页面的 **增强功能** 模块,勾选 **开启作战室** 即可启用该功能,无需额外配置。
5626
5632
 
5633
+ 若需启用 AI 生成复盘报告(读取作战室聊天记录),应用需要额外的 \`channels:history\` 权限。对于已授权的 Slack 集成,您需要手动重新授权以获取该权限。
5634
+
5627
5635
  ## 二、常见问题
5628
5636
 
5629
5637
  ---
@@ -5673,10 +5681,10 @@ Microsoft Teams 集成现处于 Beta 阶段,在关联前您需要先完成以
5673
5681
  :::
5674
5682
 
5675
5683
  ### 1. 下载应用
5676
- 将 [FlashDutyBot-v1.0.3.zip](https://flashduty-docs.oss-cn-beijing.aliyuncs.com/docs/FlashdutyBot-v1.0.3.zip) 下载到本地。
5684
+ 将 [FlashdutyBot-v1.0.3.zip](https://flashduty-docs.oss-cn-beijing.aliyuncs.com/docs/FlashdutyBot-v1.0.3.zip) 下载到本地。
5677
5685
 
5678
5686
  ### 2. 安装应用
5679
- 进入 Microsoft Teams,导航至 +Apps → Manage your apps → Upload an app → **Upload an app to your org's app catalog**,然后上传应用包 \`FlashDutyBot.zip\`。
5687
+ 进入 Microsoft Teams,导航至 +Apps → Manage your apps → Upload an app → **Upload an app to your org's app catalog**,然后上传应用包 \`FlashdutyBot.zip\`。
5680
5688
 
5681
5689
  ![2025-09-18-13-48-04](https://docs-cdn.flashcat.cloud/images/png/bfa4afaf489c3582e858cad99eb76ae5.png)
5682
5690
 
@@ -5884,7 +5892,7 @@ curl -X POST 'https://example.com/alert/webhook?a=a' \\
5884
5892
  "data_source_name":"阿里云 SLS",
5885
5893
  "data_source_ref_id":"",
5886
5894
  "data_source_type":"aliyun-sls.alert",
5887
- "description":"测试发送到FlashDuty告警触发",
5895
+ "description":"测试发送到Flashduty告警触发",
5888
5896
  "end_time":0,
5889
5897
  "event_cnt":1,
5890
5898
  "incident":{
@@ -5896,7 +5904,7 @@ curl -X POST 'https://example.com/alert/webhook?a=a' \\
5896
5904
  "alert_type":"sls_alert",
5897
5905
  "alert_url":"https://sls.console.aliyun.com/lognext/project/sls-api-testing/alert/alert-1683548531-071659",
5898
5906
  "aliuid":"1082109605037616",
5899
- "check":"测试发送到FlashDuty",
5907
+ "check":"测试发送到Flashduty",
5900
5908
  "fire_results":"{\\"_col0\\":\\"true\\"}",
5901
5909
  "fire_results_count":"1",
5902
5910
  "project":"sls-api-testing",
@@ -5908,7 +5916,7 @@ curl -X POST 'https://example.com/alert/webhook?a=a' \\
5908
5916
  "last_time":1683809153,
5909
5917
  "progress":"Triggered",
5910
5918
  "start_time":1683766013,
5911
- "title":"测试发送到FlashDuty告警触发",
5919
+ "title":"测试发送到Flashduty告警触发",
5912
5920
  "title_rule":"$resource::$check",
5913
5921
  "updated_at":1683809170
5914
5922
  },
@@ -5927,11 +5935,14 @@ curl -X POST 'https://example.com/alert/webhook?a=a' \\
5927
5935
 
5928
5936
  1. **服务是否有响应超时时间?**
5929
5937
 
5930
- - 服务需要在 1 秒内返回响应,超过 1 秒则认为响应失败
5938
+ - 服务需要在 2 秒内返回响应,超过 2 秒则认为响应失败
5931
5939
 
5932
5940
  2. **推送失败后是否会持续推送?**
5933
5941
 
5934
- - 目前 FlashDuty 最多推送一次,未来可能会引入重试机制,也可能因为中间链路超时导致重试,您需要做好幂等处理
5942
+ 针对特定的网络错误,会进行重试,最多重试1次:
5943
+ - context deadline exceeded (排除 awaiting headers)
5944
+ - i/o timeout
5945
+ - eof
5935
5946
 
5936
5947
  3. **如何保证推送顺序?**
5937
5948
 
@@ -6136,11 +6147,14 @@ curl -X POST 'https://example.com/incident/webhook?a=a' \\
6136
6147
 
6137
6148
  1. **服务是否有响应超时时间?**
6138
6149
 
6139
- - 服务需要在 1 秒内返回响应,超过 1 秒则认为响应失败
6150
+ - 服务需要在 2 秒内返回响应,超过 2 秒则认为响应失败
6140
6151
 
6141
6152
  2. **推送失败后是否会持续推送?**
6142
6153
 
6143
- - 目前 FlashDuty 最多推送一次,未来可能会引入重试机制,也可能因为中间链路超时导致重试,您需要做好幂等处理
6154
+ 针对特定的网络错误,会进行重试,最多重试1次:
6155
+ - context deadline exceeded (排除 awaiting headers)
6156
+ - i/o timeout
6157
+ - eof
6144
6158
 
6145
6159
  3. **如何保证推送顺序?**
6146
6160
 
@@ -6153,7 +6167,7 @@ curl -X POST 'https://example.com/incident/webhook?a=a' \\
6153
6167
 
6154
6168
  ## 一、创建操作
6155
6169
 
6156
- 1. 登录 FlashDuty 控制台,进入【集成中心-Webhook】
6170
+ 1. 登录 Flashduty 控制台,进入【集成中心-Webhook】
6157
6171
  2. 点击添加 自定义操作 集成
6158
6172
  3. 配置 操作名称,此名称将以按钮的形式体现在故障详情中
6159
6173
  4. 配置 协作空间,可以配置多个,但每个协作空间至多添加三个 自定义操作
@@ -6389,7 +6403,7 @@ curl -X POST 'https://example.com/incident/action?a=a' \\
6389
6403
 
6390
6404
  ### 信息丰富
6391
6405
 
6392
- 当故障发生时,回调您的服务,根据告警详情调取 Tracing、Logging、拓扑等信息,主动调用 FlashDuty Open API 来更新故障信息,比如增加标签或设定自定义字段,辅助排障。
6406
+ 当故障发生时,回调您的服务,根据告警详情调取 Tracing、Logging、拓扑等信息,主动调用 Flashduty Open API 来更新故障信息,比如增加标签或设定自定义字段,辅助排障。
6393
6407
 
6394
6408
  ### 回滚变更
6395
6409
 
@@ -6403,8 +6417,14 @@ curl -X POST 'https://example.com/incident/action?a=a' \\
6403
6417
 
6404
6418
  1. **服务是否有响应超时时间?**
6405
6419
 
6406
- - 服务需要在 1 秒内返回响应,超过 1 秒则认为响应失败
6420
+ - 服务需要在 2 秒内返回响应,超过 2 秒则认为响应失败
6407
6421
 
6422
+ 2. **推送失败后是否会持续推送?**
6423
+
6424
+ 针对特定的网络错误,会进行重试,最多重试1次:
6425
+ - context deadline exceeded (排除 awaiting headers)
6426
+ - i/o timeout
6427
+ - eof
6408
6428
 
6409
6429
  2. **推送来源可信 IP 白名单?**
6410
6430
  - {ip_whitelist}
@@ -6542,10 +6562,8 @@ Title | string | 是 | 告警标题
6542
6562
  Description | string | 是 | 告警描述,可能为空
6543
6563
  AlertSeverity | string | 是 | 严重程度,枚举值:Critical,Warning,Info
6544
6564
  AlertStatus | string | 是 | 告警状态,枚举值:Critical,Warning,Info,Ok
6545
- Progress | string | 是 | 处理进度,枚举值:Triggered,Processing,Closed
6546
6565
  StartTime | int64 | 是 | 触发时间,Unix 秒时间戳
6547
6566
  EndTime | int64 | 否 | 恢复时间,Unix 秒时间戳,默认为 0
6548
- CloseTime | int64 | 否 | 关闭时间,EndTime 为告警恢复时间,CloseTime 为处理进度的关闭时间,告警恢复时会自动关闭,告警手动关闭时不影响告警恢复。Unix 秒时间戳,默认为 0
6549
6567
  \`Labels\` | map[string]string | 否 | 标签 KV,Key 和 Value 均为字符串
6550
6568
 
6551
6569
  ## 常见问题
@@ -7484,6 +7502,17 @@ msg_type 必填,值为 post
7484
7502
  \`\`\`
7485
7503
  </div>
7486
7504
 
7505
+ <div class="voice hide">
7506
+
7507
+ ## 语音
7508
+ ---
7509
+ 如果不设置自定义内容,将采用系统默认模板渲染通知:
7510
+
7511
+ \`\`\`
7512
+ 您有故障待处理:{{toHtml .Title}},协作空间:{{.ChannelName}},等级:{{.IncidentSeverity}}{{if gt .AlertCnt 1}},共聚合{{.AlertCnt}}条告警{{end}}
7513
+ \`\`\`
7514
+ </div>
7515
+
7487
7516
  <div class="email hide">
7488
7517
 
7489
7518
  ## 邮件
@@ -7498,80 +7527,321 @@ msg_type 必填,值为 post
7498
7527
 
7499
7528
  <head data-id="__react-email-head">
7500
7529
  <style>
7501
- .bg-Critical { background-color: #C80000; }
7502
- .bg-Warning { background-color: #FA7D00; }
7503
- .bg-Info { background-color: #FABE00; }
7504
- .bg-Ok { background-color: rgb(132 204 22); }
7505
- .text-Critical { color: #C80000; }
7506
- .text-Warning { color: #FA7D00; }
7507
- .text-Info { color: #FABE00; }
7508
- .text-Ok { color: rgb(132 204 22); }
7509
- .text-title {font-weight:500;width:6rem;flex-shrink:0}
7510
- .text-content {color:rgb(55,65,81)}
7530
+ /* Light mode colors */
7531
+ :root {
7532
+ --bg-color: rgb(255, 255, 255);
7533
+ --text-color: rgb(55, 65, 81);
7534
+ --label-key-color: #000;
7535
+ --section-bg: rgb(255, 255, 255);
7536
+ --border-color: rgb(229, 231, 235);
7537
+ }
7538
+
7539
+ /* Dark mode colors */
7540
+ @media (prefers-color-scheme: dark) {
7541
+ :root {
7542
+ --bg-color: rgb(31, 41, 55);
7543
+ --text-color: rgb(209, 213, 219);
7544
+ --label-key-color: rgb(229, 231, 235);
7545
+ --section-bg: rgb(17, 24, 39);
7546
+ --border-color: rgb(75, 85, 99);
7547
+ }
7548
+ }
7549
+
7550
+ /* Severity background colors */
7551
+ .severity-Critical {
7552
+ background-color: #C80000;
7553
+ color: #ffffff;
7554
+ padding: 4px 12px;
7555
+ border-radius: 12px;
7556
+ display: inline-block;
7557
+ font-weight: 600;
7558
+ font-size: 13px;
7559
+ }
7560
+ .severity-Warning {
7561
+ background-color: #fef3c7;
7562
+ color: #92400e;
7563
+ padding: 4px 12px;
7564
+ border-radius: 12px;
7565
+ display: inline-block;
7566
+ font-weight: 600;
7567
+ font-size: 13px;
7568
+ }
7569
+ .severity-Info {
7570
+ background-color: #dbeafe;
7571
+ color: #1e40af;
7572
+ padding: 4px 12px;
7573
+ border-radius: 12px;
7574
+ display: inline-block;
7575
+ font-weight: 600;
7576
+ font-size: 13px;
7577
+ }
7578
+ .severity-Ok {
7579
+ background-color: #d1fae5;
7580
+ color: #065f46;
7581
+ padding: 4px 12px;
7582
+ border-radius: 12px;
7583
+ display: inline-block;
7584
+ font-weight: 600;
7585
+ font-size: 13px;
7586
+ }
7587
+
7588
+ /* Progress status colors */
7589
+ .progress-Triggered {
7590
+ background-color: #dbeafe;
7591
+ color: #1e40af;
7592
+ padding: 4px 12px;
7593
+ border-radius: 12px;
7594
+ display: inline-block;
7595
+ font-weight: 600;
7596
+ font-size: 13px;
7597
+ }
7598
+ .progress-Acknowledged {
7599
+ background-color: #ede9fe;
7600
+ color: #6b21a8;
7601
+ padding: 4px 12px;
7602
+ border-radius: 12px;
7603
+ display: inline-block;
7604
+ font-weight: 600;
7605
+ font-size: 13px;
7606
+ }
7607
+ .progress-Resolved {
7608
+ background-color: #d1fae5;
7609
+ color: #065f46;
7610
+ padding: 4px 12px;
7611
+ border-radius: 12px;
7612
+ display: inline-block;
7613
+ font-weight: 600;
7614
+ font-size: 13px;
7615
+ }
7616
+ .progress-Closed {
7617
+ background-color: #f3f4f6;
7618
+ color: #374151;
7619
+ padding: 4px 12px;
7620
+ border-radius: 12px;
7621
+ display: inline-block;
7622
+ font-weight: 600;
7623
+ font-size: 13px;
7624
+ }
7625
+
7626
+ /* Field row styles */
7627
+ .field-row {
7628
+ padding: 1rem 0;
7629
+ border-bottom: 1px solid var(--border-color);
7630
+ }
7631
+ .field-row:first-child {
7632
+ padding-top: 0;
7633
+ }
7634
+ .field-row:last-child {
7635
+ border-bottom: none;
7636
+ }
7637
+ .field-label {
7638
+ color: #6b7280;
7639
+ font-size: 0.875rem;
7640
+ margin-bottom: 0.25rem;
7641
+ }
7642
+ .field-value {
7643
+ color: var(--text-color);
7644
+ word-break: break-word;
7645
+ overflow-wrap: break-word;
7646
+ }
7647
+
7648
+ body {
7649
+ background-color: var(--bg-color);
7650
+ color: var(--text-color);
7651
+ }
7652
+
7653
+ .labels-section {
7654
+ background-color: #f3f4f6;
7655
+ padding: 1rem;
7656
+ border-radius: 0.375rem;
7657
+ margin-top: 0.5rem;
7658
+ }
7659
+ @media (prefers-color-scheme: dark) {
7660
+ .labels-section {
7661
+ background-color: rgb(55, 65, 81);
7662
+ }
7663
+ }
7511
7664
  </style>
7512
7665
  </head>
7513
7666
 
7514
- <body data-id="__react-email-body" style="background-color:rgb(255,255,255);border-radius:0.25rem;margin-top:2.5rem;margin-bottom:2.5rem;margin-left:auto;margin-right:auto;padding:1rem;min-width:400px;max-width:660px;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji">
7515
- <div style="width:100%;height:0.375rem;margin-bottom:2rem" class="bg-{{.IncidentSeverity}}"></div>
7516
- <div style="display:flex;align-items:center;margin-bottom:1.5rem">
7517
- <div style="display:flex;align-items:flex-end;gap:1rem"><img witdh="120" data-id="react-email-img" src="https://console.flashcat.cloud/image/saas-logo.png" height="40" style="display:block;outline:none;border:none;text-decoration:none" /><span style="font-size:1.25rem;line-height:1.75rem;font-weight:600">您有故障待处理</span></div>
7518
- </div>
7519
- <div style="background-color:rgb(243,244,246);padding:2rem;margin-top:1rem;border-radius:0.5rem">
7520
- <div style="display:flex;flex-direction:column;gap:0.75rem">
7521
- <div style="display:flex">
7522
- <div class="text-title">故障标题</div>
7523
- <div class="text-content">{{.Title}}</div>
7524
- </div>
7525
- <div style="display:flex">
7526
- <div class="text-title">严重程度</div>
7527
- <div class="text-{{.IncidentSeverity}}">{{.IncidentSeverity}}</div>
7528
- </div>
7529
- <div style="display:flex">
7530
- <div class="text-title">协作空间</div>
7531
- <div class="text-content">{{if .ChannelName}}{{.ChannelName}}{{else}}无{{end}}</div>
7532
- </div>
7533
- <div style="display:flex">
7534
- <div class="text-title">触发时间</div>
7535
- <div class="text-content">{{date "2006-01-02 15:04:05" .StartTime}}</div>
7536
- </div>
7537
- {{if .CreatorID}}
7538
- <div style="display:flex">
7539
- <div class="text-title">发起人员</div>
7540
- <div class="text-content">{{.Creator.PersonName}}</div>
7541
- </div>
7542
- {{end}}
7543
- {{if gt (len .Responders) 0}}
7544
- <div style="display:flex">
7545
- <div class="text-title">分派人员</div>
7546
- <div class="text-content">{{range .Responders}}@{{.PersonName}} {{end}}</div>
7547
- </div>
7548
- {{end}}
7549
- <div style="display:flex">
7550
- <div class="text-title">处理进度</div>
7551
- <div class="text-content">{{.Progress}}</div>
7552
- </div>
7553
- <div style="display:flex">
7554
- <div class="text-title">故障描述</div>
7555
- <div style="color:rgb(55,65,81);margin-top:0.125rem">
7556
- <div data-id="react-email-markdown">{{toHtml .Description}}</div>
7557
- </div>
7558
- </div>
7559
- {{if .Labels.resource}}
7560
- <div style="display:flex;margin-bottom:0.5rem;">
7561
- <div style="color:#000;font-weight:500;width:6rem;margin-right:1rem;">告警对象</div>
7562
- <div style="color:rgb(55,65,81);margin-top:0.125rem">
7563
- <div data-id="react-email-markdown">{{toHtml (joinAlertLabels . "resource" ", ")}}</div>
7564
- </div>
7565
- </div>
7566
- {{end}}
7567
- </div>
7568
- <div style="display:flex;gap:1rem;margin-top:2rem"><a href="{{.DetailUrl}}?ack=1" data-id="react-email-button" target="_blank" style="line-height:100%;text-decoration:none;display:inline-block;max-width:100%;padding:0px 0px"><span></span><span style="max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:0"><div style="padding-left:2rem;padding-right:2rem;padding-top:0.5rem;padding-bottom:0.5rem;background-color:rgb(108,83,177);border-radius:0.25rem;font-size:1rem;line-height:1.5rem;color:rgb(255,255,255);font-weight:600;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms">立即认领</div></span><span></span></a><a href="{{.DetailUrl}}" data-id="react-email-button" target="_blank" style="color:#61dafb;line-height:100%;text-decoration:none;display:inline-block;max-width:100%;padding:0px 0px"><span></span><span style="max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:0"><div style="padding-left:2rem;padding-right:2rem;padding-top:0.5rem;padding-bottom:0.5rem;background-color:rgb(255,255,255);border-width: 1px;border-style:solid;border-color:rgb(229,231,235);border-radius:0.25rem;font-size:1rem;line-height:1.5rem;color:rgb(0,0,0);font-weight:600">查看详情</div></span><span></span></a></div>
7569
- </div>
7570
- <div style="display:flex;justify-content:flex-end;align-items:flex-end;margin-top:2rem">
7571
- <div style="font-size:0.875rem;line-height:1.25rem;font-weight:500">ALL RIGHTS RESERVED © 北京快猫星云科技有限公司</div>
7572
- </div>
7667
+ <body data-id="__react-email-body" style="margin:0;padding:0;background-color:#f3f4f6;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji">
7668
+ <!-- Outer wrapper table for centering -->
7669
+ <table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:#f3f4f6">
7670
+ <tr>
7671
+ <td align="center" style="padding:40px 20px">
7672
+ <!-- Main container table with fixed width -->
7673
+ <table width="600" cellpadding="0" cellspacing="0" border="0" style="background-color:#ffffff;max-width:600px">
7674
+ <!-- Purple header bar with logo -->
7675
+ <tr>
7676
+ <td style="padding:32px 0 32px 32px;text-align:left">
7677
+ <img data-id="react-email-img" src="https://flashduty-public.oss-cn-beijing.aliyuncs.com/icons/flashduty-20251216.png" height="70" style="display:block;outline:none;border:none;text-decoration:none;height:70px;width:auto" alt="Flashduty" />
7678
+ </td>
7679
+ </tr>
7680
+
7681
+ <!-- Divider after logo -->
7682
+ <tr>
7683
+ <td style="padding:0 32px">
7684
+ <div style="border-top:1px solid #e5e7eb"></div>
7685
+ </td>
7686
+ </tr>
7687
+
7688
+ <!-- Main content -->
7689
+ <tr>
7690
+ <td style="padding:16px 32px 32px 32px">
7691
+ <!-- Title and Description -->
7692
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
7693
+ <tr>
7694
+ <td>
7695
+ <h1 style="margin:0;font-size:24px;font-weight:600;color:#111827;line-height:1.5">{{.Title}}</h1>
7696
+ {{if .Description}}
7697
+ <p style="margin:8px 0 0 0;font-size:16px;color:#6b7280;line-height:1.5">{{toHtml .Description}}</p>
7698
+ {{end}}
7699
+ </td>
7700
+ </tr>
7701
+ </table>
7702
+
7703
+ <!-- Divider after title -->
7704
+ <div style="border-top:1px solid #e5e7eb;margin:32px 0"></div>
7705
+
7706
+ <!-- Fields section -->
7707
+ <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-bottom:30px">
7708
+ <tr>
7709
+ <td style="padding:16px 0;border-bottom:1px solid #e5e7eb;background-color:#ffffff">
7710
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
7711
+ <tr>
7712
+ <td width="100" style="font-weight:600;color:#374151;font-size:14px;vertical-align:top;padding-left:16px">严重程度</td>
7713
+ <td style="color:#6b7280;font-size:14px;word-break:break-word;padding-right:16px"><span class="severity-{{.IncidentSeverity}}">{{.IncidentSeverity}}</span></td>
7714
+ </tr>
7715
+ </table>
7716
+ </td>
7717
+ </tr>
7718
+
7719
+ <tr>
7720
+ <td style="padding:16px 0;border-bottom:1px solid #e5e7eb;background-color:#ffffff">
7721
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
7722
+ <tr>
7723
+ <td width="100" style="font-weight:600;color:#374151;font-size:14px;vertical-align:top;padding-left:16px">协作空间</td>
7724
+ <td style="color:#6b7280;font-size:14px;word-break:break-word;padding-right:16px">{{if .ChannelName}}{{.ChannelName}}{{else}}无{{end}}</td>
7725
+ </tr>
7726
+ </table>
7727
+ </td>
7728
+ </tr>
7729
+
7730
+ <tr>
7731
+ <td style="padding:16px 0;border-bottom:1px solid #e5e7eb;background-color:#ffffff">
7732
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
7733
+ <tr>
7734
+ <td width="100" style="font-weight:600;color:#374151;font-size:14px;vertical-align:top;padding-left:16px">触发时间</td>
7735
+ <td style="color:#6b7280;font-size:14px;word-break:break-word;padding-right:16px">{{date "2006-01-02 15:04:05" .StartTime}}</td>
7736
+ </tr>
7737
+ </table>
7738
+ </td>
7739
+ </tr>
7740
+
7741
+ {{if .CreatorID}}
7742
+ <tr>
7743
+ <td style="padding:16px 0;border-bottom:1px solid #e5e7eb;background-color:#ffffff">
7744
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
7745
+ <tr>
7746
+ <td width="100" style="font-weight:600;color:#374151;font-size:14px;vertical-align:top;padding-left:16px">发起人员</td>
7747
+ <td style="color:#6b7280;font-size:14px;word-break:break-word;padding-right:16px">{{.Creator.PersonName}}</td>
7748
+ </tr>
7749
+ </table>
7750
+ </td>
7751
+ </tr>
7752
+ {{end}}
7753
+
7754
+ {{if gt (len .Responders) 0}}
7755
+ <tr>
7756
+ <td style="padding:16px 0;border-bottom:1px solid #e5e7eb;background-color:#ffffff">
7757
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
7758
+ <tr>
7759
+ <td width="100" style="font-weight:600;color:#374151;font-size:14px;vertical-align:top;padding-left:16px">处理人员</td>
7760
+ <td style="color:#6b7280;font-size:14px;word-break:break-word;padding-right:16px">{{range .Responders}}@{{.PersonName}} {{end}}</td>
7761
+ </tr>
7762
+ </table>
7763
+ </td>
7764
+ </tr>
7765
+ {{end}}
7766
+
7767
+ <tr>
7768
+ <td style="padding:16px 0;border-bottom:1px solid #e5e7eb;background-color:#ffffff">
7769
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
7770
+ <tr>
7771
+ <td width="100" style="font-weight:600;color:#374151;font-size:14px;vertical-align:top;padding-left:16px">处理进度</td>
7772
+ <td style="color:#6b7280;font-size:14px;word-break:break-word;padding-right:16px"><span class="progress-{{.Progress}}">{{.Progress}}</span></td>
7773
+ </tr>
7774
+ </table>
7775
+ </td>
7776
+ </tr>
7777
+
7778
+ {{if .Labels.resource}}
7779
+ <tr>
7780
+ <td style="padding:16px 0;border-bottom:1px solid #e5e7eb;background-color:#ffffff">
7781
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
7782
+ <tr>
7783
+ <td width="100" style="font-weight:600;color:#374151;font-size:14px;vertical-align:top;padding-left:16px">告警对象</td>
7784
+ <td style="color:#6b7280;font-size:14px;word-break:break-word;padding-right:16px">{{(joinAlertLabels . "resource" ", ")}}</td>
7785
+ </tr>
7786
+ </table>
7787
+ </td>
7788
+ </tr>
7789
+ {{end}}
7790
+
7791
+ {{if gt (len .Labels) 0}}
7792
+ <tr>
7793
+ <td style="padding:16px 0">
7794
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
7795
+ <tr>
7796
+ <td width="100" style="font-weight:600;color:#374151;font-size:14px;vertical-align:top;padding-left:16px">标签</td>
7797
+ <td style="color:#6b7280;font-size:14px;word-break:break-word;padding-right:16px;background-color:#f9fafb;padding:16px">
7798
+ <pre style="margin:0;font-family:'Courier New',monospace;font-size:13px;color:#374151;white-space:pre-wrap;word-break:break-word">{{mustToPrettyJson .Labels}}</pre>
7799
+ </td>
7800
+ </tr>
7801
+ </table>
7802
+ </td>
7803
+ </tr>
7804
+ {{end}}
7805
+ </table>
7806
+
7807
+ <!-- Action buttons -->
7808
+ <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top:32px">
7809
+ <tr>
7810
+ <td width="48%" align="center" style="padding:0">
7811
+ <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
7812
+ <tr>
7813
+ <td align="center" style="background-color:rgb(108,83,177);border-radius:6px;padding:14px 32px">
7814
+ <a href="{{.DetailUrl}}?ack=1" data-id="react-email-button" target="_blank" style="color:#ffffff;font-size:16px;font-weight:600;text-decoration:none;display:block">立即认领</a>
7815
+ </td>
7816
+ </tr>
7817
+ </table>
7818
+ </td>
7819
+ <td width="4%" style="padding:0"></td>
7820
+ <td width="48%" align="center" style="padding:0">
7821
+ <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
7822
+ <tr>
7823
+ <td align="center" style="background-color:#ffffff;border:2px solid rgb(108,83,177);border-radius:6px;padding:14px 32px">
7824
+ <a href="{{.DetailUrl}}" data-id="react-email-button" target="_blank" style="color:rgb(108,83,177);font-size:16px;font-weight:600;text-decoration:none;display:block">查看详情</a>
7825
+ </td>
7826
+ </tr>
7827
+ </table>
7828
+ </td>
7829
+ </tr>
7830
+ </table>
7831
+ </td>
7832
+ </tr>
7833
+
7834
+ <!-- Footer -->
7835
+ <tr>
7836
+ <td style="background-color:#f9fafb;padding:20px;text-align:center">
7837
+ <p style="margin:0;font-size:12px;color:#9ca3af">ALL RIGHTS RESERVED © FLASHCAT.CLOUD</p>
7838
+ </td>
7839
+ </tr>
7840
+ </table>
7841
+ </td>
7842
+ </tr>
7843
+ </table>
7573
7844
  </body>
7574
-
7575
7845
  </html>
7576
7846
  \`\`\`
7577
7847
 
@@ -7635,14 +7905,14 @@ url: "https://docs.flashcat.cloud/zh/flashduty/huawei-apm-integration-guide"
7635
7905
 
7636
7906
  ## 一、华为云 APM 告警推送配置
7637
7907
 
7638
- ### 创建 FlashDuty 告警通道
7908
+ ### 创建 Flashduty 告警通道
7639
7909
  1. 登录您的华为云控制台,检索 \`SMN\` 消息通知服务产品,并进入对应产品控制台。
7640
7910
  2. 在左侧导航栏选择 \`主题管理=>主题\`。
7641
- 3. 点击 \`创建主题\`,在编辑页面中的主题名称处输入 \`FlashDuty\` 并点击确认。
7911
+ 3. 点击 \`创建主题\`,在编辑页面中的主题名称处输入 \`Flashduty\` 并点击确认。
7642
7912
 
7643
7913
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/huawei-lts-1.png" />
7644
7914
 
7645
- 4. 回到主题列表后,在刚创建的 FlashDuty 主题中点击 \`添加订阅\`。
7915
+ 4. 回到主题列表后,在刚创建的 Flashduty 主题中点击 \`添加订阅\`。
7646
7916
 
7647
7917
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/huawei-lts-2.png" />
7648
7918
 
@@ -7658,7 +7928,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/huawei-apm-integration-guide"
7658
7928
 
7659
7929
  #### 步骤1:添加通知配置
7660
7930
  1. 登录您的 \`华为云 APM\` 控制台,在 \`应用监控=>指标\` 中,点击 \`通知配置\`。
7661
- 2. 选择对应的区域后,点击 \`新增\`,在主题处选择已创建的 \`FlashDuty\` 主题。
7931
+ 2. 选择对应的区域后,点击 \`新增\`,在主题处选择已创建的 \`Flashduty\` 主题。
7662
7932
  3. 点击 \`确认\` 完成配置。
7663
7933
 
7664
7934
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/zh/hw/hw-apm-1.png" />
@@ -7668,7 +7938,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/huawei-apm-integration-guide"
7668
7938
  2. 选择 \`告警策略\`,点击 \`新增自定义告警策略\` 或编辑已有的告警策略。
7669
7939
  3. 在 \`告警策略\` 编辑页面中,告警指标、告警条件等请按业务需要进行配置。
7670
7940
  4. \`告警内容\` 中在引用变量时,建议以K:V的格式进行配置,便于后续告警事件的解析,比如 host:\${hostInfo}。
7671
- 5. \`通知对象\` 中选择已创建的 \`FlashDuty\` 通知渠道。
7941
+ 5. \`通知对象\` 中选择已创建的 \`Flashduty\` 通知渠道。
7672
7942
  6. 点击 \`确认\` 完成配置。
7673
7943
 
7674
7944
  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/doc/zh/hw/hw-apm-2.png" />
@@ -7994,7 +8264,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/elastalert2-alert-integration-gui
7994
8264
  ---
7995
8265
 
7996
8266
  ### 配置 ElastAlert 2 告警
7997
- 遵循 [ElastAlert FlashDuty](https://elastalert2.readthedocs.io/en/latest/alerts.html#flashduty) 推送配置文档
8267
+ 遵循 [ElastAlert Flashduty](https://elastalert2.readthedocs.io/en/latest/alerts.html#flashduty) 推送配置文档
7998
8268
 
7999
8269
  1. 创建或编辑告警规则文件,例如 \`rules/elastalert2_alert.yaml\`。
8000
8270
  2. 在 \`alert\` 字段中填写 \`flashduty\` 告警类型。
@@ -8046,7 +8316,7 @@ filter:
8046
8316
  query_string:
8047
8317
  query: "created_at:*"
8048
8318
 
8049
- # ------- FlashDuty ----------------
8319
+ # ------- Flashduty ----------------
8050
8320
  alert: flashduty
8051
8321
  flashduty_integration_key: "xxxx"
8052
8322
  flashduty_title: "elastalert2 告警"
@@ -8061,7 +8331,7 @@ flashduty_group: "group1"
8061
8331
  flashduty_cluster: "bj"
8062
8332
  flashduty_app: "app1 "
8063
8333
  flashduty_env: "dev"
8064
- # ------- FlashDuty ----------------
8334
+ # ------- Flashduty ----------------
8065
8335
  \`\`\`
8066
8336
 
8067
8337
  5.重启 ElastAlert,等待告警触发。`,DingtalkAlert:`---
@@ -8145,7 +8415,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/dingtalk-alert-integration-guide"
8145
8415
  ## 严重程度映射关系
8146
8416
  ---
8147
8417
 
8148
- 当前钉钉告警集成推送到 Flashduty 的严重程度均为Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/flashduty/alert-pipelines) 来自定义严重程度。
8418
+ 当前钉钉告警集成推送到 Flashduty 的严重程度均为Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-pipelines) 来自定义严重程度。
8149
8419
 
8150
8420
  `,FeishuAlert:`---
8151
8421
  title: "飞书告警集成"
@@ -8228,7 +8498,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/feishu-alert-integration-guide"
8228
8498
  ## 严重程度映射关系
8229
8499
  ---
8230
8500
 
8231
- 当前飞书告警集成推送到 Flashduty 的严重程度均为 Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/flashduty/alert-pipelines) 来自定义严重程度。
8501
+ 当前飞书告警集成推送到 Flashduty 的严重程度均为 Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-pipelines) 来自定义严重程度。
8232
8502
 
8233
8503
  `,VolcEngineDetect:`---
8234
8504
  title: "火山引擎云拨测告警事件"
@@ -8791,7 +9061,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-detect-integration-gui
8791
9061
 
8792
9062
  <div class="md-block">
8793
9063
 
8794
- 当前 Cloudflare 集成推送到 Flashduty 的告警等级均为 Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/flashduty/alert-pipelines) 来自定义严重程度。
9064
+ 当前 Cloudflare 集成推送到 Flashduty 的告警等级均为 Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-pipelines) 来自定义严重程度。
8795
9065
 
8796
9066
  </div>
8797
9067
 
@@ -8870,12 +9140,12 @@ url: "https://docs.flashcat.cloud/zh/flashduty/wecom-alert-integration-guide"
8870
9140
 
8871
9141
  ### 注意事项
8872
9142
  - 企微告警集成地址仅支持接收 Text、Markdown 消息类型,其他消息无法接收。
8873
- - Flashduty 会生成默认告警标题: “企微机器人告警”,如果您需要更改标题,可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/flashduty/alert-pipelines) 来自定义标题。
9143
+ - Flashduty 会生成默认告警标题: “企微机器人告警”,如果您需要更改标题,可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-pipelines) 来自定义标题。
8874
9144
 
8875
9145
  ## 严重程度映射关系
8876
9146
  ---
8877
9147
 
8878
- 当前企微告警集成推送到 Flashduty 的严重程度均为Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/flashduty/alert-pipelines) 来自定义严重程度。`,ServiceDeskPlusSync:`---
9148
+ 当前企微告警集成推送到 Flashduty 的严重程度均为Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-pipelines) 来自定义严重程度。`,ServiceDeskPlusSync:`---
8879
9149
  title: "ServiceDesk Plus 同步"
8880
9150
  description: "通过 ServiceDesk Plus 同步 Webhook,实现故障与 ServiceDesk Plus request 的关联。"
8881
9151
  date: "2025-05-19T10:00:00+08:00"
@@ -8947,30 +9217,20 @@ url: "https://docs.flashcat.cloud/zh/flashduty/servicedesk-plus-sync"
8947
9217
  - 手动触发:需要在故障详情页的更多操作中手动触发 ServiceDesk Plus 同步(该集成配置的名称为触发器名称)。
8948
9218
 
8949
9219
  5. **协作空间**:选择该集成生效的协作空间。
8950
- 6. **请求模版**:选择创建 request 时使用的模版。
8951
- 7. **严重程度映射**:Flashduty 的严重程度与 ServiceDesk Plus 优先级的映射关系,默认映射关系,请参考[优先级映射](#优先级映射)。
8952
- 8. **自定义字段映射**:可以将故障中的标签或自定义字段,映射到 ServiceDesk Plus 工单中的对应文本字段,实现信息自动填充。该功能支持将常见上下文信息(如服务名、实例地址、指标名称等)同步至 ServiceNow,便于后续排查与跟踪。
9220
+ 6. **请求模版**:选择创建 request 时使用的模版,为空时使用默认模版创建工单。
9221
+ 7. **严重程度映射**:可以选择使用严重程度、故障标签、自定义字段的值与 ServiceDesk Plus 的优先级字段进行映射,如果为空,在创建工单时不传该字段。
9222
+ 8. **自定义字段映射**:可以将故障中的标签或自定义字段,映射到 ServiceDesk Plus 工单中的对应文本字段,实现信息自动填充。该功能支持将常见上下文信息(如服务名、实例地址、指标名称等)同步至 ServiceDesk Plus,便于后续排查与跟踪。
8953
9223
  - 仅支持目标为单行文本或多行文本类型的字段。
8954
9224
  - 支持从故障标签(如 service、instance)或自定义属性中提取值。
8955
9225
  - 若源字段为空,目标字段也将保持为空,不会覆盖原有内容。
8956
- - 映射配置在集成设置中统一管理,无需每次手动填写。
8957
9226
 
8958
9227
  9. **指派对象映射**:当 Flashduty 的故障同步至 ServiceDesk Plus 并需要自动指派到 Technician 或 Group 时,可以获取 Flashduty 故障标签的值作为指派对象(如果对应的指派对象不存在,会导致同步失败,请谨慎选择)。
8959
-
8960
- 10. 点击\`保存\`完成配置。
9228
+ 10. **请求者**:创建工单时指定的 requester,如果工单在创建时该字段是必须,则需要配置。
9229
+ 11. 点击\`保存\`完成配置。
8961
9230
 
8962
9231
  ### 在 ServiceDesk Plus
8963
- #### 步骤2 创建 Requester
8964
- 当 Flashduty 的故障同步到 ServiceDesk Plus 时,系统自动设置的 Requester
8965
-
8966
- 1. 登录 ServiceDesk Plus 控制台,找到 \`Setup\` 配置页面。
8967
- 2. 选择 \`Users & Permissions\` 之后,进入到 \`Users\` 创建页面,选择 \`New Requester\`。
8968
- 3. \`Name (Display Name)\` 和 \`First Name\` 填写 **flashduty**,\`Email\` 填写 **flashduty-sync@flashcat.cloud** 。
8969
- 4. 其他可按需设置,点击 \`Save\` 保存配置。
8970
9232
 
8971
- ![2025-09-24-15-03-31](https://docs-cdn.flashcat.cloud/images/png/9ee174f85ac918476888efd759511d31.png)
8972
-
8973
- #### 步骤3 配置同步 <span id="配置同步"></span>
9233
+ #### 步骤2 配置同步 <span id="配置同步"></span>
8974
9234
  要实现 ServiceDesk Plus 的 Request 向 Flashduty 的同步,请参考此配置项。**注意:** 不同版本的路径可能略有不同,但配置方法相同。
8975
9235
  ##### 创建 Webhook
8976
9236
  1. 登录 ServiceDesk Plus 控制台,找到 \`Setup\` 配置页面。
@@ -9009,7 +9269,7 @@ url: "https://docs.flashcat.cloud/zh/flashduty/servicedesk-plus-sync"
9009
9269
 
9010
9270
  ![2025-09-23-13-32-32](https://docs-cdn.flashcat.cloud/images/png/94ca1d094ed38ebcaf299364eddfd0ac.png)
9011
9271
 
9012
- ##### 创建触发器
9272
+ ##### 步骤3 创建触发器
9013
9273
  1. 登录 ServiceDesk Plus 控制台,找到 \`Setup\` 配置页面。
9014
9274
  2. 选择 \`Automation\` 之后,进入到 \`Triggers\` 页面,并选择 \`Request\`。
9015
9275
  3. 点击 \`New Trigger\`,在编辑页面中 \`Name\` 填写 **to_Flashduty**。
@@ -9049,14 +9309,6 @@ url: "https://docs.flashcat.cloud/zh/flashduty/servicedesk-plus-sync"
9049
9309
  | Canceled | CLosed | 关闭 |
9050
9310
  | Rejected | CLosed | 关闭 |
9051
9311
 
9052
- ### 优先级映射 <span id="优先级映射"></span>
9053
-
9054
- | ServiceDesk Plus | Flashduty | 备注 |
9055
- | ---------- | --------- | ---- |
9056
- | Low | Info | 提示 |
9057
- | Medium | Warning | 警告 |
9058
- | High | Critical | 灾难 |
9059
-
9060
9312
 
9061
9313
  ## 常见问题
9062
9314
 
@@ -9064,4 +9316,878 @@ url: "https://docs.flashcat.cloud/zh/flashduty/servicedesk-plus-sync"
9064
9316
  <summary> Scope 是否可以更改</summary>
9065
9317
  不可以,目前所使用的 Scope 已经是最小单元了,Flashduty 在与 ServiceDesc Plus 进行同步 request 时,需要做获取/创建/更新操作,以及在配置集成时,需要获取优先级/自定义字段列表,所以需要相应的权限支持。
9066
9318
  </details>
9067
- `};n.FlashDocsZh=e})(window);
9319
+ `,Harbor:`---
9320
+ title: "Harbor 告警集成"
9321
+ description: "通过 webhook 的方式同步 Harbor 的告警事件到 Flashduty,实现告警事件自动化降噪处理"
9322
+ date: "2025-05-19T10:00:00+08:00"
9323
+ url: "https://docs.flashcat.cloud/zh/flashduty/harboe-integration-guide"
9324
+ ---
9325
+
9326
+ 通过 webhook 的方式同步 Harbor 的告警事件到 Flashduty,实现告警事件自动化降噪处理。
9327
+
9328
+ <div class="hide">
9329
+
9330
+ ## 在 Flashduty
9331
+ ---
9332
+
9333
+ ### 创建 Harbor 告警集成
9334
+
9335
+ 您可通过以下2种方式,获取一个企微机器人告警集成地址,任选其一即可。
9336
+
9337
+ #### 使用专属集成
9338
+
9339
+ 当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。
9340
+
9341
+ <details>
9342
+ <summary>展开</summary>
9343
+
9344
+ 1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面
9345
+ 2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面
9346
+ 3. 选择 **Harbor** 集成,点击 **保存**,生成卡片。
9347
+ 4. 点击生成的卡片,可以查看到 **Harbor 告警集成地址**,复制备用,完成。
9348
+
9349
+ </details>
9350
+
9351
+ #### 使用共享集成
9352
+
9353
+ 当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。
9354
+
9355
+ <details>
9356
+ <summary>展开</summary>
9357
+
9358
+ 1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。
9359
+ 2. 选择 **Harbor** 集成:
9360
+ - **集成名称**:为当前集成定义一个名称。
9361
+ - **推送模式**:选择企微告警在何种情况下触发或恢复告警。
9362
+ 3. 复制当前页面的 **Harbor 告警集成地址** 备用。
9363
+ 4. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 \`路由\` 进行更多路由规则的配置)。
9364
+ 5. 完成。
9365
+
9366
+ </details>
9367
+
9368
+ ## 在 Harbor
9369
+ ---
9370
+ </div>
9371
+
9372
+
9373
+ ### 配置 Webhook 通道
9374
+
9375
+ 1. 使用至少具有项目管理员权限的帐户登录 Harbor 界面。
9376
+ 2. 转到\`项目\`,选择一个项目,然后选择 \`Webhook\`。
9377
+ 3. 选择通知类型 \`HTTP\`,以便 webhook 将发送到 HTTP 端点。
9378
+ 4. 当选择 HTTP 通知类型时,选择有效负载格式为 \`Default 或 CloudEvents\`。
9379
+ 5. 选择您要\`订阅的事件\`。
9380
+ 6. \`Endpoint URL\` 输入告警集成的<span class='integration_url'>推送地址</span>。
9381
+ 7. 单击 添加 以创建 webhook。
9382
+
9383
+ ## 严重程度映射关系
9384
+ ---
9385
+
9386
+ 当前 Harbor 告警集成推送到 Flashduty 的严重程度均为 Warning,但您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-pipelines) 来自定义严重程度。`,LabelMappingAPI:`配置标签映射 API,当告警事件到达时,Flashduty 将自动调用您配置的外部 API 获取增强标签,实现告警信息的动态丰富和关联。通过此功能,您可以将 CMDB、HR 系统等外部数据源的信息自动附加到告警上。
9387
+
9388
+ ## 一、功能概述
9389
+
9390
+ 标签映射 API 允许您构建自定义的外部服务来增强告警标签。工作流程如下:
9391
+
9392
+ 1. Flashduty 接收到告警事件
9393
+ 2. 系统根据配置,将事件信息和期望获取的标签列表发送到您的 API
9394
+ 3. 您的 API 查询外部数据源(如 CMDB、数据库等)
9395
+ 4. API 返回计算得到的增强标签
9396
+ 5. Flashduty 将返回的标签附加到告警上
9397
+
9398
+ <span id="ApiSpec"></span>
9399
+
9400
+ ## 二、API 规范
9401
+
9402
+ ### 请求方式
9403
+
9404
+ <div class="md-block">
9405
+
9406
+ POST, Content-Type:"application/json"
9407
+
9408
+ </div>
9409
+
9410
+ ### 请求 Payload:
9411
+
9412
+ <div class="md-block">
9413
+
9414
+ | 字段 | 类型 | 必含 | 释义 |
9415
+ | :--------: | :-------------------: | :--: | :--------- |
9416
+ | result_label_keys | []string | 是 | 期望返回的标签 Key 列表,由用户在 Flashduty 中配置 |
9417
+ | event | [Event](#Event) | 是 | 当前告警事件的完整信息 |
9418
+
9419
+ <span id="Event"></span>
9420
+ **Event**:
9421
+
9422
+ | 字段 | 类型 | 必含 | 释义 |
9423
+ | :--------: | :-------------------: | :--: | :--------- |
9424
+ | account_id | int64 | 是 | 账户 ID |
9425
+ | channel_id | int64 | 是 | 协作空间 ID |
9426
+ | data_source_id | int64 | 是 | 数据源 ID |
9427
+ | data_source_type | string | 是 | 数据源类型,如 prometheus、zabbix 等 |
9428
+ | title | string | 是 | 告警标题 |
9429
+ | title_rule | string | 否 | 标题规则 |
9430
+ | description | string | 否 | 告警描述 |
9431
+ | alert_key | string | 是 | 告警唯一标识 |
9432
+ | alert_id | string | 是 | 告警 ID |
9433
+ | event_severity | string | 是 | 事件严重程度,枚举值:Critical、Warning、Info |
9434
+ | event_status | string | 是 | 事件状态,枚举值:Critical、Warning、Info、Ok |
9435
+ | event_time | int64 | 是 | 事件时间,Unix 秒时间戳 |
9436
+ | labels | map[string]string | 否 | 告警原始标签 KV |
9437
+ | images | []string | 否 | 告警关联图片列表 |
9438
+
9439
+ </div>
9440
+
9441
+ ### 请求示例
9442
+
9443
+ <div class="md-block">
9444
+
9445
+ \`\`\`json
9446
+ {
9447
+ "result_label_keys": ["owner_team", "service_tier", "host_ip"],
9448
+ "event": {
9449
+ "account_id": 1,
9450
+ "channel_id": 20,
9451
+ "data_source_id": 15,
9452
+ "data_source_type": "prometheus",
9453
+ "description": "CPU usage for instance '10.0.1.101:9100' is over 95%",
9454
+ "title": "High CPU Usage on instance 10.0.1.101:9100",
9455
+ "title_rule": "",
9456
+ "alert_key": "d41d8cd98f00b204e9800998ecf8427e",
9457
+ "alert_id": "62d6c0f6b8f1b2b3c4d5e6f7",
9458
+ "event_severity": "Critical",
9459
+ "event_status": "Critical",
9460
+ "event_time": 1678886400,
9461
+ "labels": {
9462
+ "region": "us-east-1",
9463
+ "service": "service-A",
9464
+ "env": "production",
9465
+ "instance": "10.0.1.101:9100"
9466
+ },
9467
+ "images": []
9468
+ }
9469
+ }
9470
+ \`\`\`
9471
+
9472
+ </div>
9473
+
9474
+ ### 响应规范
9475
+
9476
+ <div class="md-block">
9477
+
9478
+ **成功响应:**
9479
+
9480
+ | 字段 | 类型 | 必含 | 释义 |
9481
+ | :--------: | :-------------------: | :--: | :--------- |
9482
+ | result_labels | map[string]string | 是 | 返回的增强标签 KV 对象 |
9483
+
9484
+ - HTTP 状态码:\`200 OK\`
9485
+ - 响应体必须是包含 \`result_labels\` 字段的 JSON 对象
9486
+ - \`result_labels\` 的 Key 必须是请求中 \`result_label_keys\` 指定的标签名
9487
+ - 如果某个标签无法获取,**不应**在响应中包含该 Key
9488
+
9489
+ **成功响应示例:**
9490
+
9491
+ \`\`\`json
9492
+ {
9493
+ "result_labels": {
9494
+ "owner_team": "team-database",
9495
+ "service_tier": "tier-1",
9496
+ "host_ip": "10.0.1.101"
9497
+ }
9498
+ }
9499
+ \`\`\`
9500
+
9501
+ **失败响应:**
9502
+
9503
+ | 状态码 | 含义 |
9504
+ | :--------: | :--------- |
9505
+ | 404 Not Found | 根据 event 信息无法找到任何可用于增强的数据 |
9506
+ | 400 Bad Request | 请求体格式错误或 event 对象缺少关键字段 |
9507
+ | 5xx | API 内部发生非预期的错误(如数据库连接失败) |
9508
+
9509
+ > **提示:** 返回 \`200 OK\` 状态码 + 空的 \`result_labels: {}\` 对象也会被视为"无结果",但使用 \`404\` 状态码是更规范的做法。
9510
+
9511
+ </div>
9512
+
9513
+ <span id="ServiceConfig"></span>
9514
+
9515
+ ## 三、配置映射服务
9516
+
9517
+ 在 Flashduty 中配置标签映射时,您需要先创建一个映射服务,然后在标签增强规则中引用该服务。
9518
+
9519
+ ### 映射服务字段说明
9520
+
9521
+ <div class="md-block">
9522
+
9523
+ | 字段名 | 类型 | 必填 | 释义 |
9524
+ | :--------: | :-------------------: | :--: | :--------- |
9525
+ | api_name | string | 是 | 服务的可读名称,用于在 UI 中选择和引用,例如 "CMDB 资产查询 API" |
9526
+ | description | string | 否 | 对该服务的详细描述 |
9527
+ | url | string | 是 | API 的请求 URL,支持使用模板变量 |
9528
+ | headers | map[string]string | 否 | HTTP 请求头,用于传递自定义认证信息,受[安全黑名单](#HeaderBlacklist)限制 |
9529
+ | timeout | int | 否 | 请求超时时间(单位:秒),可取值:1~3 |
9530
+ | retry_count | int | 否 | 请求失败后的重试次数,可取值:0~1 |
9531
+ | insecure_skip_verify | bool | 否 | 请求 HTTPS 时跳过证书验证 |
9532
+ | status | string | 否 | 服务状态,如 enabled、disabled |
9533
+
9534
+ </div>
9535
+
9536
+ ### 标签增强规则配置
9537
+
9538
+ 配置标签增强规则时,只需要关注以下配置:
9539
+
9540
+ 1. **result_label_keys**:指定期望从 API 获取的标签列表,Flashduty 会自动将此列表和当前的 \`event\` 对象组合成请求体发送给您的 API
9541
+ 2. **映射服务**:选择或配置 API 服务的 URL、Headers 等信息
9542
+
9543
+ <span id="HeaderBlacklist"></span>
9544
+
9545
+ ## 四、Header 安全约束
9546
+
9547
+ 为了防止安全绕过、请求走私、IP 伪造及缓存污染,在自定义 API 请求头时,**禁止**使用以下 Header。系统网关将自动过滤或拒绝包含这些 Header 的请求。
9548
+
9549
+ <div class="md-block">
9550
+
9551
+ | 分类 | 禁用 Header | 风险说明 |
9552
+ | :--- | :--- | :--- |
9553
+ | **认证与授权** | \`authorization\`, \`proxy-authorization\`, \`cookie\`, \`x-api-key\`, \`x-access-token\` | 防止凭证泄露或非法劫持已有的认证上下文 |
9554
+ | **IP 与地理位置伪造** | \`x-forwarded-for\`, \`x-real-ip\`, \`true-client-ip\`, \`x-client-ip\` | 防止客户端伪造来源 IP 以绕过频率限制或黑白名单 |
9555
+ | **主机与路由操控** | \`host\`, \`x-forwarded-host\`, \`x-forwarded-proto\`, \`x-internal-id\`, \`x-user-id\` | 防止 Host 注入攻击、重定向循环或伪造内部系统 ID |
9556
+ | **协议与请求走私** | \`transfer-encoding\`, \`upgrade\`, \`connection\` | 防止利用 HTTP 协议差异进行的请求走私攻击 |
9557
+
9558
+ </div>
9559
+
9560
+ ### Header 最佳实践
9561
+
9562
+ 1. **白名单模式**:建议仅允许以 \`X-Custom-\` 或 \`X-Enrich-\` 为前缀的自定义 Header
9563
+ 2. **长度限制**:单个 Header 的 Key 长度不应超过 1024 字节, Value 长度不应超过 4096 字节
9564
+ 3. **格式校验**:Header 的 Value 严禁包含换行符(\`\\r\`、\`\\n\`),以防止 Header 注入攻击
9565
+
9566
+ ## 五、最佳实践
9567
+
9568
+ 1. **性能优先:** 此 API 位于告警处理的关键路径上,必须保证低延迟。对外部数据源的查询应尽可能快,建议实现缓存机制。
9569
+
9570
+ 2. **明确的错误处理:** 善用 HTTP 状态码(特别是 \`404\`)来传递清晰的执行结果。
9571
+
9572
+ 3. **幂等性:** API 的设计应尽可能幂等。对于同一个 \`event\`,多次调用应返回相同的结果。
9573
+
9574
+ 4. **安全性:** API 必须通过认证和授权机制进行保护,推荐使用自定义 Header(如 \`X-Custom-Auth\`)传递认证信息。
9575
+
9576
+ ## 六、常见问题
9577
+
9578
+ 1. **服务是否有响应超时时间?**
9579
+
9580
+ - 服务需要在配置的超时时间内返回响应,超时则认为响应失败
9581
+
9582
+ 2. **如果 API 返回失败会怎样?**
9583
+
9584
+ - 告警会正常处理,但不会附加增强标签
9585
+ - 根据配置的重试次数,系统可能会重试请求
9586
+
9587
+ 3. **result_label_keys 可以动态变化吗?**
9588
+
9589
+ - 是的,您可以在 Flashduty 中随时修改期望获取的标签列表,无需修改 API 代码
9590
+ `,VolcEngineRTC:`---
9591
+ title: "火山引擎 RTC 告警集成"
9592
+ description: "通过 webhook 的方式同步火山引擎 RTC 的告警事件到 Flashduty,实现告警事件自动化降噪处理"
9593
+ date: "2025-05-19T10:00:00+08:00"
9594
+ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-rtc-integration-guide"
9595
+ ---
9596
+
9597
+ 通过 webhook 的方式同步火山引擎 RTC 的告警事件到 Flashduty,实现告警事件自动化降噪处理。
9598
+
9599
+ <div class="hide">
9600
+
9601
+ ## 在 Flashduty
9602
+ ---
9603
+
9604
+ ### 创建火山引擎 RTC 告警集成
9605
+
9606
+ 您可通过以下2种方式,获取一个企微机器人告警集成地址,任选其一即可。
9607
+
9608
+ #### 使用专属集成
9609
+
9610
+ 当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。
9611
+
9612
+ <details>
9613
+ <summary>展开</summary>
9614
+
9615
+ 1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面
9616
+ 2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面
9617
+ 3. 选择 **火山引擎 RTC** 集成,点击 **保存**,生成卡片。
9618
+ 4. 点击生成的卡片,可以查看到 **火山引擎 RTC 告警集成地址**,复制备用,完成。
9619
+
9620
+ </details>
9621
+
9622
+ #### 使用共享集成
9623
+
9624
+ 当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。
9625
+
9626
+ <details>
9627
+ <summary>展开</summary>
9628
+
9629
+ 1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。
9630
+ 2. 选择 **火山引擎 RTC** 集成:
9631
+ - **集成名称**:为当前集成定义一个名称。
9632
+ - **推送模式**:选择企微告警在何种情况下触发或恢复告警。
9633
+ 3. 复制当前页面的 **火山引擎 RTC 告警集成地址** 备用。
9634
+ 4. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 \`路由\` 进行更多路由规则的配置)。
9635
+ 5. 完成。
9636
+
9637
+ </details>
9638
+
9639
+ ## 在火山引擎
9640
+ ---
9641
+ </div>
9642
+
9643
+
9644
+ ### 配置告警规则
9645
+
9646
+ 1. 登录您的火山引擎控制台,检索 \`实时音视频\` 产品,并进入对应产品控制台。
9647
+ 2. 在左侧菜单中选择 \`监控台->告警通知\`,并转到 \`告警规则\` 页面。
9648
+ 3. 创建或编辑告警规则,在规则页面中勾选 \`告警回调\` 并输入告警集成的<span class='integration_url'>推送地址</span>。
9649
+ 4. 其他选项按需配置。
9650
+ 5. 点击 \`确定\` 完成配置。
9651
+
9652
+ ![2026-02-05-17-32-39](https://docs-cdn.flashcat.cloud/images/png/21908f6a040f61ad2e8091226874fe97.png)
9653
+
9654
+ ## 严重程度映射关系
9655
+ ---
9656
+ |火山引擎RTC| Flashduty|状态|
9657
+ |---|---|---|
9658
+ |严重|Critical|严重|
9659
+ |警告|Warning|警告|
9660
+ |通知|Info|提醒|
9661
+
9662
+ 您可以通过[告警处理 Pipeline](https://docs.flashcat.cloud/zh/on-call/integration/alert-integration/alert-pipelines) 来自定义严重程度。`,UcloudCloudWatch:`---
9663
+ title: "Ucloud CloudWatch 告警集成"
9664
+ description: "通过 webhook 的方式同步 Ucloud CloudWatch 的告警事件到 Flashduty,实现告警事件自动化降噪处理"
9665
+ date: "2025-05-19T10:00:00+08:00"
9666
+ url: "https://docs.flashcat.cloud/zh/flashduty/volcengine-rtc-integration-guide"
9667
+ ---
9668
+
9669
+ 通过 webhook 的方式同步 Ucloud CloudWatch 的告警事件到 Flashduty,实现告警事件自动化降噪处理。
9670
+
9671
+ <div class="hide">
9672
+
9673
+ ## 在 Flashduty
9674
+ ---
9675
+
9676
+ ### 创建 Ucloud CloudWatch 告警集成
9677
+
9678
+ 您可通过以下2种方式,获取一个企微机器人告警集成地址,任选其一即可。
9679
+
9680
+ #### 使用专属集成
9681
+
9682
+ 当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。
9683
+
9684
+ <details>
9685
+ <summary>展开</summary>
9686
+
9687
+ 1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面
9688
+ 2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面
9689
+ 3. 选择 **Ucloud CloudWatch** 集成,点击 **保存**,生成卡片。
9690
+ 4. 点击生成的卡片,可以查看到 **火山引擎 RTC 告警集成地址**,复制备用,完成。
9691
+
9692
+ </details>
9693
+
9694
+ #### 使用共享集成
9695
+
9696
+ 当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。
9697
+
9698
+ <details>
9699
+ <summary>展开</summary>
9700
+
9701
+ 1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。
9702
+ 2. 选择 **Ucloud CloudWatch** 集成:
9703
+ - **集成名称**:为当前集成定义一个名称。
9704
+ - **推送模式**:选择企微告警在何种情况下触发或恢复告警。
9705
+ 3. 复制当前页面的 **Ucloud CloudWatch 告警集成地址** 备用。
9706
+ 4. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 \`路由\` 进行更多路由规则的配置)。
9707
+ 5. 完成。
9708
+
9709
+ </details>
9710
+
9711
+ ## 在 Ucloud
9712
+ ---
9713
+ </div>
9714
+
9715
+
9716
+ ### 步骤1:配置通知模版
9717
+
9718
+ 1. 登录您的 Ucloud 控制台,检索 \`CloudWatch\` 产品,并进入对应产品控制台。
9719
+ 2. 在菜单中选择 \`通知管理\`,并转到 \`通知模版\` 页面。
9720
+ 3. 创建或编辑通知模版,在模版页面中勾选 \`接口回调\`。
9721
+ 4. **回调语言**选择 \`英文\`,输入框中输入告警集成的<span class='integration_url'>推送地址</span>。
9722
+ 5. 模版名称输入 \`Flashduty\` 或其他。
9723
+ 6. 其他选项按需配置。
9724
+ 7. 点击 \`提交\` 完成配置。
9725
+
9726
+ ![2026-02-05-17-31-12](https://docs-cdn.flashcat.cloud/images/png/7243d6686265fd95da85f88efc1feab5.png)
9727
+
9728
+ ### 步骤2:配置告警策略
9729
+ 1. 登录您的 Ucloud 控制台,检索 \`CloudWatch\` 产品,并进入对应产品控制台。
9730
+ 2. 在菜单中选择 \`告警管理\`,并转到 \`告警策略\` 页面。
9731
+ 3. 新建或编辑告警策略,找到策略配置页面的**通知设置**,选择**步骤1** 创建的通知模版。
9732
+ 4. 其他选项按需配置。
9733
+ 5. 点击 \`提交\` 完成配置。
9734
+
9735
+
9736
+ ## 严重程度映射关系
9737
+ ---
9738
+ 当前 Ucloud CloudWatch 告警集成推送到 Flashduty 的严重程度均为 Warning,但您可以通过[告警处理 Pipeline](/zh/on-call/integration/alert-integration/alert-pipelines) 来自定义严重程度。`,Nagios:`---
9739
+ title: "Nagios 告警集成"
9740
+ description: "通过 webhook 的方式同步 Nagios 告警事件到 Flashduty,实现告警事件自动化降噪处理"
9741
+ date: "2025-05-19T10:00:00+08:00"
9742
+ url: "https://docs.flashcat.cloud/zh/flashduty/nagios-integration-guide"
9743
+ ---
9744
+
9745
+ 通过 webhook 的方式同步 Nagios 告警事件到 Flashduty,实现告警事件自动化降噪处理。
9746
+
9747
+ <div class="hide">
9748
+
9749
+ ## 在 Flashduty
9750
+ ---
9751
+ 您可通过以下2种方式,获取一个集成推送地址,任选其一即可。
9752
+
9753
+ ### 使用专属集成
9754
+
9755
+ 当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。
9756
+
9757
+ <details>
9758
+ <summary>展开</summary>
9759
+
9760
+ 1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面
9761
+ 2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面
9762
+ 3. 选择 **Nagios** 集成,点击 **保存**,生成卡片。
9763
+ 4. 点击生成的卡片,可以查看到 **推送地址**,复制备用,完成。
9764
+
9765
+
9766
+ </details>
9767
+
9768
+ ### 使用共享集成
9769
+
9770
+ 当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。
9771
+
9772
+ <details>
9773
+ <summary>展开</summary>
9774
+
9775
+ 1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。
9776
+ 2. 选择 **Nagios** 集成:
9777
+ - **集成名称**:为当前集成定义一个名称。
9778
+ 3. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 \`路由\` 进行更多路由规则的配置)。
9779
+ 4. 点击 **保存** 后,复制当前页面的新生成的 **推送地址** 备用。
9780
+ 5. 完成。
9781
+
9782
+ </details>
9783
+
9784
+ </div>
9785
+
9786
+ ## 在 Nagios
9787
+ ---
9788
+
9789
+ 不同的系统和安装方式,Nagios 的安装路径可能不同,请根据实际情况调整以下配置中的路径。
9790
+
9791
+ ### 步骤 1:下载通知脚本
9792
+
9793
+ <div class="md-block">
9794
+
9795
+ 登录 Nagios Server 所在服务器,下载通知脚本到 Nagios 插件目录:
9796
+
9797
+ - **Debian/Ubuntu 系统**(通常为 \`/usr/lib/nagios/plugins/\`):
9798
+
9799
+ \`\`\`bash
9800
+ cd /usr/lib/nagios/plugins/
9801
+ wget --header="Referer: https://console.flashcat.cloud" https://download.flashcat.cloud/flashduty/integration/nagios/send_to_flashduty.sh
9802
+ chmod +x send_to_flashduty.sh
9803
+ \`\`\`
9804
+
9805
+ - **RHEL/CentOS 系统**(通常为 \`/usr/lib64/nagios/plugins/\`):
9806
+
9807
+ \`\`\`bash
9808
+ cd /usr/lib64/nagios/plugins/
9809
+ wget --header="Referer: https://console.flashcat.cloud" https://download.flashcat.cloud/flashduty/integration/nagios/send_to_flashduty.sh
9810
+ chmod +x send_to_flashduty.sh
9811
+ \`\`\`
9812
+
9813
+ - **源码安装**(通常为 \`/usr/local/nagios/libexec/\`):
9814
+
9815
+ \`\`\`bash
9816
+ cd /usr/local/nagios/libexec/
9817
+ wget --header="Referer: https://console.flashcat.cloud" https://download.flashcat.cloud/flashduty/integration/nagios/send_to_flashduty.sh
9818
+ chmod +x send_to_flashduty.sh
9819
+ \`\`\`
9820
+
9821
+ #### 注意: 脚本中使用了 \`curl\` 命令,请确保 Nagios Server 上已安装 curl。
9822
+
9823
+ </div>
9824
+
9825
+ ### 步骤 2:创建 Flashduty 配置文件
9826
+
9827
+ <div class="md-block">
9828
+
9829
+ 下载 Flashduty 配置文件到 Nagios 配置目录:
9830
+
9831
+ - **Debian/Ubuntu 系统**(通常为 \`/etc/nagios3/conf.d/\`):
9832
+
9833
+ \`\`\`bash
9834
+ cd /etc/nagios3/conf.d/
9835
+ wget --header="Referer: https://console.flashcat.cloud" https://download.flashcat.cloud/flashduty/integration/nagios/flashduty.cfg
9836
+ \`\`\`
9837
+
9838
+ - **RHEL/CentOS 系统**(通常为 \`/etc/nagios/objects/\`):
9839
+
9840
+ \`\`\`bash
9841
+ cd /etc/nagios/objects/
9842
+ wget --header="Referer: https://console.flashcat.cloud" https://download.flashcat.cloud/flashduty/integration/nagios/flashduty.cfg
9843
+ \`\`\`
9844
+
9845
+ - **源码安装**(通常为 \`/usr/local/nagios/etc/objects/\`):
9846
+
9847
+ \`\`\`bash
9848
+ cd /usr/local/nagios/etc/objects/
9849
+ wget --header="Referer: https://console.flashcat.cloud" https://download.flashcat.cloud/flashduty/integration/nagios/flashduty.cfg
9850
+ \`\`\`
9851
+
9852
+ </div>
9853
+
9854
+ ### 步骤 3:修改配置文件
9855
+
9856
+ <div class="md-block">
9857
+
9858
+ 编辑下载的 \`flashduty.cfg\` 文件,修改以下内容:
9859
+
9860
+ 1. 将 \`pager\` 字段的值替换为您在 Flashduty 控制台获取的集成推送地址
9861
+ 2. 根据您的 Nagios 安装路径,修改 \`command_line\` 中脚本的路径
9862
+
9863
+ 配置文件内容示例:
9864
+
9865
+ \`\`\`
9866
+ define contact {
9867
+ contact_name Flashduty
9868
+ alias Flashduty Alert Receiver
9869
+ service_notification_commands notify-service-by-Flashduty
9870
+ host_notification_commands notify-host-by-Flashduty
9871
+ service_notification_options w,u,c,r
9872
+ host_notification_options d,u,r
9873
+ service_notification_period 24x7
9874
+ host_notification_period 24x7
9875
+ pager <YOUR_FLASHDUTY_PUSH_URL>
9876
+ }
9877
+
9878
+
9879
+ define command {
9880
+ command_name notify-host-by-Flashduty
9881
+ command_line <NAGIOS_PLUGIN_PATH>/send_to_flashduty.sh type=HOST WEBHOOK_URL="$CONTACTPAGER$" hostname="$HOSTNAME$" state="$HOSTSTATE$" output="$HOSTOUTPUT$" notification_type="$NOTIFICATIONTYPE$" time="$LONGDATETIME$" host_address="$HOSTADDRESS$" host_alias="$HOSTALIAS$" check_command="$HOSTCHECKCOMMAND$"
9882
+ }
9883
+
9884
+ define command {
9885
+ command_name notify-service-by-Flashduty
9886
+ command_line <NAGIOS_PLUGIN_PATH>/send_to_flashduty.sh type=SERVICE WEBHOOK_URL="$CONTACTPAGER$" hostname="$HOSTNAME$" state="$SERVICESTATE$" output="$SERVICEOUTPUT$" notification_type="$NOTIFICATIONTYPE$" time="$LONGDATETIME$" host_address="$HOSTADDRESS$" service_desc="$SERVICEDESC$" host_alias="$HOSTALIAS$" max_attempts="$MAXSERVICEATTEMPTS$"
9887
+ }
9888
+ \`\`\`
9889
+
9890
+ 参数说明:
9891
+ - \`pager\`:Flashduty 推送地址,即您在 Flashduty 控制台获取的集成推送地址
9892
+ - \`<NAGIOS_PLUGIN_PATH>\`:需要替换为实际的脚本路径,如 \`/usr/local/nagios/libexec\`
9893
+ - \`service_notification_options\`:服务告警通知选项,w=警告,u=未知,c=严重,r=恢复
9894
+ - \`host_notification_options\`:主机告警通知选项,d=宕机,u=不可达,r=恢复
9895
+
9896
+
9897
+ **如需在告警中携带更多信息,可以在 \`command_line\` 末尾按照 \`key=value\` 格式追加参数,例如:\`environment="production" region="$_HOSTREGION$"\`。这些参数将作为标签(labels)推送到 Flashduty。**
9898
+
9899
+ </div>
9900
+
9901
+ ### 步骤 4:引入配置文件
9902
+
9903
+ <div class="md-block">
9904
+
9905
+ 如果您使用的是 **RHEL/CentOS 系统** 或 **源码安装**,需要在 Nagios 主配置文件中引入 Flashduty 配置文件。
9906
+
9907
+ - **RHEL/CentOS 系统**:编辑 \`/etc/nagios/nagios.cfg\`,添加:
9908
+
9909
+ \`\`\`
9910
+ cfg_file=/etc/nagios/objects/flashduty.cfg
9911
+ \`\`\`
9912
+
9913
+ - **源码安装**:编辑 \`/usr/local/nagios/etc/nagios.cfg\`,添加:
9914
+
9915
+ \`\`\`
9916
+ cfg_file=/usr/local/nagios/etc/objects/flashduty.cfg
9917
+ \`\`\`
9918
+
9919
+ :::tips
9920
+ Debian/Ubuntu 系统通常会自动加载 \`/etc/nagios3/conf.d/\` 目录下的所有配置文件,无需手动引入。
9921
+ :::
9922
+
9923
+ </div>
9924
+
9925
+ ### 步骤 5:将 Flashduty 添加到联系人组
9926
+
9927
+ <div class="md-block">
9928
+
9929
+ 编辑联系人配置文件,将 Flashduty 联系人添加到 \`admins\` 联系人组(或您使用的其他联系人组):
9930
+
9931
+ - **Debian/Ubuntu 系统**:编辑 \`/etc/nagios3/conf.d/contacts_nagios2.cfg\`
9932
+ - **RHEL/CentOS 系统**:编辑 \`/etc/nagios/objects/contacts.cfg\`
9933
+ - **源码安装**:编辑 \`/usr/local/nagios/etc/objects/contacts.cfg\`
9934
+
9935
+ 找到联系人组定义,将 Flashduty 添加到成员列表:
9936
+
9937
+ \`\`\`
9938
+ define contactgroup {
9939
+ contactgroup_name admins
9940
+ alias Nagios Administrators
9941
+ members nagiosadmin,Flashduty
9942
+ }
9943
+ \`\`\`
9944
+
9945
+ </div>
9946
+
9947
+ ### 步骤 6:验证配置并重启服务
9948
+
9949
+ <div class="md-block">
9950
+
9951
+ 1. 验证 Nagios 配置文件:
9952
+
9953
+ - **Debian/Ubuntu 系统**:
9954
+
9955
+ \`\`\`bash
9956
+ /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg
9957
+ \`\`\`
9958
+
9959
+ - **RHEL/CentOS 系统**:
9960
+
9961
+ \`\`\`bash
9962
+ /usr/sbin/nagios -v /etc/nagios/nagios.cfg
9963
+ \`\`\`
9964
+
9965
+ - **源码安装**:
9966
+
9967
+ \`\`\`bash
9968
+ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
9969
+ \`\`\`
9970
+
9971
+ 2. 如果验证通过,重启 Nagios 服务:
9972
+
9973
+ \`\`\`bash
9974
+ # Debian/Ubuntu
9975
+ systemctl restart nagios3
9976
+ # 或
9977
+ service nagios3 restart
9978
+
9979
+ # RHEL/CentOS/源码安装
9980
+ systemctl restart nagios
9981
+ # 或
9982
+ service nagios restart
9983
+ \`\`\`
9984
+
9985
+ 3. 完成配置后,当 Nagios 检测到告警时,将自动推送到 Flashduty
9986
+
9987
+ </div>
9988
+
9989
+ ## 状态对照
9990
+ ---
9991
+ <div class="md-block">
9992
+
9993
+ Nagios 到 Flashduty 告警等级映射关系:
9994
+
9995
+ | Nagios | Flashduty | 状态 |
9996
+ | --------------- | --------- | ---- |
9997
+ | CRITICAL | Critical | 严重 |
9998
+ | DOWN | Critical | 严重 |
9999
+ | UNREACHABLE | Critical | 严重 |
10000
+ | WARNING | Warning | 警告 |
10001
+ | OK | Ok | 恢复 |
10002
+ | UP | Ok | 恢复 |
10003
+ | UNKNOWN | Info | 提醒 |
10004
+
10005
+ </div>
10006
+ `,JDCloudMonitor:`---
10007
+ title: "京东云监控告警集成"
10008
+ description: "通过 webhook 的方式同步京东云监控告警事件到 Flashduty,实现告警事件自动化降噪处理"
10009
+ date: "2025-05-19T10:00:00+08:00"
10010
+ url: "https://docs.flashcat.cloud/zh/flashduty/jdcloud-integration-guide"
10011
+ ---
10012
+
10013
+ 通过 webhook 的方式同步京东云监控告警事件到 Flashduty,实现告警事件自动化降噪处理。
10014
+
10015
+ <div class="hide">
10016
+
10017
+ ## 在 Flashduty
10018
+ ---
10019
+ 您可通过以下2种方式,获取一个集成推送地址,任选其一即可。
10020
+
10021
+ ### 使用专属集成
10022
+
10023
+ 当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。
10024
+
10025
+ <details>
10026
+ <summary>展开</summary>
10027
+
10028
+ 1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面
10029
+ 2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面
10030
+ 3. 选择 **京东云监控** 集成,点击 **保存**,生成卡片。
10031
+ 4. 点击生成的卡片,可以查看到 **推送地址**,复制备用,完成。
10032
+
10033
+
10034
+ </details>
10035
+
10036
+ ### 使用共享集成
10037
+
10038
+ 当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。
10039
+
10040
+ <details>
10041
+ <summary>展开</summary>
10042
+
10043
+ 1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。
10044
+ 2. 选择 **京东云监控** 集成:
10045
+ - **集成名称**:为当前集成定义一个名称。
10046
+ 3. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 \`路由\` 进行更多路由规则的配置)。
10047
+ 4. 点击 **保存** 后,复制当前页面的新生成的 **推送地址** 备用。
10048
+ 5. 完成。
10049
+
10050
+ </details>
10051
+
10052
+ </div>
10053
+
10054
+ ## 在京东云
10055
+ ---
10056
+
10057
+ 一、在京东云监控配置告警推送
10058
+
10059
+ ### 步骤 1:创建通知模版
10060
+ 1. 登录您的京东云控制台,检索 \`云监控\` 产品,并进入对应产品控制台。
10061
+ 2. 在左侧菜单中选择 \`告警管理->通知模版\`,选择创建或编辑通知模版。
10062
+ 3. 在页面中勾选 \`告警回调\`, \`URL\`中输入告警集成的<span class='integration_url'>推送地址</span>。
10063
+ 4. \`POST\` 编辑框中输入以下模版内容。
10064
+ \`\`\`
10065
+ {
10066
+ "resource_id": "\${resourceId}",
10067
+ "request_id": "\${requestId}",
10068
+ "metric": "\${metric}",
10069
+ "current_value": "\${currentValue}",
10070
+ "times": "\${times}",
10071
+ "tags": "\${tags}",
10072
+ "alert_time": "\${alertTime}",
10073
+ "region": "\${region}",
10074
+ "threshold": "\${threshold}",
10075
+ "service_code": "\${serviceCode}",
10076
+ "as_group_id": "\${asGroupId}",
10077
+ "unhealthy_instance": "\${unhealthyInstance}",
10078
+ "rule_policy_id": "\${rulePolicyId}",
10079
+ "service_code_en": "\${serviceCodeEN}",
10080
+ "service_code_cn": "\${serviceCodeCN}",
10081
+ "level": "\${level}",
10082
+ "resource_name": "\${resourceName}",
10083
+ "ip_address": "\${ipAddress}",
10084
+ "status": "\${status}"
10085
+ }
10086
+
10087
+ \`\`\`
10088
+ 5. 其他选项按需配置。
10089
+ 6. 点击 \`保存\` 完成配置。
10090
+
10091
+ ### 步骤 2:配置告警规则
10092
+ 1. 登录您的京东云控制台,检索 \`云监控\` 产品,并进入对应产品控制台。
10093
+ 2. 在左侧菜单中选择 \`告警管理->全部告警规则\`,选择创建或编辑告警规则。
10094
+ 3. 在规则编辑页面中的 \`通知策略\` 处选择 \`使用模版\` 且模版选择**步骤1**创建的模版。
10095
+ 4. 其他选项按需配置。
10096
+ 5. 点击 \`保存\` 完成配置。
10097
+
10098
+ ## 二、状态对照
10099
+ ---
10100
+ <div class="md-block">
10101
+
10102
+ 京东云监控 到 Flashduty 告警等级映射关系:
10103
+
10104
+ | 京东云监控 | Flashduty | 状态 |
10105
+ | --------------- | --------- | ---- |
10106
+ | 紧急 | Critical | 紧急 |
10107
+ | 严重 | Warning | 警告 |
10108
+ | 一般 | Info | 提醒 |
10109
+
10110
+ </div>
10111
+ `,AliyunPrometheus:`---
10112
+ title: "阿里云监控 Prometheus"
10113
+ description: "通过 webhook 的方式同步阿里云监控 Prometheus 告警事件到 Flashduty,实现告警事件自动化降噪处理"
10114
+ date: "2025-05-19T10:00:00+08:00"
10115
+ url: "https://docs.flashcat.cloud/zh/flashduty/jdcloud-integration-guide"
10116
+ ---
10117
+
10118
+ 通过 webhook 的方式同步阿里云监控 Prometheus 告警事件到 Flashduty,实现告警事件自动化降噪处理。
10119
+
10120
+ <div class="hide">
10121
+
10122
+ ## 在 Flashduty
10123
+ ---
10124
+ 您可通过以下2种方式,获取一个集成推送地址,任选其一即可。
10125
+
10126
+ ### 使用专属集成
10127
+
10128
+ 当您不需要将告警事件路由到不同的协作空间,优先选择此方式,更简单。
10129
+
10130
+ <details>
10131
+ <summary>展开</summary>
10132
+
10133
+ 1. 进入 Flashduty 控制台,选择 **协作空间**,进入某个空间的详情页面
10134
+ 2. 选择 **集成数据** tab,点击 **添加一个集成**,进入添加集成页面
10135
+ 3. 选择 **阿里云监控 Prometheus** 集成,点击 **保存**,生成卡片。
10136
+ 4. 点击生成的卡片,可以查看到 **推送地址**,复制备用,完成。
10137
+
10138
+
10139
+ </details>
10140
+
10141
+ ### 使用共享集成
10142
+
10143
+ 当您需要根据告警事件的 Payload 信息,将告警路由到不同的协作空间,优先选择此方式。
10144
+
10145
+ <details>
10146
+ <summary>展开</summary>
10147
+
10148
+ 1. 进入 Flashduty 控制台,选择 **集成中心=>告警事件**,进入集成选择页面。
10149
+ 2. 选择 **阿里云监控 Prometheus** 集成:
10150
+ - **集成名称**:为当前集成定义一个名称。
10151
+ 3. 配置默认路由,并选择对应的协作空间(集成创建后可以前往 \`路由\` 进行更多路由规则的配置)。
10152
+ 4. 点击 **保存** 后,复制当前页面的新生成的 **推送地址** 备用。
10153
+ 5. 完成。
10154
+
10155
+ </details>
10156
+
10157
+ </div>
10158
+
10159
+ ## 在阿里云
10160
+ ---
10161
+
10162
+ 一、在阿里云监控配置告警推送
10163
+
10164
+ ### 步骤 1:创建自定义 Webhook
10165
+ 1. 登录您的阿里云控制台,检索 \`云监控\` 产品,并进入对应产品控制台。
10166
+ 2. 在左侧菜单中选择 \`Prometheus 监控->通知对象\`,选择创建或编辑\`自定义 Webhook\`。
10167
+ 3. 在编辑页面中,名称和标识符填写 \`Flashduty\`, \`URL\`中输入告警集成的<span class='integration_url'>推送地址</span>。
10168
+ 4. \`Headers\` 中的 **Header Key** 填写 **Content-Type**,**Header Value** 填写 **application/json**。
10169
+ 5. \`Method\` 选择 **POST**,\`数据格式\` 选择 **JSON**。
10170
+ 6. 点击 \`确定\` 完成配置。
10171
+
10172
+ ### 步骤 2:配置报警规则
10173
+ 1. 登录您的阿里云控制台,检索 \`云监控\` 产品,并进入对应产品控制台。
10174
+ 2. 在左侧菜单中选择 \`Prometheus 监控->报警规则\`,选择创建或编辑告警规则。
10175
+ 3. 在规则编辑页面中的 \`通知模式\` 处选择 \`极简模式\` 。
10176
+ 4. \`通知对象\` 选择**步骤1**创建的自定义 Webhook。
10177
+ 5. 点击 \`确定\` 完成配置。
10178
+
10179
+ ## 二、状态对照
10180
+ ---
10181
+ <div class="md-block">
10182
+
10183
+ 阿里云 Prometheus 监控到 Flashduty 告警等级映射关系:
10184
+
10185
+ | 阿里云监控 | Flashduty | 状态 |
10186
+ | --------------- | --------- | ---- |
10187
+ | 紧急 | Critical | 紧急 |
10188
+ | 错误 | Critical | 紧急 |
10189
+ | 警告 | Warning | 警告 |
10190
+ | 普通 | Info | 提醒 |
10191
+
10192
+ </div>
10193
+ `};n.FlashDocsZh=t})(window);