提交
This commit is contained in:
266
tashow-sdk/tashow-feishu-sdk/src/main/resources/card.json
Normal file
266
tashow-sdk/tashow-feishu-sdk/src/main/resources/card.json
Normal file
@@ -0,0 +1,266 @@
|
||||
{
|
||||
"name": "12",
|
||||
"dsl": {
|
||||
"schema": "2.0",
|
||||
"config": {
|
||||
"update_multi": true,
|
||||
"locales": [
|
||||
"en_us"
|
||||
],
|
||||
"style": {
|
||||
"text_size": {
|
||||
"normal_v2": {
|
||||
"default": "normal",
|
||||
"pc": "normal",
|
||||
"mobile": "heading"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": {
|
||||
"direction": "vertical",
|
||||
"padding": "12px 12px 12px 12px",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "column_set",
|
||||
"horizontal_spacing": "8px",
|
||||
"horizontal_align": "left",
|
||||
"columns": [
|
||||
{
|
||||
"tag": "column",
|
||||
"width": "weighted",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "<font color=\"grey\">负责人</font>\n<at id=all></at>",
|
||||
"i18n_content": {
|
||||
"en_us": "<font color=\"grey\">Alert details</font>\nMobile client crash rate at 5%"
|
||||
},
|
||||
"text_align": "left",
|
||||
"text_size": "normal_v2",
|
||||
"margin": "0px 0px 0px 0px",
|
||||
"icon": {
|
||||
"tag": "standard_icon",
|
||||
"token": "contacts_outlined",
|
||||
"color": "grey"
|
||||
}
|
||||
}
|
||||
],
|
||||
"vertical_spacing": "8px",
|
||||
"horizontal_align": "left",
|
||||
"vertical_align": "top",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"tag": "column",
|
||||
"width": "weighted",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "<font color=\"grey\">失败数量</font>\n${fail_count}",
|
||||
"i18n_content": {
|
||||
"en_us": "<font color=\"grey\">Diagnostic info</font>\nService request volume exceeds rate limit"
|
||||
},
|
||||
"text_align": "left",
|
||||
"text_size": "normal_v2",
|
||||
"margin": "0px 0px 0px 0px",
|
||||
"icon": {
|
||||
"tag": "standard_icon",
|
||||
"token": "meego_colorful",
|
||||
"color": "grey"
|
||||
}
|
||||
}
|
||||
],
|
||||
"vertical_spacing": "8px",
|
||||
"horizontal_align": "left",
|
||||
"vertical_align": "top",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"margin": "0px 0px 0px 0px"
|
||||
},
|
||||
{
|
||||
"tag": "column_set",
|
||||
"horizontal_spacing": "8px",
|
||||
"horizontal_align": "left",
|
||||
"columns": [
|
||||
{
|
||||
"tag": "column",
|
||||
"width": "weighted",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "<font color=\"grey\">项目</font>\nTashow平台",
|
||||
"i18n_content": {
|
||||
"en_us": "<font color=\"grey\">Priority level</font>\nP0"
|
||||
},
|
||||
"text_align": "left",
|
||||
"text_size": "normal_v2",
|
||||
"margin": "0px 0px 0px 0px",
|
||||
"icon": {
|
||||
"tag": "standard_icon",
|
||||
"token": "file-form_colorful",
|
||||
"color": "grey"
|
||||
}
|
||||
}
|
||||
],
|
||||
"direction": "vertical",
|
||||
"horizontal_spacing": "8px",
|
||||
"vertical_spacing": "8px",
|
||||
"horizontal_align": "left",
|
||||
"vertical_align": "top",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"tag": "column",
|
||||
"width": "weighted",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "<font color=\"grey\">告警时间</font>\n${current_time}",
|
||||
"i18n_content": {
|
||||
"en_us": "<font color=\"grey\">Incident time</font>\n${alarm_time}"
|
||||
},
|
||||
"text_align": "left",
|
||||
"text_size": "normal_v2",
|
||||
"margin": "0px 0px 0px 0px",
|
||||
"icon": {
|
||||
"tag": "standard_icon",
|
||||
"token": "calendar_colorful",
|
||||
"color": "grey"
|
||||
}
|
||||
}
|
||||
],
|
||||
"direction": "vertical",
|
||||
"horizontal_spacing": "8px",
|
||||
"vertical_spacing": "8px",
|
||||
"horizontal_align": "left",
|
||||
"vertical_align": "top",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"margin": "0px 0px 0px 0px"
|
||||
},
|
||||
{
|
||||
"tag": "form",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "img",
|
||||
"img_key": "img_v3_02nc_085db227-0547-40eb-90a1-dd80434b229g",
|
||||
"preview": true,
|
||||
"transparent": false,
|
||||
"scale_type": "fit_horizontal",
|
||||
"margin": "0px 0px 0px 0px"
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"placeholder": {
|
||||
"tag": "plain_text",
|
||||
"content": "处理情况说明,选填",
|
||||
"i18n_content": {
|
||||
"en_us": "Action taken (if any)"
|
||||
}
|
||||
},
|
||||
"default_value": "",
|
||||
"width": "fill",
|
||||
"name": "notes_input",
|
||||
"margin": "0px 0px 0px 0px"
|
||||
},
|
||||
{
|
||||
"tag": "column_set",
|
||||
"horizontal_align": "left",
|
||||
"columns": [
|
||||
{
|
||||
"tag": "column",
|
||||
"width": "auto",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "button",
|
||||
"text": {
|
||||
"tag": "plain_text",
|
||||
"content": "处理完成",
|
||||
"i18n_content": {
|
||||
"en_us": "Mark as Resolved"
|
||||
}
|
||||
},
|
||||
"type": "primary",
|
||||
"width": "default",
|
||||
"behaviors": [
|
||||
{
|
||||
"type": "callback",
|
||||
"value": {
|
||||
"action": "complete_alarm",
|
||||
"time": "${alarm_time}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"form_action_type": "submit",
|
||||
"name": "Button_m6vy7xom"
|
||||
}
|
||||
],
|
||||
"vertical_spacing": "8px",
|
||||
"horizontal_align": "left",
|
||||
"vertical_align": "top"
|
||||
}
|
||||
],
|
||||
"margin": "0px 0px 0px 0px"
|
||||
}
|
||||
],
|
||||
"direction": "vertical",
|
||||
"padding": "4px 0px 4px 0px",
|
||||
"margin": "0px 0px 0px 0px",
|
||||
"name": "Form_m6vy7xol"
|
||||
}
|
||||
]
|
||||
},
|
||||
"header": {
|
||||
"title": {
|
||||
"tag": "plain_text",
|
||||
"content": "${alert_title}",
|
||||
"i18n_content": {
|
||||
"en_us": "[Action Needed] Alert: Process Error - Please Address Promptly"
|
||||
}
|
||||
},
|
||||
"subtitle": {
|
||||
"tag": "plain_text",
|
||||
"content": ""
|
||||
},
|
||||
"template": "red",
|
||||
"icon": {
|
||||
"tag": "standard_icon",
|
||||
"token": "warning-hollow_filled"
|
||||
},
|
||||
"padding": "12px 12px 12px 12px"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"type": "text",
|
||||
"apiName": "var_m6vy7ngf",
|
||||
"name": "alarm_time",
|
||||
"desc": "告警时间",
|
||||
"mockData": "2025-01-01 10:10:08"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"apiName": "var_mc1d8e1w",
|
||||
"name": "fail_count",
|
||||
"desc": "",
|
||||
"mockData": "0"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"apiName": "var_mc1d8e1z",
|
||||
"name": "current_time",
|
||||
"desc": "",
|
||||
"mockData": "2025-06-17 17:32:13"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"apiName": "var_mc1d8e6b",
|
||||
"name": "alert_title",
|
||||
"desc": "",
|
||||
"mockData": "埋点数据异常告警"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user