curl --location --request POST 'https://api.flashcat.cloud/insight/alert/topk-by-label?app_key=<api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"start_time": 0,
"end_time": 0,
"team_ids": [
0
],
"is_my_team": true,
"channel_ids": [
0
],
"severities": [
"Info"
],
"time_zone": "Asia/Shanghai",
"query": "string",
"labels": {},
"fields": {},
"seconds_to_close_from": 0,
"seconds_to_close_to": 0,
"orderby": "total_alert_cnt",
"asc": true,
"k": 1,
"label": "check"
}'
{
"error": {
"code": "string",
"message": "string"
},
"data": [
{
"total_alert_cnt": 11,
"total_alert_event_cnt": 11,
"label": "HTTP响应出错"
},
{
"total_alert_cnt": 1,
"total_alert_event_cnt": 1,
"label": "cpu.ide<28"
}
]
}