Skip to content

Commit 7c57108

Browse files
authored
Merge pull request #53 from flashcatcloud/test
Test
2 parents 5bce40c + 6685ff0 commit 7c57108

4 files changed

Lines changed: 125 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: "Link Integration"
3+
description: "Through Link integration, you can quickly access external links by obtaining key parameters from incident attributes, labels, and other information"
4+
date: "2025-05-19T10:00:00+08:00"
5+
url: "https://docs.flashcat.cloud/en/flashduty/link-integration-guide"
6+
---
7+
8+
Through Link integration, you can quickly access external links by obtaining key parameters from incident attributes, labels, and other information
9+
10+
## Configuration Guide
11+
12+
Link integration supports extracting key parameters from incident attributes, labels, and other information to enable quick navigation to external systems. Through automated parameter filling and redirection, it eliminates manual input, improving the efficiency of problem identification and resolution. This feature is applicable to incident troubleshooting, performance monitoring, and system debugging scenarios, helping optimize operations processes and enhance response speed and accuracy.
13+
14+
### Opening Methods
15+
16+
#### 1. Pop-up Window
17+
Opens a window in the current incident details page, maintaining the original interface state, suitable for quick viewing or returning after operations
18+
19+
#### 2. New Tab
20+
Opens the link in a new browser tab, suitable for scenarios where you need to retain the current operation context while accessing external content
21+
22+
### URL Configuration
23+
24+
When referencing content from labels, start with labels.; when referencing custom fields, start with fields.; when referencing incident attributes, reference them directly, such as .title .severity
25+
26+
#### Retrieving from Incident Labels
27+
Supports dynamic value retrieval through ${} syntax to construct request URLs. For example, parameter values can be automatically filled from incident labels, requiring no manual input:
28+
29+
```
30+
https://cmdb.com/vm?sn=${labels.sn}
31+
```
32+
33+
In the above example, ${labels.sn} indicates that the sn label value from the incident will be dynamically injected into the URL. If the incident data contains sn=VM123456, the final request URL will be:
34+
35+
```
36+
https://cmdb.com/vm?sn=VM123456
37+
```
38+
39+
40+
#### Retrieving from Custom Fields
41+
Supports dynamic value retrieval through ${} syntax to construct request URLs. For example, parameter values can be automatically filled from custom fields, requiring no manual input:
42+
43+
```
44+
https://cmdb.com/vm?sn=${fields.sn}
45+
```
46+
47+
In the above example, ${fields.sn} indicates that the sn custom field value will be dynamically injected into the URL. If the custom field data contains sn=VM123456, the final request URL will be:
48+
49+
```
50+
https://cmdb.com/vm?sn=VM123456
51+
```
52+
53+
### Notes
54+
55+
1. When referenced content does not exist, Link integration will still generate the corresponding link but will not be able to retrieve the value
56+
2. Each channel can bind up to three Link integrations
57+
3. Pay attention to reference syntax; improper variable reference formatting will result in failure to retrieve corresponding values
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: "Link 集成"
3+
description: "通过 Link 集成,可直接从故障属性、标签等信息中获取访问外部链接所需的关键参数,实现快速访问"
4+
date: "2025-05-19T10:00:00+08:00"
5+
url: "https://docs.flashcat.cloud/zh/flashduty/link-integration-guide"
6+
---
7+
8+
通过 Link 集成,可直接从故障属性、标签等信息中获取访问外部链接所需的关键参数,实现快速访问
9+
10+
## 配置说明
11+
12+
Link 集成功能支持从故障属性、标签等信息中提取关键参数,实现与外部系统的快速跳转。通过自动化填充和跳转,避免了手动输入,提高了问题定位与处理的效率。该功能适用于故障排查、性能监控和系统调试等场景,有助于优化运维流程,提升响应速度与准确性
13+
14+
### 打开方式
15+
16+
#### 1. 弹窗
17+
在故障详情的当前页面中弹出窗口,保持原有界面状态,适合快速查看或操作后返回
18+
19+
#### 2. 新标签页
20+
在浏览器新标签中打开链接,适用于需要保留当前操作上下文并同时访问外部内容的场景
21+
22+
### URL 配置
23+
24+
URL的参数引用内容为标签时以 labels. 开头;引用内容为自定义字段时,以 fields. 开头;引用内容为故障属性时,直接引用即可,如 .title、.severity 等
25+
26+
#### 故障标签中获取
27+
支持通过 ${} 的方式从参数中动态取值,用于构造请求地址。例如参数值从故障标签(labels)中自动填充,无需手动输入:
28+
29+
```
30+
https://cmdb.com/vm?sn=${labels.sn}
31+
```
32+
33+
在上述示例中,${labels.sn} 表示将故障中的 sn 标签值动态注入至 URL 中。如果故障数据中包含 sn=VM123456,则最终请求地址为:
34+
35+
```
36+
https://cmdb.com/vm?sn=VM123456
37+
```
38+
39+
40+
#### 自定义字段中获取
41+
支持通过 ${} 的方式从参数中动态取值,用于构造请求地址。例如参数值从自定义字段(fields)中自动填充,无需手动输入:
42+
43+
```
44+
https://cmdb.com/vm?sn=${fields.sn}
45+
```
46+
47+
在上述示例中,${fields.sn} 表示将故障中的 sn 自定义字段值动态注入至 URL 中。如果自定义字段数据中包含 sn=VM123456,则最终请求地址为:
48+
49+
```
50+
https://cmdb.com/vm?sn=VM123456
51+
```
52+
53+
### 注意事项
54+
55+
1. 当引用的内容不存在时,Link 集成会正常生成对应的链接,但无法获取到值
56+
2. 同一个协作空间至多绑定三个 Link 集成
57+
3. 注意引用语法,如未按照要求进行书写引用变量,会导致无法正常获取对应值

src/en.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ import JiraSync from "../flashduty/en/1. On-call/8. Integrations/8.5 Webhooks/8.
7373
/** 模版 */
7474
import Templates from "../flashduty/en/1. On-call/4. Configure On-call/4.7 Templates.md?raw";
7575

76+
/** ⬇️⬇️⬇️⬇️ Other ⬇️⬇️⬇️⬇️ */
77+
import Link from "../flashduty/en/1. On-call/8. Integrations/8.6 Other/8.6.1 Link Integration.md?raw";
78+
/** ⬆️⬆️⬆️⬆️ Other ⬆️⬆️⬆️⬆️ */
79+
80+
7681
const docs = {
7782
CustomAlert,
7883
Email,
@@ -134,5 +139,6 @@ const docs = {
134139
ElastAlert2,
135140
DingtalkAlert,
136141
FeishuAlert,
142+
Link,
137143
};
138144
export default docs;

src/zh.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ import JiraSync from "../flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.
7373
/** 模版 */
7474
import Templates from "../flashduty/zh/1. On-call/3. 配置管理/4.7 配置通知模板.md?raw";
7575

76+
/** ⬇️⬇️⬇️⬇️ Other ⬇️⬇️⬇️⬇️ */
77+
import Link from "../flashduty/zh/1. On-call/5. 集成引导/8.6 其他集成/8.6.1 Link 集成指引.md?raw";
78+
/** ⬆️⬆️⬆️⬆️ Other ⬆️⬆️⬆️⬆️ */
79+
7680
const docs = {
7781
CustomAlert,
7882
Email,
@@ -134,5 +138,6 @@ const docs = {
134138
ElastAlert2,
135139
DingtalkAlert,
136140
FeishuAlert,
141+
Link,
137142
};
138143
export default docs;

0 commit comments

Comments
 (0)