List Auto-Discovery Configurations¶
GET /api/v1/issue_auto_discovery/list
Overview¶
List Issue auto-discovery configurations by page.
Before You Call and Usage Steps¶
This module contains the legacy Incident Issue auto-discovery configurations. It is not Incident Center Incidents scheduling/auto-aggregation, nor Error Center ErrorTrack rules. Currently, the only publicly writable dqlNamespace is keyevent; legacy rum/tracing examples do not match the current declaration. Workspaces migrated in the background with issueUpgrade=true skip this v2 auto-discovery task; a successful configuration does not guarantee that new Issues will be generated in that workspace.
The permission must match one of routine.defaultAccess/anomaly.channelManage/anomaly.issueDiscovery; undeleted rules are read in descending createAt order, including disabled items. Although the current dqlNamespace/isDisable parameters exist, the implementation ignores them; you must read each item's fields and filter manually. content={data,declaration}, and pageInfo is at the top level; declaration is not recursively added to data items.
Saving a configuration does not immediately run a query or return a generation task; scheduled processing aligns with the Asia/Shanghai calendar and processes the previous every-second window. Task queue/query time may be delayed. keyevent aggregates from monitor events and produces up to 1000 groups by dimensions; complete coverage over broad ranges is not guaranteed. Sorted group dimensions generate a deduplication identifier as JSON; the rule UUID is not part of this identifier, so multiple rules in the same workspace with the same dimension values may be associated with the same existing Issue. Changing dimensions/filters may change the grouping result; do not treat this as a per-rule Issue set that is independent and never overlapping. Open/Pending are appended with replies, Resolved can be reopened and regress, Closed is not reused; legacy Working branches are handled according to the actual implementation, and complete isolation while in progress is not guaranteed. Notifications are asynchronous; HTTP 200 does not mean the data query succeeded, a new Issue was generated, or the notification was delivered.
Request Headers¶
| Parameter | 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. |
Query Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| dqlNamespace | string | Declared, but the current list implementation does not apply this filter; passing it does not limit the data range. You must check the returned item's dqlNamespace. Null allowed: False Example: keyeventHow to obtain or enter: Legacy compatibility query parameter. |
|
| isDisable | string | The current list implementation does not apply an enabled/disabled filter; passing true/false does not guarantee filtering to the corresponding status; filter by the returned status yourself. Null allowed: False Allowed values: ['true', 'false'] Example: falseHow to obtain or enter: Legacy compatibility string parameter true/false. |
|
| search | string | Optional; leading and trailing whitespace is trimmed, and SQL ILIKE fuzzy matching is used. If omitted/blank, no filtering is applied; %/_ retain wildcard semantics. Null allowed: False Empty string allowed: True Example: productionHow to obtain or enter: Rule name search. |
|
| pageSize | integer | Optional integer; if omitted, 20 (the example 10 is not the default). No upper limit is declared; a small, reasonable positive page size is recommended. Null allowed: False Example: 20How to obtain or enter: Control the page size according to read volume. |
|
| pageIndex | integer | Optional integer; if omitted, 1. The declaration does not define positive-only or an upper limit; clients use only positive values. Null allowed: False Example: 1How to obtain or enter: Paginate from the first page using the top-level pageInfo. |
Additional Parameter Notes¶
The current public scope is keyevent; configuration saving, scheduled execution, and notification delivery are different stages. See below for parameters and the complete response/error boundaries.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/issue_auto_discovery/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=20
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object | Paginated content object. |
| content.data | array<object> |
Rules on this page; [] if no match. |
| content.data[].id | integer | Database ID of an existing configuration; subsequent APIs use uuid to locate it. |
| content.data[].uuid | string | Auto-discovery rule UUID, prefixed with iatdc_. |
| content.data[].status | integer | 0 enabled, 2 disabled, 3 soft-deleted; reads exclude 3. |
| content.data[].creator | string | Creator principal UUID; the current public entry point is usually wsak_. |
| content.data[].updator | string or null | Updater principal; may be empty or null in a creation snapshot. |
| content.data[].createAt | integer | Unix creation time in seconds. |
| content.data[].updateAt | integer or null | Unix update time in seconds; may be null in a creation snapshot before submission; later database default/updated values may be -1 or the actual time. |
| content.data[].deleteAt | integer | Unix deletion time in seconds; usually -1 if not deleted. |
| content.data[].workspaceUUID | string | Workspace to which the current Key belongs. |
| content.data[].name | string | Rule name. |
| content.data[].description | string | Rule description; not the Issue body template. |
| content.data[].dqlNamespace | string | Currently publicly writable as keyevent; historical records may use other namespaces, which does not mean they can be written back through the public API. |
| content.data[].every | integer | Period in seconds. |
| content.data[].conditions | string | Saved DQL filter expression; does not indicate that execution has been verified as successful. |
| content.data[].dimensions | array<string> |
Array of grouping field names; legacy incorrect types must be tolerated. |
| content.data[].dimensions[] | string | An event field name. |
| content.data[].config | object | Issue generation definition template. |
| content.data[].config.name | string | Required string, up to 256 characters. The Issue title template is different from the rule name. Supports word variable names such as {{service}}/{{count}}; unknown variables are preserved as-is; arbitrary Python/Jinja expressions are not supported, and fields containing dots/hyphens are not guaranteed to be replaced. |
| content.data[].config.level | string | Optional level UUID or empty string; if non-empty, it must currently be valid, otherwise 406; if omitted, no level is specified. This is not a generic replacement field for Incident Center level UUIDs. |
| content.data[].config.channelUUIDs | array | Optional array of channel UUIDs; explicit items must currently be active. It is recommended to always pass [] or a valid array; although omission can be saved, the task iterating over None may fail. The task automatically adds the default channel association; saving itself still requires at least one active channel in the workspace, even if [] is passed. |
| content.data[].config.channelUUIDs[] | string | A single active channel UUID; not a dimension field/team UUID; unknown or disabled returns 404. |
| content.data[].config.description | string | Declared as an optional string, but subsequent tasks read this key directly, so it is recommended to always provide it explicitly (it can be an empty string). Modifying config replaces the whole object; omitting subkeys does not retain old values. |
| content.data[].config.extend.text | string | Explicit string recommended. The task reads and performs template replacement; missing/non-string values may fail asynchronously; both this field and config.description are separately stored text fields. |
| content.data[].config.extend.manager | array | Optional array of owner strings. Valid acnt_/current workspace team/email/dutyPerson values are retained; unknown accounts/unknown values may be silently removed, with no guarantee of per-item errors. Free/Free Plan workspaces do not support external email addresses and may return 400. Missing owners may enter the unassigned escalation process. |
| content.data[].config.extend.manager[] | string | A valid principal, email address, or dutyPerson; non-string values may cause 500 when processed with string startswith. |
| content.data[].config.extend.conditionsInputFilters | any | Optional arbitrary JSON, used to echo supplemental filters when navigating from historical Issues/notification events; actual queries still use top-level conditions, and changing only this key cannot replace it. |
| content.data[].config.extend.variable | json | Not recommended to fill in requests; the task overwrites this object with actual query columns; count is commonly the number of records in the window. |
| content.data[].config.extend.variable.count | integer | Number of occurrences at runtime; caller input does not take effect as a reliable fixed value. |
| content.data[].config.extend.tags | json | Not recommended to fill in requests; the task overwrites this with actual grouping tags, which participate in Issue deduplication and template variables. |
| content.data[].config.extend.tags.字段 | any | Dynamic JSON tag value; the generated grouping cannot be fixed based on caller-entered values. |
| content.data[].config.extend.channelUUIDs | array | Overwritten at runtime with valid configured channels; do not use this extension field instead of config.channelUUIDs. |
| content.data[].config.extend.channelUUIDs[] | string | A valid channel identifier at runtime. |
| content.data[].config.extend.自定义键 | any | Arbitrary JSON saved value; no additional execution guarantees are exposed on this page; do not store credentials. |
| content.data[].config.extend | object or null | Saved extension; new requests should use an object; null causes exceptions in synchronous auditing or subsequent tasks. |
| content.data[].creatorInfo | object | Additional principal summary for list/detail; {} if there is no match. |
| content.data[].creatorInfo.uuid | string | Principal UUID; can be an account, Key, or system identifier. |
| content.data[].creatorInfo.status | integer | Principal status. |
| content.data[].creatorInfo.wsAccountStatus | integer | Summary of membership status in the current workspace. |
| content.data[].creatorInfo.username | string | Login name or Key name. |
| content.data[].creatorInfo.name | string | Display name. |
| content.data[].creatorInfo.iconUrl | string | Avatar URL, may be empty. |
| content.data[].creatorInfo.email | string | Email address; a Key principal may use its own UUID, and deliverability is not guaranteed. |
| content.data[].creatorInfo.mobile | string | Mobile number, may be empty. |
| content.data[].creatorInfo.countryCode | string | Phone country code, may be empty. |
| content.data[].creatorInfo.acntWsNickname | string | Nickname in the current workspace, may be empty. |
| content.data[].updatorInfo | object | Additional principal summary for list/detail; {} if there is no match. |
| content.data[].updatorInfo.uuid | string | Principal UUID; can be an account, Key, or system identifier. |
| content.data[].updatorInfo.status | integer | Principal status. |
| content.data[].updatorInfo.wsAccountStatus | integer | Summary of membership status in the current workspace. |
| content.data[].updatorInfo.username | string | Login name or Key name. |
| content.data[].updatorInfo.name | string | Display name. |
| content.data[].updatorInfo.iconUrl | string | Avatar URL, may be empty. |
| content.data[].updatorInfo.email | string | Email address; a Key principal may use its own UUID, and deliverability is not guaranteed. |
| content.data[].updatorInfo.mobile | string | Mobile number, may be empty. |
| content.data[].updatorInfo.countryCode | string | Phone country code, may be empty. |
| content.data[].updatorInfo.acntWsNickname | string | Nickname in the current workspace, may be empty. |
| pageInfo | object | Pagination metadata; OpenAPI places it at the top level; content remains an object. |
| pageInfo.count | integer | Actual number of items on this page. |
| pageInfo.totalCount | integer | Total number of auto-discovery configurations matching the currently effective filters; not the number of generated Issues. |
| pageInfo.pageIndex | integer | Page number, starting from 1. |
| pageInfo.pageSize | integer | Number of items requested per page for this request. |
| content.declaration | object or null | Public declaration for the current workspace; added only to the content parent object, not recursively to data items. |
{
"code": 200,
"content": {
"data": [
{
"id": 7,
"uuid": "iatdc_example",
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": null,
"deleteAt": -1,
"workspaceUUID": "wksp_example",
"name": "生产事件自动发现",
"description": "按服务聚合生产告警",
"dqlNamespace": "keyevent",
"every": 300,
"conditions": "`df_status` = 'error'",
"dimensions": [
"service"
],
"config": {
"name": "服务{{service}}告警",
"description": "本窗口{{count}}条事件",
"channelUUIDs": [],
"extend": {
"text": "服务{{service}}发现{{count}}条事件",
"manager": []
}
},
"creatorInfo": {},
"updatorInfo": {}
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"count": 1,
"totalCount": 1,
"pageIndex": 1,
"pageSize": 20
}
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Using an undeclared Query parameter or a parameter violates the rules | Parameter parsing failed | Check the Query parameter table and examples. |
| 500 | ft.InternalServerError | Database read, legacy structure, or identity summary construction exception | Internal error | Check the fields and traceId and retry with backoff; ask the administrator to check legacy configurations. |