Skip to content

Disable/Enable Auto-Discovery Configuration



POST /api/v1/issue_auto_discovery/{cfg_uuid}/set_disable

Overview

Enable or disable an Issue auto-discovery rule.

Before You Begin and Usage Steps

This module is the legacy Incident Issue auto-discovery configuration; it is neither Incident Center Incidents scheduling/auto-aggregation nor error center ErrorTrack rules. In the current public write scope, dqlNamespace can only be keyevent; the legacy rum/tracing examples do not match the current declaration. Workspaces already migrated in the backend with issueUpgrade=true skip this v2 auto-discovery job, so 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. The target must be a non-deleted rule in the current workspace; an unknown or already-deleted target is not an idempotent success and returns 404 ft.LogIndexCfgNoExists. Disabling only sets the rule status to 2; subsequent scheduled queries/generation check the current status, and it cannot revoke executed queries/sent notifications or guarantee that in-flight jobs are cancelled immediately. Enabling restores scheduled participation, which is still subject to the skip condition for workspaces already migrated to Incident Center.

Returns true; it does not return hit counts/running jobs/notification status. Saving the configuration does not execute a query immediately or return generation jobs; the schedule aligns to the Asia/Shanghai calendar and processes the previous every-second window, and job queue/query duration may delay it. keyevent aggregates from monitor events and produces at most 1000 groups by dimensions, with no guarantee of complete coverage over a wide range. Sorted grouping dimensions are JSON-encoded to produce the duplicate identifier, and the rule UUID does not participate in that 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 it as a per-rule, isolated, never-intersecting Issue set. Open/Pending Issues get appended replies, Resolved Issues can be reopened and regress, and Closed Issues are not reused; the legacy Working branch is handled according to the actual implementation, with no guarantee of complete isolation during work. Notifications are asynchronous: HTTP 200 does not mean the data query succeeded/new Issues were generated/the notification was delivered.

Route Parameters

Parameter Name Type Required Description
cfg_uuid string Y A non-deleted rule in the current Key space, readable/modifiable whether status is 0 (enabled) or 2 (disabled). If missing, the legacy compatible ft.LogIndexCfgNoExists is used; although the message says log index, you actually need to verify this rule UUID.
Example: iatdc_example
How to obtain or fill in: Take content.data[].uuid (iatdc_) from Issue auto-discovery rule list; do not use an Issue UUID or an ErrorTrack rule UUID.

Request Headers

Parameter Name Type Required Description
DF-API-KEY string Y The OpenAPI authentication credential of the workspace.
Example: <DF-API-KEY>
How to obtain or fill in: Obtain an OpenAPI Key with the required permission from API Key management in the target workspace.

Body Request Parameters

Parameter Name Type Required Description
isDisable boolean Y Required boolean; missing/null/string returns 406 upfront. true sets status 2, false sets 0; the same value still updates the time.
Null allowed: False
Example: true
How to obtain or fill in: The caller explicitly decides to disable (true) or enable (false).

Supplementary Parameter Notes

The current public scope is keyevent; configuration saving, scheduled execution, and notification delivery are different stages. See below for the parameters and the complete response/error boundaries.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/issue_auto_discovery/iatdc_example/set_disable' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"isDisable":true}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content boolean true on success; contains no declaration or job/per-item information.
{
  "code": 200,
  "content": true,
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed A request field is missing, or a field value violates the declared validation conditions Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError The request JSON syntax is invalid Request JSON format error Fix the JSON according to content.reason, line, and column.
400 ft.JsonFormatError The top level of the request JSON is not an object Some json file format error Submit an isDisable boolean object.
404 ft.LogIndexCfgNoExists The non-deleted auto-discovery rule in the current workspace does not exist/has been deleted/is in another workspace The specified log index configuration does not exist Refresh the iatdc_ UUID from the auto-discovery list of this workspace; this is a legacy reused error message, do not go create a log index instead.
500 ft.InternalServerError Saving/submitting the rule status or an unhandled status update exception Internal error First check whether status is already 0/2 using the rule details, keep the traceId, and then decide whether to retry the same status; this does not involve re-creation or event count reset.

Feedback

Is this page helpful?