获取单个模板
GET
https://api.flashcat.cloud/api/n9e/builtin-payload/{id}
最后修改时间:2024-12-26 07:52:12
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flashcat.cloud/api/n9e/builtin-payload/1'
响应示例响应示例
{
"dat": {
"id": 1,
"type": "alert",
"component": "Ceph",
"cate": "ceph_by_categraf.json",
"name": "CephErrorState",
"content":"{\"id\":0,\"group_id\":0,\"cate\":\"prometheus\",\"datasource_ids\":[0],\"cluster\":\"\",\"name\":\"CephErrorState\",\"note\":\"Ceph is in Error state longer than 5m, please check status of pools and OSDs\",\"prod\":\"metric\",\"algorithm\":\"\",\"algo_params\":null,\"delay\":0,\"severity\":1,\"severities\":[1],\"disabled\":1,\"prom_for_duration\":300,\"prom_ql\":\"ceph_health_status \> 1\",\"rule_config\":{\"algo_params\":null,\"inhibit\":false,\"prom_ql\":\"\",\"queries\":[{\"prom_ql\":\"ceph_health_status \> 1\",\"severity\":1}],\"severity\":0},\"prom_eval_interval\":15,\"enable_stime\":\"00:00\",\"enable_stimes\":[\"00:00\"],\"enable_etime\":\"23:59\",\"enable_etimes\":[\"23:59\"],\"enable_days_of_week\":[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"0\"],\"enable_days_of_weeks\":[[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"0\"]],\"enable_in_bg\":0,\"notify_recovered\":1,\"notify_channels\":[],\"notify_groups_obj\":null,\"notify_groups\":null,\"notify_repeat_step\":60,\"notify_max_number\":0,\"recover_duration\":0,\"callbacks\":[],\"runbook_url\":\"\",\"append_tags\":[],\"annotations\":null,\"extra_config\":null,\"create_at\":0,\"create_by\":\"\",\"update_at\":0,\"update_by\":\"\"}",
"created_at": 1713872185,
"created_by": "system",
"updated_at": 1713872185,
"updated_by": ""
},
"err": ""
}
请求参数
Path 参数
id
string
必需
示例值:
1