活跃告警列表
GET
https://api.flashcat.cloud/api/n9e/alert-cur-events/list
最后修改时间:2025-05-20 09:46:45
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flashcat.cloud/api/n9e/alert-cur-events/list?p=1&limit=30&my_groups=false&event_ids=&bgid&stime&etime&hours&prods&rid&datasource_ids'
响应示例响应示例
{
"dat": {
"list": [
{
"id": 1559490,
"cate": "prometheus",
"cluster": "prometheus_categraf_flasheye",
"datasource_id": 887,
"group_id": 54,
"group_name": "A测试",
"hash": "b8f1c05859ea76bb9836b9f3a3b4c623",
"rule_id": 747,
"rule_name": "持续生成一条告警事件",
"rule_note": "",
"rule_prod": "metric",
"rule_algo": "",
"severity": 2,
"prom_for_duration": 60,
"prom_ql": "cpu_usage_active",
"rule_config": {
"override_global_webhook": true,
"queries": [
{
"keys": {
"labelKey": "",
"metricKey": "",
"valueKey": ""
},
"prom_ql": "cpu_usage_active",
"severity": 2,
"unit": "none"
}
],
"version": "v1"
},
"prom_eval_interval": 60,
"callbacks": [
"http://10.99.1.106:9012/api/v2/alert-event/receiver"
],
"runbook_url": "",
"notify_recovered": 1,
"notify_channels": [],
"notify_groups": [],
"notify_groups_obj": [],
"target_ident": "",
"target_note": "",
"trigger_time": 1741783464,
"trigger_value": "5.97115",
"trigger_values": "",
"trigger_values_json": {
"values_with_unit": null
},
"tags": [
"__name__=cpu_usage_active",
"agent_hostname=dev-flasheye-02",
"cpu=cpu-total",
"rulename=持续生成一条告警事件"
],
"tags_map": null,
"original_tags": [
""
],
"annotations": {},
"is_recovered": false,
"notify_users_obj": null,
"last_eval_time": 0,
"last_sent_time": 0,
"notify_cur_number": 76,
"first_trigger_time": 1741774464,
"extra_config": null,
"status": 0,
"claimant": "",
"sub_rule_id": 0,
"extra_info": null,
"target": null,
"recover_config": {
"judge_type": 0,
"recover_exp": ""
},
"rule_hash": "",
"extra_info_map": null,
"notify_rule_ids": null
}
],
"total": 1
},
"err": ""
}
请求参数
Query 参数
p
string
可选
示例值:
1
limit
string
可选
示例值:
30
my_groups
boolean
可选
示例值:
false
event_ids
string
可选
bgid
integer
业务组id
stime
string
起始时间
etime
string
结束时间
hours
string
时间跨度
prods
string
可选
rid
string
ruleId
datasource_ids
string
数据源参数