Get Auto-discovery Configuration¶
GET /api/v1/issue_auto_discovery/{cfg_uuid}/get
Overview¶
Read an Issue auto-discovery rule and its template.
Prerequisites and Usage Steps¶
This module is the original Incident Issue auto-discovery configuration. It is not Incident Center Incidents on-call/auto-aggregation, nor Error Center ErrorTrack rules. The current public write scope for dqlNamespace is keyevent only; legacy rum/tracing examples do not conform to the current declaration. Workspaces migrated in the backend 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 trace.issueDiscovery/rum.issueDiscovery/anomaly.issueDiscovery. Only non-deleted rules in the current Workspace are returned; if missing, the legacy 404 error ft.LogIndexCfgNoExists is returned. Returns the complete configuration and creator/updater identity summaries; it does not expand generated Issues or task run results.
Saving the configuration does not immediately run a query or return a generation task; the schedule processes the previous every-second window aligned to the Asia/Shanghai calendar, and task queue/query latency may delay it. keyevent aggregates from monitor events and produces at most 1000 groups by dimensions; complete coverage over a wide range is not guaranteed. The sorted JSON of grouping dimensions generates a duplication identifier; the rule UUID does not participate in this identifier; multiple rules in the same Workspace with the same dimension values may be associated with the same existing Issue; changing dimensions/filters may change grouping results. Do not treat it as an Issue set that is independent per rule and never intersects. For Open/Pending, replies are appended; Resolved Issues can be reopened and regress; Closed Issues are not reused; Historical Working branches are handled according to the actual implementation, and complete isolation during work 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.
Route Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| cfg_uuid | string | Y | A non-deleted rule in the current Key Workspace; both status 0 (enabled) and 2 (disabled) can be read/modified. If missing, the legacy-compatible error ft.LogIndexCfgNoExists is used; although the message refers to a log index, you actually need to verify this rule UUID. Example: iatdc_exampleHow to obtain or fill in: Get content.data[].uuid (iatdc_) from the Issue Auto-discovery Rule List; do not use an Issue UUID or ErrorTrack rule UUID. |
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 fill in: Obtain an OpenAPI Key with this operation permission from API Key Management in the target Workspace. |
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/iatdc_example/get' \
-H 'DF-API-KEY: <DF-API-KEY>'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object | Complete configuration and identity summary. |
| content.id | integer | Database ID of the existing configuration; subsequent API operations use uuid for lookup. |
| content.uuid | string | Auto-discovery rule UUID, prefixed with iatdc_. |
| content.status | integer | 0 enabled, 2 disabled, 3 soft-deleted; reads exclude 3. |
| content.creator | string | Creator identity UUID; the current public entry point is usually wsak_. |
| content.updator | string or null | Updater identity; may be empty or null for a creation snapshot. |
| content.createAt | integer | Creation time in Unix seconds. |
| content.updateAt | integer or null | Update time in Unix seconds; a creation snapshot before submission may be null; subsequent database default/updated values may be -1 or the actual time. |
| content.deleteAt | integer | Deletion time in Unix seconds; usually -1 if not deleted. |
| content.workspaceUUID | string | Workspace to which the current Key belongs. |
| content.name | string | Rule name. |
| content.description | string | Rule description; not the Issue body template. |
| content.dqlNamespace | string | Currently public writes use keyevent; historical records may use other namespaces, which does not mean they can be written back through public APIs. |
| content.every | integer | Period in seconds. |
| content.conditions | string | Saved DQL filter expression; does not indicate that execution has been verified as successful. |
| content.dimensions | array<string> |
Array of grouping field names; historical incorrect types must be tolerated. |
| content.dimensions[] | string | An event field name. |
| content.config | object | Template for defining generated Issues. |
| content.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; fields with dots/hyphens are not guaranteed to be replaced. |
| content.config.level | string | Optional level UUID or empty string; if non-empty, it must be currently valid, otherwise 406; omitted means no level is specified. This is not a general replacement field for Incident Center level UUIDs. |
| content.config.channelUUIDs | array | Optional channel UUID array; explicit items must be currently active. It is recommended to always pass [] or a valid array; although omission can be saved, the task may fail when iterating over None. The task automatically adds default channel associations; saving itself still requires the Workspace to have at least one active channel, even if [] is used. |
| content.config.channelUUIDs[] | string | A single active channel UUID; not a dimension field/team UUID; unknown or disabled returns 404. |
| content.config.description | string | Declared as an optional string, but subsequent tasks read this key directly; it is recommended to always provide it explicitly (it may be an empty string). Modifying config replaces it as a whole; omitting subkeys does not retain old values. |
| content.config.extend.text | string | Explicit string recommended. The task reads it and performs template replacement; missing/non-string values may cause asynchronous failure; it and config.description are separately stored text fields. |
| content.config.extend.manager | array | Optional array of manager strings. Valid acnt_/current Workspace team/email/dutyPerson values are retained; unknown accounts/unknown values may be silently removed, and item-by-item errors are not guaranteed. Free/trial Workspaces do not support external email addresses and may return 400. Missing managers may enter the unassigned escalation process. |
| content.config.extend.manager[] | string | A valid identity, email, or dutyPerson; non-string values may cause 500 during string startswith processing. |
| content.config.extend.conditionsInputFilters | any | Optional arbitrary JSON, used for supplementary filter display when navigating from historical Issues/notification events; actual queries still use the top-level conditions, and changing only this key cannot replace it. |
| content.config.extend.variable | json | Not recommended to fill in requests; the task overwrites this object with actual query columns; the common count is the number of records in the window. |
| content.config.extend.variable.count | integer | Runtime occurrence count; caller input will not take effect as a reliable fixed value. |
| content.config.extend.tags | json | Not recommended to fill in requests; the task overwrites it with actual grouping tags, which participate in Issue deduplication and template variables. |
| content.config.extend.tags. |
any | Dynamic JSON tag value; caller-supplied values cannot be used to generate fixed groupings. |
| content.config.extend.channelUUIDs | array | At runtime, overwritten with valid configured channels; do not use this extension field as a substitute for config.channelUUIDs. |
| content.config.extend.channelUUIDs[] | string | A valid channel identifier at runtime. |
| content.config.extend. |
any | Arbitrary JSON stored value; no additional execution guarantees are publicly documented on this page; do not store credentials. |
| content.config.extend | object or null | Saved extension; new requests should use an object; null causes exceptions in synchronous auditing or subsequent tasks. |
| content.creatorInfo | object | Identity summary attached to list/details; {} when there is no match. |
| content.creatorInfo.uuid | string | Identity UUID; may be an account, Key, or system identifier. |
| content.creatorInfo.status | integer | Identity status. |
| content.creatorInfo.wsAccountStatus | integer | Summary of membership status in the current Workspace. |
| content.creatorInfo.username | string | Login name or Key name. |
| content.creatorInfo.name | string | Display name. |
| content.creatorInfo.iconUrl | string | Avatar URL; may be empty. |
| content.creatorInfo.email | string | Email; for a Key identity, this may be its own UUID; delivery is not guaranteed. |
| content.creatorInfo.mobile | string | Mobile number; may be empty. |
| content.creatorInfo.countryCode | string | Country code; may be empty. |
| content.creatorInfo.acntWsNickname | string | Nickname in the current Workspace; may be empty. |
| content.updatorInfo | object | Identity summary attached to list/details; {} when there is no match. |
| content.updatorInfo.uuid | string | Identity UUID; may be an account, Key, or system identifier. |
| content.updatorInfo.status | integer | Identity status. |
| content.updatorInfo.wsAccountStatus | integer | Summary of membership status in the current Workspace. |
| content.updatorInfo.username | string | Login name or Key name. |
| content.updatorInfo.name | string | Display name. |
| content.updatorInfo.iconUrl | string | Avatar URL; may be empty. |
| content.updatorInfo.email | string | Email; for a Key identity, this may be its own UUID; delivery is not guaranteed. |
| content.updatorInfo.mobile | string | Mobile number; may be empty. |
| content.updatorInfo.countryCode | string | Country code; may be empty. |
| content.updatorInfo.acntWsNickname | string | Nickname in the current Workspace; may be empty. |
| content.declaration | object or null | Public declaration for the current Workspace. |
{
"code": 200,
"content": {
"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"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 404 | ft.LogIndexCfgNoExists | The non-deleted auto-discovery rule in the current Workspace does not exist, has been deleted, or is in another Workspace | The specified log index configuration does not exist | Refresh the iatdc_ UUID from the auto-discovery list in this Workspace; this is a legacy reused error message, do not switch to creating a log index. |
| 500 | ft.InternalServerError | Database read, historical structure, or identity summary construction exception | Internal error | Verify the fields and traceId and retry with backoff; ask the administrator to check the historical configuration. |