Alert List
POST
/alert/listRequest
For detailed explanation, please refer to About Pagination
When using traditional pagination, p*limit must not exceed 10000 when p parameter is set, otherwise returns parameter error. For detailed explanation, please refer to About Pagination
When p parameter is set, (p-1)*limit must not exceed 10000, otherwise returns parameter error. For detailed explanation, please refer to About Pagination
Default sort by created_at in descending order
Supports created_at updated_at, default is created_at
Supports exact match, regex match and wildcard match. String with '/' prefix and suffix will be treated as regex. Example: specifying ('datacenter' IN ['bj01','sh-*','']) AND ('host' IN '/api-server-\d+/') will match alerts from data centers 'bj01' and 'sh-01','sh-02' with hostname matching regex 'api-server-\d+'
Triggered,Closed
All (progress not provided)
Open (progress=Triggered)
Closed (progress=Closed)
Critical, Info, Warning supports multiple values, comma separated
label format must match regex ^[a-zA-Z_][a-zA-Z0-9_]*$, value length must not exceed 512 bytes
Not provided means query all, true means only return silenced or inhibited alerts, false means only return alerts never inhibited
This time is query's start_time, not related to alert's start_time. Actual search condition is: alert.start_time<=query.end_time and alert.last_time>=query.start_time
This time is query's end_time, not related to alert's end_time. Actual search condition is: alert.start_time<=query.end_time and alert.last_time>=query.start_time
{
"search_after_ctx": "string",
"p": 1,
"limit": 20,
"asc": true,
"orderby": "string",
"title": "string",
"progress": "string",
"alert_severity": "string",
"labels": {},
"channel_ids": [
0
],
"data_source_ids": [
0
],
"alert_ids": [
"string"
],
"ever_muted": true,
"start_time": 0,
"end_time": 0
}
Request samples
Responses
For detailed explanation, please refer to About Pagination
Please note, total is only accurate when less than 1000, do not use this value to calculate pagination end. When total entries exceed 1000, system will only return total=1000, indicating 1000+ matches found. Please use has_next_page to determine if more data exists. For detailed explanation, please refer to About Pagination