Flashcat API
NightingaleFlashdutyFlashcat
官网
NightingaleFlashdutyFlashcat
官网
  1. 卡片规则
  • 介绍
  • FlashAI
    • 获取灭火图 AI 分析结果
      POST
    • 会话审计
      GET
  • 基础能力
    • 数据集成
      • 数据源列表
      • 数据源类型列表
    • 空间管理
      • 空间列表
  • 北极星
    • 业务线管理
      • 业务线配置
        • 新增/修改业务线
        • 业务线配置
        • 删除业务线
        • 业务线列表
      • 图表配置
        • 保存业务线图表配置
        • 获取业务线图表配置
        • 新增/修改图表
        • 图表列表
        • 图表详情
        • 删除图表
      • 事件管理
        • 新增/修改事件
        • 事件详情
        • 事件列表
        • 删除事件
    • 指标管理
      • 指标配置
        • 新增/修改指标
        • 删除指标
        • 指标详情
        • 指标摘要列表
      • 数据查询
        • 查询指标历史曲线
    • 更多
      • 飘红屏蔽
        • 新增/修改北极星飘红屏蔽规则
        • 北极星飘红屏蔽规则列表
        • 北极星飘红屏蔽规则详情
        • 删除北极星飘红屏蔽规则
        • 启用北极星飘红屏蔽规则
        • 禁用北极星飘红屏蔽规则
      • 状态概览
        • 北极星状态页历史
      • 导入导出
        • 导入北极星配置
        • 导出北极星配置
  • 灭火图
    • 树结构管理
      • 层级管理
        • 层级列表
        • 新增/修改层级
        • 删除层级
        • 禁用层级
        • 启用层级
        • 添加首页卡片到层级
      • 首页管理
        • 新增/修改首页卡片
        • 删除首页卡片
        • 首页卡片详情
        • 首页卡片列表
      • 分组管理
        • 新增/修改分组
        • 删除分组
        • 分组列表
        • 分组直属卡片列表
        • 分组详情
        • 添加卡片到分组
        • 从分组移除卡片
      • 卡片池
        • 卡片池卡片列表
    • 卡片管理
      • 详情卡片管理
        • 新增/修改灵活卡片
        • 卡片详情
        • 删除卡片
      • 卡片规则
        • 新增/修改卡片管理规则
          POST
        • 卡片管理规则详情
          GET
        • 删除卡片管理规则
          POST
        • 卡片管理规则列表
          GET
        • 导出卡片管理规则
          GET
        • 导入卡片管理规则
          POST
        • 删除规则生成的卡片
          POST
        • 启用卡片管理规则
          POST
        • 禁用卡片管理规则
          POST
    • 数据查询
      • 时间线
        • 灭火图时间线
      • 状态快照
        • 拓扑快照
        • 首页树结构快照
        • 首页卡片状态快照
        • 卡片分组实时状态快照
      • 历史曲线
        • 查询卡片历史曲线
    • 更多
      • 模板中心
        • 内置组件列表
        • 内置模板列表
        • 内置模板详情
      • 飘红屏蔽
        • 新增/修改灭火图飘红屏蔽规则
        • 灭火图飘红屏蔽规则详情
        • 灭火图飘红屏蔽规则列表
        • 启用灭火图飘红屏蔽规则
        • 禁用灭火图飘红屏蔽规则
        • 删除灭火图飘红屏蔽规则
      • SLO报表
        • SLO 报告列表与当前状态
        • SLO 报告摘要
        • SLO 卡片摘要
      • 状态概览
        • 灭火图状态页历史
      • 导入导出
        • 导入灭火图配置
        • 导出灭火图配置
  • 事件墙
    • 视图
      • 事件视图详情
      • 事件视图列表
    • 事件查询
      • 事件聚合查询
      • 事件时间线查询
      • 事件明细查询
  • 日志报表
    • 日志维度
      • 日志主题列表
      • 日志报表列表
      • 日志报表查询
  1. 卡片规则

导入卡片管理规则

POST
https://api.flashcat.cloud/api/v2/firemap/rule/card/import
最后修改时间:2026-08-17 01:33:37
客户明确要求的规则迁移/恢复接口
导入按层级、首页、分组和卡片名称定位目标;旧 ID、旧筛选及已下线兼容字段不属于当前导入契约

请求参数

Header 参数

Body 参数application/json

示例

返回响应

🟢200
application/json
成功
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api.flashcat.cloud/api/v2/firemap/rule/card/import' \
--header 'X-User-Token: YOUR_USER_TOKEN' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6IjM2ZTRjZjI3LWI4OWYtNDFlZS04ZDhmLWZiMjdhMmZlZGIzOSIsImF1dGhvcml6ZWQiOnRydWUsImV4cCI6MTc3NTExMTEyMywidXNlcl9pZGVudGl0eSI6IjEtcm9vdCJ9.IwPWDg92AjjvuUTGplaXgpexmOSsONx73M7Y7pOI_vE' \
--header 'Content-Type: application/json' \
--data '[
    {
        "name": "示例名称",
        "note": "string",
        "enable": true,
        "label_match_settings": {
            "label_match_enable": true,
            "label_match_rules": [
                {
                    "metric": "string",
                    "match_all": true,
                    "label_matches": [
                        {
                            "card_label": "string",
                            "metric_label": "string",
                            "operation": "string"
                        }
                    ]
                }
            ]
        },
        "data_source_type": "prometheus",
        "data_source_ids": [
            123
        ],
        "window_seconds": 300,
        "original_series_mode": true,
        "multi_thresholds": [
            {
                "is_critical": true,
                "thresholds": [
                    {
                        "exp_idx": "string",
                        "metric": "string",
                        "name": "示例名称",
                        "threshold": 99.9,
                        "limit": 20,
                        "operator": "string",
                        "logic": "string",
                        "aggregation": "string",
                        "normalize": "string",
                        "is_critical": true,
                        "unit": "string",
                        "dynamic": {
                            "service_cal_ids": [
                                123
                            ],
                            "algo_name": "string",
                            "algo_param": {
                                "key": "value"
                            },
                            "num_of_days": 1,
                            "bucket_in_minutes": 1,
                            "fitting_method": "string",
                            "limit": 20,
                            "factor": 99.9,
                            "operator": "string",
                            "multi_factors_enable": true,
                            "multi_factors": [
                                {
                                    "operator": "string",
                                    "threshold": 99.9,
                                    "factor": 99.9
                                }
                            ]
                        },
                        "offset": {
                            "num_of_days": 1,
                            "limit": 20,
                            "factor_p": 99.9,
                            "operator": "string"
                        },
                        "step_by_step": {
                            "num_of_steps": 1,
                            "factor_p": 99.9,
                            "operator": "string",
                            "limit": 20,
                            "method": "string"
                        }
                    }
                ],
                "severity": 1,
                "mode": 1,
                "expression": "string",
                "advanced_enable": true,
                "advanced_settings": {
                    "enable_stimes": [
                        "2025-01-01T00:00:00+08:00"
                    ],
                    "enable_etimes": [
                        "2025-01-01T00:00:00+08:00"
                    ],
                    "enable_days_of_weeks": [
                        [
                            "string"
                        ]
                    ],
                    "service_cal_ids": [
                        123
                    ]
                },
                "label_filter_enable": true,
                "label_filter_settings": {
                    "logic": "string",
                    "filters": [
                        {
                            "key": "string",
                            "operator": "string",
                            "values": [
                                "string"
                            ]
                        }
                    ]
                }
            }
        ],
        "metrics": [
            {
                "metric_idx": "string",
                "metric": "string",
                "name": "示例名称",
                "settings": {
                    "key": "value"
                },
                "mode": 1,
                "layout_number": 1,
                "unit": "string",
                "data_source_type": "prometheus",
                "data_source_ids": [
                    123
                ],
                "downsample": "string"
            }
        ],
        "labels": {
            "key": "value"
        },
        "label_enrich": [
            {
                "type": "string",
                "settings": "string"
            }
        ],
        "disable_data_dump": true,
        "delay_seconds": 300,
        "calculation": 1,
        "metric_advanced_settings": [
            {
                "metrics": [
                    "string"
                ],
                "fill_value_if_null": "string",
                "downsample": "string",
                "aggregate": "string",
                "chart_config": "string",
                "value_mapping": "string"
            }
        ],
        "metric_display_settings": {
            "pinned_metrics": [
                {
                    "metric": "string",
                    "aggregate": "string"
                }
            ],
            "data_view_mode": "string"
        },
        "num_of_cycle": 1,
        "unit_of_cycle": "m",
        "execution_time": "2025-01-01T00:00:00+08:00",
        "limit": 20,
        "bugroup_name": "string",
        "business_name": "示例名称",
        "business_icon": "string",
        "group_names": [
            "示例名称"
        ],
        "card_name": "示例名称",
        "firemap_type": "function",
        "settings": {
            "key": "value"
        },
        "delete_rule": {
            "num_of_nodata_days": 1,
            "delete_by_path_match": true,
            "time_unit_of_path_match": "2025-01-01T00:00:00+08:00",
            "time_num_of_path_match": 1
        },
        "drilldown_rules": [
            {
                "target_type": "string",
                "knowledge": "string",
                "target": [
                    {
                        "key": "value"
                    }
                ]
            }
        ]
    }
]'
响应示例响应示例
{
    "request_id": "0ace0011649b99a4742c592762c584b0",
    "error": null,
    "data": [
        {
            "name": "示例名称",
            "error": "string"
        }
    ]
}
修改于 2026-08-17 01:33:37
上一页
导出卡片管理规则
下一页
删除规则生成的卡片
Built with