List Unrecovered Events¶
POST /api/v1/events/abnormal/list
Overview¶
List monitoring or custom events in the current Workspace that have not recovered, grouped by event correlation identifier, and return the latest status.
Before Calling and Usage Steps¶
Group by the same df_monitor_checker_event_ref and return events whose latest status is fatal, critical, error, warning, or nodata. Integration collection events and large-scale event summaries are not included in this list. The current public request must still pass timeRange with two millisecond integers, but this field is not used to set the query window in this version. The actual window is 48 hours before the server's current time; do not use it to infer results for arbitrary historical ranges. To specify a historical range, use DQL query. search searches titles and descriptions, and lastStatus further restricts the final status. Defaults are offset=0 and limit=20; for subsequent pages, increase offset by limit until empty data is returned or total_count is reached. Events change during queries, so data and counts across pages may change. This API uses the Workspace to which the current API Key belongs and does not define cross-Workspace or cross-site parameters. For other Workspaces or sites, call separately using the Endpoint for the corresponding site and an API Key for the corresponding Workspace.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the Workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with the required permissions from API Key Management in the target Workspace. |
Body Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| filters[*] | json | A single condition object. For a normal condition, provide name, operation, and value; for a nested group, provide filters and optionally condition. Example: {"name": "df_source", "operation": "=", "value": ["monitor"], "condition": "and"}How to obtain or enter: Fill in each item as a field condition or nested condition group. |
|
| filters[*].name | string | Field name; required for normal conditions. Example: df_sourceHow to obtain or enter: Use the original field name returned by Event Details, such as df_source, df_monitor_checker_name, or a collection dimension. |
|
| filters[*].operation | string | Required for normal conditions. Available values: =, !=, >, >=, <, <=, in, not in (notin is also supported), wildcard, not wildcard, query_string, exists, not_exists, match, not match (notmatch is also supported), re, =~, !=~. between is not supported; use two conditions with >= and <= for ranges.Example: =How to obtain or enter: Select from the operators below according to the field and query intent. Omit for nested filters groups. |
|
| filters[*].value | array | Array of comparison values. in/not in uses all values; other value-based operations generally use the first item; exists/not_exists can be passed []. Example: ["monitor"]How to obtain or enter: Use a value that actually exists for the field. Strings, numbers, and booleans should match the original data type. |
|
| filters[*].value[*] | string/number/boolean | A single string, number, or boolean; do not serialize the entire array again as a string. Example: monitorHow to obtain or enter: Obtain the value from the same field of the target event, or enter the numeric threshold to compare. |
|
| filters[*].condition | string | Logical connector; defaults to AND if omitted. The connector of the first condition in each group does not take effect. Example: andHow to obtain or enter: Select "and" or "or" based on the relationship with the preceding condition. |
|
| filters[*].filters | array | Subcondition group; when this field is present, the name, operation, and value of this item are not used to build conditions. Can be nested recursively. Example: [{"name": "df_monitor_checker_name", "operation": "wildcard", "value": ["*checkout*"]}]How to obtain or enter: To group with parentheses, enter a subarray with the same structure as filters. |
|
| search | string | Search titles and descriptions; if omitted, defaults to an empty string and no keyword filtering is applied. Null allowed: False Example: checkoutHow to obtain or enter: Enter a keyword from the event title or description. |
|
| lastStatus | string | Abnormal status of the latest event; if omitted, matches all the unrecovered statuses above. Null allowed: False Available values: ['fatal', 'critical', 'error', 'warning', 'nodata'] Example: criticalHow to obtain or enter: Select one of fatal, critical, error, warning, or nodata. |
|
| timeRange | array | Y | Compatibility time range field; length must be 2. The current API does not use this value to limit the query. Null allowed: False Minimum length: 2 Maximum length: 2 Example: [1785427200000, 1785430800000]How to obtain or enter: Generate the start and end Unix milliseconds from the client time picker and pass them as an array. This field is retained and still required in this version; see the notes for the actual window. |
| timeRange[*] | integer | Y | Unix millisecond timestamp in the array. Null allowed: False Example: 1785427200000How to obtain or enter: Use a millisecond integer, for example from JavaScript Date.getTime(). |
| filters | array | Array of event filter conditions. Multiple conditions default to AND; subconditions can be organized recursively. Null allowed: False Example: [{"name": "df_source", "operation": "=", "value": ["monitor"], "condition": "and"}]How to obtain or enter: First confirm the original field name from Event Details or Event Field Reference, then fill in according to the filter structure below. Omit it or use [] to apply no custom filters. |
|
| offset | integer | Result offset, a non-negative integer, default 0. Null allowed: False $minValue: 0 Example: 0How to obtain or enter: Enter 0 for the first page; for subsequent pages, add the current limit while keeping the filter conditions unchanged. |
|
| limit | integer | Maximum number of records returned, default 20. Null allowed: False $minValue: 1 $maxValue: 100 Example: 20How to obtain or enter: Select an integer from 1 to 100 based on read requirements. |
Additional Parameter Notes¶
See Event Field Reference for event fields and their collection meanings. For compatibility, filters can use op instead of operation, values instead of value, and logic instead of condition; using the full names in the table is recommended. Nested fields are not structurally validated item by item. A missing operation or an incorrect type may trigger a generic internal error. Validate against the example before sending.
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/events/abnormal/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"timeRange":[1785427200000,1785430800000],"lastStatus":"critical","filters":[{"name":"df_source","operation":"=","value":["monitor"],"condition":"and"}],"offset":0,"limit":20}'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object | Unrecovered events and pagination offset information. |
| content.data | array<object> |
Unrecovered events on the current page; [] when there are no results. |
| content.data[].__docid | string | Event document ID. Use it as the doc_id path parameter in Event Details; it is different from df_event_id and the event correlation identifier. |
| content.data[].time | integer | Time returned by the event query, in Unix milliseconds. |
| content.data[].date | integer | Compatibility time field; in the list it is the same as time, in Unix milliseconds. |
| content.data[].df_title | string | Event title. |
| content.data[].df_message | string | Detailed event description. |
| content.data[].df_status | string | Event status. In the unrecovered list, it is fatal, critical, error, warning, or nodata; in details, it may also be ok, info, or a recovery status defined by another source. |
| content.data[].df_source | string | Event source, for example, monitor indicates a monitoring event and custom indicates a custom event created in this module. |
| content.data[].df_event_id | string | Unique event ID; not used as the doc_id in the details path. |
| content.data[].df_monitor_checker_event_ref | string | Event correlation identifier for the same trigger object. Used for grouping and recovery; do not treat it as a single event ID. |
| content.data[].df_dimension_tags | string or null | Detection dimension tags, usually a serialized JSON object string; when present, parse it to read actual dimensions such as service and host. |
| content.data[].df_check_range_start | integer | Start time of the detection range, in Unix seconds. Set to 0 when missing from the list. |
| content.data[].df_check_range_end | integer | End time of the detection range, in Unix seconds. Set to 0 when missing from the list. |
| content.data[].df_fault_start_time | integer or null | Start time of the current incident, in Unix seconds; returned only when provided by the source. |
| content.data[].df_fault_id | string or null | Current incident ID, usually the df_event_id of the first incident event. |
| content.data[].df_monitor_checker | string or null | Detection function name, for example custom_metric. |
| content.data[].df_monitor_checker_name | string or null | Monitor name. |
| content.data[].df_monitor_checker_value | number, string, or null | Detection value when the event was triggered; the unit is determined by the Monitor's metric configuration and cannot be assumed to be milliseconds in all cases. |
| content.data[].df_monitor_type | string or null | Monitoring type, such as custom, slo, or bot_obs. Integration collection integration_collection is not included in this unrecovered list. |
| content.data[].df_workspace_uuid | string or null | Workspace identifier in the event record. |
| content.data[].df_meta | string, object, or null | Extended metadata provided by the source; strings may be JSON-serialized values. The structure varies by event source. |
| content.data[].df_bot_obs_detail | string, object, or null | Additional details for Intelligent Inspection events; may be absent for other sources. |
| content.data[].df_event_detail | string, object, or null | Extended details provided by the event source; fields are provided according to the corresponding monitoring type. |
| content.data[].df_is_silent | boolean, number, or null | Mute flag recorded by the source; the list does not uniformly convert this raw value to boolean. |
| content.data[].df_sent_target_types | array, string, or null | Notification target types recorded by the source; may vary by source and historical record format. |
| content.data[].df_alert_info | string, object, or null | Alert information recorded by the source; the structure varies by event type. |
| content.data[].isRecover | boolean | Recovering flag returned by some query paths; may be omitted. When present, indicates whether the event has been marked as recovering; true does not mean recovery has ultimately succeeded, so continue to query the status. |
| content.data[].alert_time_ranges | array<array<integer\|null>> |
List of abnormal time ranges, sorted by start time in ascending order, each item being [start milliseconds, end milliseconds]; for an unrecovered range, the end time may be null. |
| content.data[].alert_time_ranges[*] | array | A single abnormal range [start,end]. |
| content.data[].alert_time_ranges[*][0] | integer or null | Range start, in Unix milliseconds. |
| content.data[].alert_time_ranges[*][1] | integer or null | Range end, in Unix milliseconds; null if it has not ended. |
| content.data[].issueLists | array<object> |
Associated Issue list; [] when there are no associations. |
| content.data[].issueLists[].issueName | string | Associated Issue name. |
| content.data[].issueLists[].issueUUID | string | Associated Issue UUID. |
| content.data[].incidentsList | array<string> |
List of incident UUIDs associated with the event; [] when there are no associations. |
| content.data[].incidentsList[] | string | A single incident UUID. |
| content.data[].mute_rule | array<string> |
Array of Mute rule UUIDs returned when a matching Mute rule exists and the dimension tags can be parsed; may be omitted when there is no match. |
| content.data[].mute_rule[] | string | A single Mute rule UUID. |
| content.total_count | integer | Number of groups returned by the query; dynamic data and backend query limits may affect pagination consistency. |
| content.limit | integer | Maximum number of records for this request. |
| content.offset | integer | Offset for this request. |
| content.declaration | object or null | Common Workspace declaration; it is not recursively inserted into each event. |
{
"code": 200,
"content": {
"data": [
{
"__docid": "DOC-EXAMPLE",
"time": 1785430800000,
"date": 1785430800000,
"df_title": "checkout-api 响应时间超过阈值",
"df_message": "最近 5 分钟平均响应时间超过 500 ms。",
"df_status": "critical",
"df_source": "monitor",
"df_event_id": "event-example",
"df_monitor_checker_event_ref": "checkout-prod-latency",
"df_dimension_tags": "{\"service\":\"checkout-api\",\"env\":\"production\"}",
"df_check_range_start": 1785430500,
"df_check_range_end": 1785430800,
"df_fault_start_time": 1785430500,
"df_fault_id": "event-fault-example",
"df_monitor_checker": "custom_metric",
"df_monitor_checker_name": "checkout-api 平均响应时间",
"df_monitor_checker_value": 800,
"df_monitor_type": "custom",
"df_workspace_uuid": "wksp_example",
"df_is_silent": false,
"df_sent_target_types": [
"dingtalk"
],
"df_meta": "{}",
"df_bot_obs_detail": null,
"df_event_detail": null,
"df_alert_info": null,
"isRecover": false,
"alert_time_ranges": [
[
1785430500000,
null
]
],
"issueLists": [],
"incidentsList": []
}
],
"total_count": 1,
"limit": 20,
"offset": 0,
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
See Common Error Definitions for authentication, rate limiting, and common request errors.
Returning data=[] for no results does not report that the event does not exist. The current public parameters cannot change the default 48-hour window. When a query returns too much data, use more specific filters; there is no need to pass internal cross-Workspace parameters.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field missing, or field value violates declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Invalid request JSON syntax | Request JSON format error | Correct the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | JSON top level is not an object | Some JSON file format error | Submit a single JSON object; do not pass an array or string. |
| 406 | ft.InvalidParameter | An unsupported operator is used in filters | Invalid parameter {} |
Correct it according to the operator list; use >= and <= for ranges. |
| 503 | ft.QueryServiceUnavailable | Query service temporarily unavailable; the real upstream returns 503 | Query service is temporarily unavailable, please try again later | Read content.retryable=true and retry with backoff; provide traceId if the failure persists. |
| 406 | ft.KodoRequestDeadlineExceeded | Event query exceeds the backend's allowed execution time | Data query timed out. Possible causes include excessively large data volume, network latency, or high server load. You can resolve this issue in the following ways: 1. Add filter conditions or reduce the time range, then query again. 2. Wait for a period of time, then try the query again. |
Reduce the number of events matched by the filters and retry; for detail queries, reduce timeRange. |
| 406 | ft.KodoTooManyRows | Query data volume exceeds backend limit | The amount of data queried exceeds the maximum limit. Add filter conditions or reduce the time range, then query again. | Use explicit event conditions to reduce matched data; reducing the page size for a single request does not necessarily reduce aggregation overhead. |
| 429 | ft.KodoServerOverloaded | Query service is busy or overloaded | The current request is too frequent. Please try again later. | Retry with backoff and reduce the number of concurrent requests. |
| 500 | ft.InternalServerError | Query connection failure, upstream service exception, or other internal error | Internal error | Retry later; if the failure persists, provide traceId and a sanitized request. |