Import¶
POST /api/v1/checker/import
Overview¶
Batch create monitor templates, process them according to the name policy, and return an import summary.
Before You Begin and Usage Steps¶
By default, it first checks the target workspace for existing duplicate names in the same category; on a hit, it returns repeat_name.checker and the entire batch has not been created. After skipRepeatNameCheck=true, existing duplicate names are skipped by default; the skipRepeatNameCreate field is currently fixed as ignored by the implementation. deleteRepeatName=true means "create new, then delete the old name at the end"; the new UUID/references may all change and this cannot be treated as a replacement update; especially when cross-workspace authorization for a new duplicate name fails, the old duplicate name may still be deleted at the end, so back up first and verify authorization item by item. To preserve UUIDs, use replace.
Preflight validates all inputs first (including items that will later be filtered by type); V2 validates the complete YAML; for the OuterEventChecker items selected by type, the entire batch first normalizes suffix/change event flags, and import does not reuse secret. Groups and alert policies are resolved by template name; if they do not exist, the corresponding definitions can be created; dashboards are associated only by existing names in the target. A new alert policy does not mean the source notification configuration has been fully migrated.
Each successful item can be committed independently; the public entry point does not have the per-item fault-tolerant guard used by internal integrated installation, so ordinary exceptions terminate and throw an error, previously successful items are not rolled back, and complete statistics are not guaranteed. failCount mainly counts catchable single-source cross-workspace authorization failures; skipped existing duplicate names/different type items are not counted as success or failure, so successCount+failCount cannot be treated as the total number of inputs. Non-empty targetWorkspaceUUIDs takes precedence; for each source only AuthorizationVerificationFailed is skipped, and if at least one is valid, creation still succeeds and successCount+1; the original complete source array is saved but schedules are created only for valid sources. Public import does not read the internal per-source failure cache, so authFailedCrossWsInfo is not guaranteed to cover these partial failures; you must read crontabInfo.multiWsCrontabInfo to verify the actual execution scope, not just the counts. If all fail, CheckerAuthorizationVerificationFailed is reported; other exceptions can still interrupt directly. The channels in the successful rule array may be trimmed response values; call get again to verify the saved configuration.
Import sets the initial state according to is_disable and does not inherit custom operation permissions (default false/[]); tags use tagInfo.name, and scope conflicts are reported in skippedTags. Combined members are resolved against each other using the signId from the same export; public import cannot guarantee that dependencies of failed creations are automatically removed, so after import, verify combined references and actual execution one by one.
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 this operation permission from API Key Management in the target workspace. |
Body Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| checkers[*] | json | Signatures in the same batch must be unique; the target workspace resources are checked first; complete field declaration validation is not performed internally. Example: {"type": "trigger", "signId": "sign_example", "jsonScript": {"type": "simpleCheck", "title": "生产CPU阈值", "every": "1m", "interval": 300, "groupBy": ["host"], "targets": [{"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}], "checkerOpt": {"rules": [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]}}, "extend": {}, "is_disable": false, "tagInfo": [{"name": "production"}], "secret": "", "monitorName": "default", "alertPolicyNames": ["生产告警"]}How to obtain or enter: A single migratable template, not the body of a regular create. |
|
| checkers[*].type | string | trigger/smartMonitor/aiMonitor; it is actually imported only when it matches the top-level type of this import; replace must match the normalized category of the old object.Example: triggerHow to obtain or enter: Use the entity category from the export template. |
|
| checkers[*].signId | string | Exported as a digest of the original UUID, not an authentication credential; import uses it to preallocate UUIDs and rewrite combined member references; it must be unique within the batch, and it should not be reused across files on your own. replace does not use it to change the target UUID.Example: sign_exampleHow to obtain or enter: Keep the transparent signature from the same export as is. |
|
| checkers[*].jsonScript | json | Complete definition. Semantics and optional fields are as expanded on this page; import is not a regular add body, does not go through its complete nested declaration validation, and incorrect shapes may cause 500. The complete yamlConfig for V2 must be valid; all candidates may be validated synchronously before import.Example: {"type": "simpleCheck", "title": "生产CPU阈值", "every": "1m", "interval": 300, "groupBy": ["host"], "targets": [{"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}], "checkerOpt": {"rules": [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]}}How to obtain or enter: Obtain from the single template jsonScript returned by export, and verify the target data source according to the corresponding detection type. |
|
| checkers[*].extend | json | Default/old templates should use {}; do not provide null. Import saves according to the complete definition; for replace, the default {} overwrites the old extension rather than preserving it. See the table below for the meaning of each nested field.Example: {}How to obtain or enter: Take the complete echo/incident association object from the same export template and replace it with real resource identifiers in the target workspace. |
|
| checkers[*].is_disable | boolean | Optional, enabled by default; retains the template protocol underscore is_disable, not isDisable. Omitting it in replace enables old disabled rules.Example: falseHow to obtain or enter: true if it needs to be disabled after import; false for normal enabling. |
|
| checkers[*].tagInfo | array | Optional, default []; creates or reuses tags by name; top-level tags does not have an equivalent effect in template import. Omitting it in replace clears old tag associations.Example: [{"name": "production"}]How to obtain or enter: Take the tag name from the export template and ensure it applies to the monitor/all scope in the target workspace. |
|
| checkers[*].tagInfo[*] | json | Only name is needed; do not use the source tag UUID as the target workspace identifier.Example: {"name": "production"}How to obtain or enter: One business tag name per item. |
|
| checkers[*].tagInfo[*].name | string | Non-empty is recommended; validated against the monitor scope; conflicts may be reported in skippedTags; do not treat a skip as successful tag binding.Example: productionHow to obtain or enter: A business tag name applicable to the target workspace. |
|
| checkers[*].secret | string | Import does not inherit the source secret; OuterEventChecker export removes this field, and import generates a new secret; after migration, the Webhook must be obtained again. Omitting it/using an empty string in replace keeps the original secret; when replacing with a non-empty value, it must be globally unique.Example: How to obtain or enter: Only for replace when the external event address needs to be changed, obtain it from trusted original details or a new random secret. |
|
| checkers[*].monitorName | string | Optional, default default; an empty value is also treated as default; if it does not exist, a new group may be created. This is not monitorUUID. Omitting it in replace switches to default and does not keep the old group.Example: defaultHow to obtain or enter: Obtain from the target monitor group name or the export template. |
|
| checkers[*].alertPolicyNames | array | Optional, default []; names that do not exist create policy definitions; do not assume notification targets/rules are migrated together with the source policy. Omitting it in replace clears old policy references.Example: ["生产告警"]How to obtain or enter: Obtain from existing alert policy names in the target workspace, or use the same-named policy from the export. |
|
| checkers[*].alertPolicyNames[*] | string | Not a UUID; after import, verify the actual alert target configuration. Example: 生产告警How to obtain or enter: A single business policy name. |
|
| checkers[*].dashboardName | string | Optional; resolves an existing node dashboard only by name, and does not automatically import dashboards. If no match is found, no association is created; omitting it in replace/no match removes the old dashboard reference.Example: 生产总览How to obtain or enter: Obtain from an existing dashboard name in the target workspace. |
|
| checkers[*].openPermissionSet | boolean | Not included in export; regular import does not inherit these two permission settings; for replace, the default is false; required permissions must be explicitly and completely filled in.Example: falseHow to obtain or enter: Only for replace when custom operation permissions need to be retained; obtain from old details. |
|
| checkers[*].permissionSet | array | Not included in export; shared new imports default to []; omitting it/[] in replace clears old principals.Example: ["wsAdmin"]How to obtain or enter: Only for replace, select from target workspace roles/members/teams. |
|
| checkers[*].permissionSet[*] | string | Must not be an invalid principal from the source workspace. Example: wsAdminHow to obtain or enter: A valid operation principal in the target workspace. |
|
| checkers[*].configVersion | integer | Required only when replacing an existing V2 with the current version, not an exported historical version; the export template itself does not guarantee this top-level field, so add it before calling. Regular import creates a new version and does not retain the original version number.Example: 1How to obtain or enter: For V2 replace, read configVersion from the current object get before calling. |
|
| checkers[*].jsonScript.atAccounts | array | Optional array, default []; channels is used to associate Incidents, not a direct notification target; the server may add default channels/filter invalid channels. @external email addresses are restricted in free/trial editions; saving does not mean the notification has been sent.Example: ["acnt_example"]How to obtain or enter: Get channel uuid from Channel List; get account uuid or supported email for @identity from Member List. |
|
| checkers[*].jsonScript.atNoDataAccounts | array | Optional array, default []; channels is used to associate Incidents, not a direct notification target; the server may add default channels/filter invalid channels. @external email addresses are restricted in free/trial editions; saving does not mean the notification has been sent.Example: ["acnt_example"]How to obtain or enter: Get channel uuid from Channel List; get account uuid or supported email for @identity from Member List. |
|
| checkers[*].jsonScript.channels | array | Optional array, default []; channels is used to associate Incidents, not a direct notification target; the server may add default channels/filter invalid channels. @external email addresses are restricted in free/trial editions; saving does not mean the notification has been sent.Example: ["chan_example"]How to obtain or enter: Get channel uuid from Channel List; get account uuid or supported email for @identity from Member List. |
|
| checkers[*].jsonScript.checkFuncs | array | Optional, not required for regular thresholds; seniorCheck uses the first item's funcId/kwargs, and not all functions are treated as generic parameters.Example: []How to obtain or enter: Maintain only historical check types that use this compatible custom function structure; obtain from original details/function definitions. |
|
| checkers[*].jsonScript.checkerOpt | json | Regular rules usually use rules; advanced types fill in according to the corresponding algorithm, V2 uses yamlConfig, AI semantics uses userPrompt, etc.; undeclared subfields are rejected by public validation, and you cannot copy the entire internal SDK parameters.Example: {"rules": [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]}How to obtain or enter: Select the following trigger/algorithm/AI configuration according to jsonScript.type. |
|
| checkers[*].jsonScript.checkerOpt.category | string | AI semantics only. AI semantic classification metadata, optional string. Example: customHow to obtain or enter: Configure according to this workspace's AI semantic monitoring capabilities and business budget; omit optional items to let the AI service apply its default policy. |
|
| checkers[*].jsonScript.checkerOpt.combineExpr | string | Type-specific parameter. Combined member alias expression; required and non-empty for combined types; do not use Result instead of member aliases.Example: A && BHow to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current detection type. |
|
| checkers[*].jsonScript.checkerOpt.confidenceInterval | integer | Type-specific parameter. Interval V2 confidence interval 1..100, configured according to the actual algorithm. Example: 90How to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current detection type. |
|
| checkers[*].jsonScript.checkerOpt.contextWindowLimit | integer | AI semantics only. Positive integer token context limit, ≥1. Example: 8192How to obtain or enter: Configure according to this workspace's AI semantic monitoring capabilities and business budget; omit optional items to let the AI service apply its default policy. |
|
| checkers[*].jsonScript.checkerOpt.creditSoftBudget | number | AI semantics only. Soft budget per single Credit, finite number >0; not an API execution timeout. Example: 10How to obtain or enter: Configure according to this workspace's AI semantic monitoring capabilities and business budget; omit optional items to let the AI service apply its default policy. |
|
| checkers[*].jsonScript.checkerOpt.diffMode | string | Type-specific parameter. Advanced mutation value difference/percent percentage; must be explicitly provided.Example: percentHow to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current detection type. |
|
| checkers[*].jsonScript.checkerOpt.direction | string | Type-specific parameter. Advanced mutation/interval up/down/both; must be explicitly provided.Example: bothHow to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current detection type. |
|
| checkers[*].jsonScript.checkerOpt.disableLargeScaleEventProtect | boolean | Optional boolean. true disables large-scale event protection; default false retains protection.Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| checkers[*].jsonScript.checkerOpt.enableStreamingAggregation | boolean | Optional tri-state. Only controls streaming aggregation acceleration for supported types; it does not equal enabling/disabling the monitor or changing DQL semantics. Example: trueHow to obtain or enter: true/false when an independent switch is needed; omit or null to follow workspace configuration. |
|
| checkers[*].jsonScript.checkerOpt.eps | float | Type-specific parameter. Required for outlier, value 0..3.0; this algorithm does not use regular rules condition validation.Example: 0.5How to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current detection type. |
|
| checkers[*].jsonScript.checkerOpt.ignoreNodata | boolean | Optional boolean. Only combined monitoring true ignores no data; default false.Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| checkers[*].jsonScript.checkerOpt.infoEvent | boolean | Optional boolean. true generates info when continuously normal; default false; infoEventCondition controls conditions by type.Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| checkers[*].jsonScript.checkerOpt.infoEventCondition | json | Optional; {} means unconditional Info. Only applies to supported types such as regular threshold/log/application and RUM metrics/synthetic/process/network/mutation/interval; outlier/combined/liveness V2/change/programmable/smart/SLO are not supported and passing it reports UnsupportTriggerFields. If non-empty, alias/operator/operands must be complete and valid.Example: {"alias": "Result", "operator": ">=", "operands": [60]}How to obtain or enter: Construct from real query results and normal business thresholds. |
|
| checkers[*].jsonScript.checkerOpt.infoEventCondition.alias | string | Fill in according to the structure within a non-empty Info condition; corresponds to the targets alias.Example: ResultHow to obtain or enter: Consistent with the actual query target and threshold. |
|
| checkers[*].jsonScript.checkerOpt.infoEventCondition.operands | array | Fill in according to the structure within a non-empty Info condition; comparison value array, elements are strings/numbers; do not pass objects. Example: [60]How to obtain or enter: Consistent with the actual query target and threshold. |
|
| checkers[*].jsonScript.checkerOpt.infoEventCondition.operator | string | Fill in according to the structure within a non-empty Info condition; select from the regular condition operators on this page. Example: >=How to obtain or enter: Consistent with the actual query target and threshold. |
|
| checkers[*].jsonScript.checkerOpt.maxChatRounds | integer | AI semantics only. Maximum conversation rounds, integer ≥1. Example: 3How to obtain or enter: Configure according to this workspace's AI semantic monitoring capabilities and business budget; omit optional items to let the AI service apply its default policy. |
|
| checkers[*].jsonScript.checkerOpt.maxDQLQueries | integer | AI semantics only. Maximum number of DQL calls, integer ≥0. Example: 3How to obtain or enter: Configure according to this workspace's AI semantic monitoring capabilities and business budget; omit optional items to let the AI service apply its default policy. |
|
| checkers[*].jsonScript.checkerOpt.mentions | array | AI semantics optional, default []; each item type=dql, non-empty namespace/datasource, index optional and non-empty when passed; normalized JSON serialization total length ≤20000 characters. Does not replace data query authorization.Example: [{"type": "dql", "namespace": "logging", "index": "default", "datasource": "nginx"}]How to obtain or enter: Obtain reference metadata from the actual DQL namespace, log index, and source. |
|
| checkers[*].jsonScript.checkerOpt.mentions[*] | json | type/namespace/datasource required, index optional; only declare these four fields.Example: {"type": "dql", "namespace": "logging", "index": "default", "datasource": "nginx"}How to obtain or enter: One DQL reference per item. |
|
| checkers[*].jsonScript.checkerOpt.mentions[*].datasource | string | Real data source name within the reference item, such as log source/measurement, interpreted by namespace. Example: nginxHow to obtain or enter: Select from real data in the same target workspace. |
|
| checkers[*].jsonScript.checkerOpt.mentions[*].index | string | For log references within the reference item, fill in the real index name/identifier; other types may omit it. Example: defaultHow to obtain or enter: Select from real data in the same target workspace. |
|
| checkers[*].jsonScript.checkerOpt.mentions[*].namespace | string | Real DQL namespace within the reference item, not the entity type.Example: loggingHow to obtain or enter: Select from real data in the same target workspace. |
|
| checkers[*].jsonScript.checkerOpt.mentions[*].type | string | Fixed dql within the reference item.Example: dqlHow to obtain or enter: Select from real data in the same target workspace. |
|
| checkers[*].jsonScript.checkerOpt.model | string | AI semantics only. AI semantic optional model name; should be obtained from the site-supported model configuration, and the literal value in documentation examples must not be used. Example: example-modelHow to obtain or enter: Configure according to this workspace's AI semantic monitoring capabilities and business budget; omit optional items to let the AI service apply its default policy. |
|
| checkers[*].jsonScript.checkerOpt.openMatchTimes | boolean | Optional boolean. true enables continuous trigger matching; default false; used with rules[].matchTimes.Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| checkers[*].jsonScript.checkerOpt.openOkConditions | boolean | Optional boolean. true enables graded recovery; default false; okConditions must satisfy trigger and recovery boundaries.Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| checkers[*].jsonScript.checkerOpt.rules | array | Regular rule condition array; each item has status/conditionLogic/conditions, and recovery uses okConditions. Incorrect member/operator shapes may throw ordinary exceptions and eventually return 500, not always 406. Conditions with empty operands are filtered before scheduling is constructed; do not use them to express "all".Example: [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]How to obtain or enter: Construct according to the levels allowed to trigger events and the target Result. |
|
| checkers[*].jsonScript.checkerOpt.script | string | Type-specific parameter. Programmable detection script text, using syntax supported by that type; this API does not execute a script test. Example: return {}How to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current detection type. |
|
| checkers[*].jsonScript.checkerOpt.systemPrompt | string | AI semantics only. AI semantic optional; non-empty when passed; Python characters ≤20000. Example: 结合实际查询结果判断,不臆测缺失数据。How to obtain or enter: Configure according to this workspace's AI semantic monitoring capabilities and business budget; omit optional items to let the AI service apply its default policy. |
|
| checkers[*].jsonScript.checkerOpt.threshold | json | Optional object; when provided, status/operator/value are all declared required; status=false disables prerequisite evaluation; value allows null but should be filled in according to the actual algorithm meaning.Example: {"status": false, "operator": ">", "value": 90}How to obtain or enter: The trigger prerequisite for advanced mutation, determined by the actual business threshold. |
|
| checkers[*].jsonScript.checkerOpt.threshold.operator | string | Required when the parent object exists; prerequisite comparison operator, e.g. >, according to the actual advanced detection compatibility set.Example: >How to obtain or enter: Fill in according to the advanced mutation prerequisite definition. |
|
| checkers[*].jsonScript.checkerOpt.threshold.status | boolean | Required when the parent object exists; whether to enable prerequisite conditions. Example: falseHow to obtain or enter: Fill in according to the advanced mutation prerequisite definition. |
|
| checkers[*].jsonScript.checkerOpt.threshold.value | float | Required when the parent object exists; prerequisite value; status=false allows null, status=true must be numeric, otherwise IllegalMutationParameters; unit must match the query result.Example: 90How to obtain or enter: Fill in according to the advanced mutation prerequisite definition. |
|
| checkers[*].jsonScript.checkerOpt.userPrompt | string | AI semantics only. AI semantic condition is required and non-empty, Python characters ≤20000; although declared as allowing an empty string, the business does not accept blank values. Example: 分析最近5分钟生产服务错误率是否异常。How to obtain or enter: Configure according to this workspace's AI semantic monitoring capabilities and business budget; omit optional items to let the AI service apply its default policy. |
|
| checkers[*].jsonScript.checkerOpt.yamlConfig | string | Required only for V2, non-empty UTF-8 YAML text ≤256KiB, not a JSON object or Markdown fence; see the YAML table on this page for structure. Anchors/aliases/explicit tags/duplicate keys are prohibited. Modifications may only change existing DQL, threshold configuration, and algorithm params; rule sets/names/execution structure cannot be changed. On save, protocol/budget is validated and permissions for the query data domain are parsed and checked; DQL is not executed and data existence/source authorization completeness is not guaranteed. Example: "version: 1\nname: production\nevent:\n title: \"{{Scene.problem_title}}\"\n message: \"{{Scene.problem_message}}\"\nrules:\n - id: cpu_idle\n name: CPU idle\n query:\n dql: \"M::cpu:(avg(usage_idle)) BY host\"\n scene_by: [host]\n detect:\n threshold:\n operator: \"<\"\n operands: [10]\n display:\n signal: CPU idle\n"How to obtain or enter: Obtain complete valid YAML from Generate API or Built-in Templates, then edit within the allowed scope. |
|
| checkers[*].jsonScript.customCrontab | string | Optional; non-empty takes precedence over every; supports 5 fields or 6 fields with seconds; the second step form must not be less than 20. Combined monitoring and combined members have custom frequency conflict restrictions; V2 prohibits it. Detection time zone depends on current workspace/service configuration; do not use a time zone name in the string to replace the field.Example: 0 */5 * * * *How to obtain or enter: For custom frequency, fill in the complete expression in the Cron editor. |
|
| checkers[*].jsonScript.delaySeconds | integer | Optional regular monitoring data wait window in seconds; 0 means no wait; default 0; boolean is not treated as an integer. Smart/AI do not use regular wait configuration; cannot use it to adjust smart execution delay. Example: 60How to obtain or enter: Choose 0/60/120/180/300/600/900/1800 according to data arrival delay. |
|
| checkers[*].jsonScript.disableCheckEndTime | boolean | Optional compatibility boolean, default false; actual support depends on detection type.Example: falseHow to obtain or enter: true when the check end time limit needs to be removed. |
|
| checkers[*].jsonScript.eventChartEnable | boolean | Optional, default false; processed only by supported Doris log primary storage; successful save does not prove the chart has been generated.Example: falseHow to obtain or enter: Select when the data storage supports event charts. |
|
| checkers[*].jsonScript.eventCharts | array | Optional chart configuration array; provide together when enabling event charts; actual results are generated by the event processing chain and are not returned in the write response. Example: [{"dql": "M::cpu:(avg(usage_idle)) BY host"}]How to obtain or enter: Verify the query used for event display from real data. |
|
| checkers[*].jsonScript.eventCharts[*] | json | Declares only the dql subfield.Example: {"dql": "M::cpu:(avg(usage_idle)) BY host"}How to obtain or enter: A single already verified chart query. |
|
| checkers[*].jsonScript.eventCharts[*].dql | string | Optional query text, not a chart UUID; saving does not execute the chart query. Example: M::cpu:(avg(usage_idle)) BY hostHow to obtain or enter: Write DQL from supported data sources according to real metrics/fields. |
|
| checkers[*].jsonScript.every | string | Regular templates usually use every or customCrontab; a non-empty compatible fixedCrontab may skip the common every preflight; every cannot be uniformly called a required template field; actual Cron generation and algorithms still have type constraints. Regular recommendation is a positive integer s/m/h and ≤24h; V2 is fixed at 10m.Example: 1mHow to obtain or enter: Choose positive integer + s/m/h according to business detection frequency, e.g. 1m, 5m, 1h. |
|
| checkers[*].jsonScript.groupBy | array | Optional dimension name array; usually [] means no additional dimension grouping; not tag values. Combined monitoring member dimensions must be compatible.Example: ["host"]How to obtain or enter: Select from grouping fields returned by the real DQL, consistent with the BY dimensions. |
|
| checkers[*].jsonScript.interval | integer | For regular with targets, requires 1..2592000 seconds (30 days); different from every detection frequency. Combined monitoring skips this general check; V2 uses YAML query.interval/lookback.Example: 300How to obtain or enter: Choose a positive integer number of seconds according to the time range required for detection, coordinated with the real data granularity. |
|
| checkers[*].jsonScript.isChangeEvent | boolean | OuterEventChecker optional, default false; other types do not use it.Example: falseHow to obtain or enter: true when the external event is a change event. |
|
| checkers[*].jsonScript.message | string | Event content. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated.Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual detection dimensions and result variables; they can be reused from verified events of the same type. |
|
| checkers[*].jsonScript.noDataAction | string | Optional none/checkAs0/noDataEvent/noDataEventRepeat/fatalEvent/criticalEvent/errorEvent/warningEvent/okEvent/noData/recover. noDataEventRepeat only supports applicable types and requires a positive integer noDataInterval; omitted/empty compatible values and positive duration have special historical handling, and repeated alerts do not depend on the default implementation.Example: noDataEventHow to obtain or enter: Select from the enumeration of this parameter according to the business meaning of no data. |
|
| checkers[*].jsonScript.noDataInterval | integer | Optional by type. No-data duration in seconds; regular frequency rounds up to a whole detection cycle, custom frequency uses seconds directly; repeat no-data must be a positive integer. Modifications should fully preserve applicable settings and not mix units. Example: 600How to obtain or enter: Determine the window/offset/duration with the business; first verify with the corresponding type details and actual events. |
|
| checkers[*].jsonScript.noDataMessage | string | Output no-data event information template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated.Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual detection dimensions and result variables; they can be reused from verified events of the same type. |
|
| checkers[*].jsonScript.noDataNotificationMessage | string | Data gap event notification content. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated.Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual detection dimensions and result variables; they can be reused from verified events of the same type. |
|
| checkers[*].jsonScript.noDataRecoverMessage | string | Output no-data recovery upload event information template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated.Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual detection dimensions and result variables; they can be reused from verified events of the same type. |
|
| checkers[*].jsonScript.noDataRecoverTitle | string | Output no-data recovery upload event title template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated.Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual detection dimensions and result variables; they can be reused from verified events of the same type. |
|
| checkers[*].jsonScript.noDataTitle | string | Output no-data event title template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated.Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual detection dimensions and result variables; they can be reused from verified events of the same type. |
|
| checkers[*].jsonScript.notificationMessage | string | Event notification content. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated.Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual detection dimensions and result variables; they can be reused from verified events of the same type. |
|
| checkers[*].jsonScript.openNoDataNotificationMessage | boolean | Optional, default false; when disabled, the corresponding event content is used; when enabled, provide the corresponding notificationMessage/noDataNotificationMessage at the same time.Example: falseHow to obtain or enter: true when notification-specific content needs to be used separately. |
|
| checkers[*].jsonScript.openNotificationMessage | boolean | Optional, default false; when disabled, the corresponding event content is used; when enabled, provide the corresponding notificationMessage/noDataNotificationMessage at the same time.Example: falseHow to obtain or enter: true when notification-specific content needs to be used separately. |
|
| checkers[*].jsonScript.periodBefore | integer | Optional by type. Advanced mutation comparison offset in seconds, e.g. 86400 for yesterday; fill in together with range/range_2. Modifications should fully preserve applicable settings and not mix units.Example: 86400How to obtain or enter: Determine the window/offset/duration with the business; first verify with the corresponding type details and actual events. |
|
| checkers[*].jsonScript.range | integer | Optional by type. Current comparison window for advanced mutation, positive integer seconds. Modifications should fully preserve applicable settings and not mix units. Example: 3600How to obtain or enter: Determine the window/offset/duration with the business; first verify with the corresponding type details and actual events. |
|
| checkers[*].jsonScript.range_2 | integer | Optional by type. Advanced mutation comparison window setting: -1 period-over-period, 0 according to periodBefore, others according to the second window defined by the corresponding advanced detection. Modifications should fully preserve applicable settings and not mix units.Example: -1How to obtain or enter: Determine the window/offset/duration with the business; first verify with the corresponding type details and actual events. |
|
| checkers[*].jsonScript.recoverMessage | string | Output recovery event information template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated.Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual detection dimensions and result variables; they can be reused from verified events of the same type. |
|
| checkers[*].jsonScript.recoverNeedPeriodCount | integer | Optional by type. For regular frequency, it is the number of consecutive recovery periods; for customCrontab, it is the recovery duration directly in seconds; default 0. Modifications should fully preserve applicable settings and not mix units.Example: 1How to obtain or enter: Determine the window/offset/duration with the business; first verify with the corresponding type details and actual events. |
|
| checkers[*].jsonScript.recoverTitle | string | Output recovery event title template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated.Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual detection dimensions and result variables; they can be reused from verified events of the same type. |
|
| checkers[*].jsonScript.subUri | string | OuterEventChecker newly required non-empty string; the public receiving URL is a single path segment and cannot contain / (encoded %2F still returns 404); alphanumeric and hyphens are recommended. Multiple rules may use the same suffix; secret is responsible for uniqueness; do not fill for regular detection.Example: datakit-pushHow to obtain or enter: Choose a Webhook suffix for the current external event integration. |
|
| checkers[*].jsonScript.targetWorkspaceUUID | string | Optional single source; non-empty targetWorkspaceUUIDs takes precedence. Single-source authorization failure can be caught by import and counted in failCount; multi-source partial failure reduces the execution scope but can still count as overall success; this field cannot be used to infer that all sources execute. V2 prohibits.Example: wksp_source_exampleHow to obtain or enter: Obtain a single source workspace from valid Cross-Workspace Authorization. |
|
| checkers[*].jsonScript.targets | array | Regular query target array; actual DQL/PromQL execution statements go in dql; regular public plugin alias only accepts Result or empty, and alias uniqueness is checked; single-target Result is recommended. Combined monitoring uses monitorCheckerId/alias to associate members; V2 prohibits targets, and everything goes in YAML.Example: [{"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}]How to obtain or enter: First verify the query in the same data source in the target workspace; fields/indexes must actually exist. |
|
| checkers[*].jsonScript.title | string | The template entry does not have the unified required/256 weighted length pre-validation of regular add. A non-empty string is recommended, using the length recommended for regular rules; specifics are still subject to plugin/downstream limits; do not assume that missing title will definitely be rejected up front.Example: 生产CPU阈值How to obtain or enter: Recommended to get from the original template event title; import name uses non-empty title first, otherwise name. |
|
| checkers[*].jsonScript.type | string | Required plugin identifier; historical compatibility types such as mutationsCheck/rangeCheck/seniorCheck and old smart* still need to be maintained according to the original configuration, and cannot be replaced by the entity type. Specific fields apply only to their type and cannot be mixed. V2 and legacy cannot be switched between each other.Example: simpleCheckHow to obtain or enter: Select according to detection method; regular simpleCheck threshold, apmCheck/rumCheck/processCheck/cloudDialCheck/networkCheck/objectCheck; advanced seniorMutationsCheck/seniorRangeCheck/seniorRangeV2Check/outlierCheck; combinedCheck combined, OuterEventChecker external event, programmableCheck programmable; smart V2 smartMonitorV2Check, AI semantic aiMonitor (same name as entity type but different field level). |
|
| checkers[*].jsonScript.windowDql | string | Optional compatibility window query text, passed through as additional event material; does not replace the actual detection query in targets; omitted means not provided.Example: M::cpu:(avg(usage_idle)) BY hostHow to obtain or enter: Obtain from a verified original detection window display query or details of the same type. |
|
| checkers[*].jsonScript.targets[*] | json | Use the subordinate structure according to type. Example: {"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}How to obtain or enter: One query or combined member. |
|
| checkers[*].jsonScript.targets[*].dql | string | DQL or PromQL text, specified by qtype.Example: M::cpu:(avg(usage_idle)) BY hostHow to obtain or enter: Write and verify from actual data in the target workspace. |
|
| checkers[*].jsonScript.targets[*].qtype | string | Optional, usually dql.Example: dqlHow to obtain or enter: Choose dql for DQL and promql for PromQL. |
|
| checkers[*].jsonScript.targets[*].alias | string | Regular plugins only accept Result or empty and must not duplicate.Example: ResultHow to obtain or enter: Use Result for a regular single query; assign A/B etc. to combined members. |
|
| checkers[*].jsonScript.targets[*].monitorCheckerId | string | Only combinedCheck; members cannot be rules with Cron conflicts.Example: rul_checker_exampleHow to obtain or enter: Obtain an available member UUID from the current workspace monitor list. |
|
| checkers[*].jsonScript.groupBy[*] | string | A single dimension. Example: hostHow to obtain or enter: A real DQL BY field. |
|
| checkers[*].jsonScript.checkFuncs[*] | json | seniorCheck uses the first item.Example: {"funcId": "example.func", "kwargs": {}}How to obtain or enter: Obtain from the original compatible custom function configuration. |
|
| checkers[*].jsonScript.checkFuncs[*].funcId | string | Compatible function identifier. Example: example.funcHow to obtain or enter: A real available function ID. |
|
| checkers[*].jsonScript.checkFuncs[*].kwargs | json | Dynamic object; no unified required subkeys. Example: {}How to obtain or enter: The function-specific parameter structure. |
|
| checkers[*].jsonScript.checkFuncs[*].kwargs.参数名 | any | A single function-specific value. Example: 1How to obtain or enter: Obtain the name/type/source from the corresponding function documentation. |
|
| checkers[*].jsonScript.checkerOpt.rules[*] | json | Different algorithms may use different condition structures. Example: {"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}How to obtain or enter: Conditions for a single alert level. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].status | string | Allowed set for public plugins, used according to actual detection type. Example: warningHow to obtain or enter: Select fatal/critical/error/warning/info/ok/ALL according to event level. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].conditionLogic | string | Required for public conditions. Example: andHow to obtain or enter: and/or. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].conditions | array | Required array for public conditions. Example: [{"alias": "Result", "operator": "<", "operands": [10]}]How to obtain or enter: Construct according to the real query result and threshold. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].okConditions | array | Optional, used with openOkConditions; threshold comparison direction must be opposite to the trigger and the boundary must be valid.Example: [{"alias": "Result", "operator": ">=", "operands": [20]}]How to obtain or enter: Set independent boundaries for graded recovery. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].matchTimes | integer | Optional, used with openMatchTimes; when enabled defaults to 1, actual range 1..100, exceeding the limit reports ErrorContinuousTriggerCfgCount.Example: 2How to obtain or enter: How many consecutive anomalies the business allows before triggering. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].conditions[*] | json | A single comparison condition. Example: {"alias": "Result", "operator": "<", "operands": [10]}How to obtain or enter: Construct with the real query Result and threshold. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].conditions[*].alias | string | Must match the target alias.Example: ResultHow to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].conditions[*].operator | string | Public operators =, !=, >, >=, <, <=, between, notBetween, like, notLike, in, notIn, regExp, notRegExp, isTrue, isFalse, likeTrue, likeFalse; specific algorithms may narrow this. Example: <How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].conditions[*].operands | array | String/number array, preserving the real result unit; do not pass booleans/objects; conditions with empty values may be filtered. Example: [10]How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].conditions[*].operands[*] | JSON | A single threshold; for numeric comparison provide a JSON number; for regex/set provide a string according to the actual rule. Example: 10How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].okConditions[*] | json | A single comparison condition. Example: {"alias": "Result", "operator": "<", "operands": [10]}How to obtain or enter: Construct with the real query Result and threshold. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].okConditions[*].alias | string | Must match the target alias.Example: ResultHow to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].okConditions[*].operator | string | Public operators =, !=, >, >=, <, <=, between, notBetween, like, notLike, in, notIn, regExp, notRegExp, isTrue, isFalse, likeTrue, likeFalse; specific algorithms may narrow this. Example: <How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].okConditions[*].operands | array | String/number array, preserving the real result unit; do not pass booleans/objects; conditions with empty values may be filtered. Example: [10]How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].okConditions[*].operands[*] | JSON | A single threshold; for numeric comparison provide a JSON number; for regex/set provide a string according to the actual rule. Example: 10How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| checkers[*].jsonScript.channels[*] | string | A single valid value in the array. Example: chan_exampleHow to obtain or enter: Use the channel or account identifier from the parent description. |
|
| checkers[*].jsonScript.atAccounts[*] | string | A single valid value in the array. Example: acnt_exampleHow to obtain or enter: Use the channel or account identifier from the parent description. |
|
| checkers[*].jsonScript.atNoDataAccounts[*] | string | A single valid value in the array. Example: acnt_exampleHow to obtain or enter: Use the channel or account identifier from the parent description. |
|
| checkers[*].jsonScript.checkerOpt.infoEventCondition.operands[*] | JSON | String or number. Example: 60How to obtain or enter: A comparison value in the same unit as the query Result. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].strength | integer | Historical type-specific, old mutationsCheck strength 1/2/3. New advanced types use their corresponding checkerOpt fields and do not mix.Example: 2How to obtain or enter: Read from original details when maintaining an existing old algorithm. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].direction | string | Historical type-specific, old mutationsCheck/rangeCheck direction up/down/both. New advanced types use their corresponding checkerOpt fields and do not mix.Example: bothHow to obtain or enter: Read from original details when maintaining an existing old algorithm. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].checkCount | integer | Historical type-specific, old mutation detection check count, integer. New advanced types use their corresponding checkerOpt fields and do not mix.Example: 3How to obtain or enter: Read from original details when maintaining an existing old algorithm. |
|
| checkers[*].jsonScript.checkerOpt.rules[*].periodNum | integer | Historical type-specific, old mutation/interval period count, integer. New advanced types use their corresponding checkerOpt fields and do not mix.Example: 3How to obtain or enter: Read from original details when maintaining an existing old algorithm. |
|
| checkers[*].extend.isNeedCreateIssue | boolean | Default false; when enabled, channel/assignee/status/level mapping are also checked.Example: falseHow to obtain or enter: true when events need to automatically generate Issues. |
|
| checkers[*].extend.issueLevelUUID | string | Historical compatibility level; invalid values may be cleared to empty; success does not prove the level takes effect. Example: issl_exampleHow to obtain or enter: Get uuid from the valid Issue level list. |
|
| checkers[*].extend.issueDfStatus | array | Elements limited to fatal/critical/error/warning/nodata.Example: ["critical", "error"]How to obtain or enter: Select which anomaly levels trigger Issues. |
|
| checkers[*].extend.issueDfStatus[*] | string | A single allowed status. Example: errorHow to obtain or enter: The actual alert level. |
|
| checkers[*].extend.manager | array | The assignee list is normalized to specific targets; on-call personnel are resolved using the workspace time zone's calendar for the current day, and will not automatically change with shifts after this write. Example: ["acnt_example"]How to obtain or enter: Obtain assignee targets from workspace members/teams/notification schedules. |
|
| checkers[*].extend.manager[*] | string | A single assignee; verify the source is valid first. Example: acnt_exampleHow to obtain or enter: Member/team or supported on-call target identifier for the current day. |
|
| checkers[*].extend.incidentsTags | array | Used for Issue-associated tags; tags may be created/validated according to rules. Example: ["production"]How to obtain or enter: Obtain from tag names applicable to monitor. |
|
| checkers[*].extend.incidentsTags[*] | string | Not a UUID. Example: productionHow to obtain or enter: The actual business tag name. |
|
| checkers[*].extend.faultMappingMode | string | Default custom when Issue is enabled; existing requires a valid levelMappingUUID.Example: customHow to obtain or enter: Custom mapping custom, reference existing mapping existing. |
|
| checkers[*].extend.levelMappingUUID | string | Required valid UUID for the existing condition; the custom branch removes this reference field but retains historical custom rows.Example: islm_exampleHow to obtain or enter: Obtain from available anomaly level mapping configurations in this workspace. |
|
| checkers[*].extend.bindIncidentsInfo | array | Custom mapping rows; when switching back to custom and omitting this key, the controller may retain old rows, but the public extend as a whole still needs careful filling.Example: [{"incidentsLevelUUID": "issl_example", "incidentsDfStatus": ["error"]}]How to obtain or enter: Construct by mapping event levels to Issue levels. |
|
| checkers[*].extend.bindIncidentsInfo[*] | json | One mapping object. Example: {"incidentsLevelUUID": "issl_example", "incidentsDfStatus": ["error"]}How to obtain or enter: A single status-to-level mapping. |
|
| checkers[*].extend.bindIncidentsInfo[*].incidentsLevelUUID | string | Invalid levels may be cleared. Example: issl_exampleHow to obtain or enter: Obtain from the valid Issue level list. |
|
| checkers[*].extend.bindIncidentsInfo[*].incidentsDfStatus | array | Array of allowed statuses. Example: ["error"]How to obtain or enter: Select from fatal/critical/error/warning/nodata. |
|
| checkers[*].extend.bindIncidentsInfo[*].incidentsDfStatus[*] | string | A single allowed value. Example: errorHow to obtain or enter: The actual event level. |
|
| checkers[*].extend.smartMonitor.source | string | ai/builtin; the new OpenAPI may directly pass a complete valid configuration without generation credentials.Example: aiHow to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate real site template IDs. |
|
| checkers[*].extend.smartMonitor.category | string | Source category; V2 modification cannot change it. Example: customHow to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate real site template IDs. |
|
| checkers[*].extend.smartMonitor.prompt | string | AI prompt; if an existing prompt changes, candidates need to be regenerated. Example: 检测生产主机异常。How to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate real site template IDs. |
|
| checkers[*].extend.smartMonitor.templateId | string | builtin source template identifier; modification cannot change it.Example: template_exampleHow to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate real site template IDs. |
|
| checkers[*].extend.smartMonitor.templateVersion | string | builtin template version; modification cannot change it.Example: 1How to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate real site template IDs. |
|
| checkers[*].extend.smartMonitor | json | V2 only; the server cleans forged execution/version status and writes engineVersion/configVersion; allowed fields are retained, and the old source category is immutable.Example: {"source": "ai", "category": "custom", "prompt": "检测生产主机异常。"}How to obtain or enter: Obtain source metadata from the generation or template selection flow. |
|
| checkers[*].extend.querylist | array | Optional; when present, it is retained and takes precedence over queryType auto-injection; it does not replace the actual targets DQL, and an incorrect echoed structure does not prove detection is normal.Example: []How to obtain or enter: For existing client echo configuration, obtain the complete array directly from original details. |
|
| checkers[*].extend.querylist[*] | json | Dynamic editor object, saved according to client version; actual detection is based only on targets.Example: {"qtype": "dql", "query": {"q": "M::cpu:(avg(usage_idle)) BY host"}}How to obtain or enter: A single query echo generated by the client editor. |
|
| checkers[*].extend.querylist[*].qtype | string | Does not automatically convert the executed query. Example: dqlHow to obtain or enter: dql/promql query type echo. |
|
| checkers[*].extend.querylist[*].query | json | May contain simple/dql mode details; it cannot replace targets.Example: {"q": "M::cpu:(avg(usage_idle)) BY host"}How to obtain or enter: Query editing structure generated by the client. |
|
| checkers[*].extend.querylist[*].query.q | string | Complete DQL/PromQL echo. Example: M::cpu:(avg(usage_idle)) BY hostHow to obtain or enter: Keep consistent with the real targets query text. |
|
| checkers[*].jsonScript.targetWorkspaceUUIDs | array | Optional non-empty array takes precedence over singular targetWorkspaceUUID; for each source only AuthorizationVerificationFailed is skipped; if at least one is valid, schedules are created for actual valid sources, but the original complete array is saved. All failing reports CheckerAuthorizationVerificationFailed; other exceptions may interrupt. You must read crontabInfo.multiWsCrontabInfo to verify the actual execution scope.Example: ["wksp_source_a", "wksp_source_b"]How to obtain or enter: Obtain source UUIDs from valid cross-workspace authorization in the target workspace; templates may have this field and are not subject to the regular add nested allowlist. |
|
| checkers[*].jsonScript.targetWorkspaceUUIDs[*] | string | The retained input value or success count cannot be treated as proof that the source is authorized/scheduled. V2 still prohibits cross-workspace fields. Example: wksp_source_aHow to obtain or enter: Use a single real valid source workspace UUID. |
|
| checkers[*].jsonScript.name | string | Optional legacy template field. Non-empty title overrides name; an effective name is recommended; do not assume that the unified plugin name validation has been commented out as unrestricted support.Example: 生产CPU阈值How to obtain or enter: Compatible with the name in old export templates; used as the import name source when there is no non-empty title. |
|
| checkers[*].jsonScript.fixedCrontab | string | The template may save this compatibility field; regular public add/modify does not have the same allowlist. When non-empty, the public frequency preflight skips every validation; actual make_crontab still first uses customCrontab, and if every exists generates by every. Do not provide conflicting frequencies at the same time; after import verify against the actual Cron in crontabInfo; V2 prohibits this field.Example: 0 */5 * * * *How to obtain or enter: Only retain the fixed Cron of a trusted old export template; do not fabricate internal scheduling fields yourself. |
|
| checkers | array | Y | Required configuration object array; [] succeeds with zero statistics; cannot submit a complete outer response or an array of UUIDs.Allowed null: False Example: [{"type": "trigger", "signId": "sign_example", "jsonScript": {"type": "simpleCheck", "title": "生产CPU阈值", "every": "1m", "interval": 300, "groupBy": ["host"], "targets": [{"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}], "checkerOpt": {"rules": [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]}}, "extend": {}, "is_disable": false, "tagInfo": [{"name": "production"}], "secret": "", "monitorName": "default", "alertPolicyNames": ["生产告警"]}]How to obtain or enter: Copy the array from export response content.checkers, keeping the same batch template relationship for combined members. |
| type | string | Optional, default trigger; only items in the same normalized category are processed, but pre-validation such as V2/streaming occurs earlier than type filtering, so bad templates of other types may still block.Allowed null: False Allowed empty string: False Allowed values: ['smartMonitor', 'trigger', 'aiMonitor'] Example: triggerHow to obtain or enter: Regular trigger, smart smartMonitor, AI semantic aiMonitor. |
|
| skipRepeatNameCheck | boolean | Optional, default false; when an existing duplicate name is encountered, returns repeat_name.checker and the entire batch has not been created; true continues with subsequent skip/delete policies.Allowed null: False Example: falseHow to obtain or enter: By default, first check existing names in the same category in the target workspace; set to true only after determining the policy. |
|
| skipRepeatNameCreate | boolean | The current implementation ignores this value and always skips creating existing duplicate names, unless deleteRepeatName=true; there is a difference from the historical field description.Allowed null: False Example: trueHow to obtain or enter: Retain for compatibility request fields; clients should not use false to mean creating all duplicate names. |
|
| deleteRepeatName | boolean | Optional, default false; requires skipRepeatNameCheck=true to bypass the duplicate name prompt before execution. At the end, deletes the target old rule with the same name and creates a new UUID; this is not a UUID-preserving update; a new duplicate name skipped due to authorization failure may also correspond to deletion of the old rule at the end, so verify authorization and back up first.Allowed null: False Example: falseHow to obtain or enter: Set to true only when deletion of the old and creation of the new is truly needed and a backup has been made; usually keep false first. |
Additional Parameter Notes¶
Fields inside V2 yamlConfig (submitted as a complete YAML string):
| YAML Field | Type | Value, Source, and Omission Rules |
|---|---|---|
version |
integer |
Required, fixed at 1. |
name |
string |
Required non-empty, ≤128 characters after trim; cannot be changed after the definition is created. |
event.title / event.message |
string |
Both required non-empty ≤8000 characters; only Scene. public variables are allowed; Jinja control blocks/comments are not supported. |
rules |
array |
Required 1..10 items, at least one enabled=true. |
rules[].id |
string |
Required unique, regex [a-z][a-z0-9_]{2,63}. |
rules[].name |
string |
Required non-empty, ≤128 characters after trim. |
rules[].enabled |
boolean |
Optional default true; current modification does not allow changing the enabled/disabled structure. |
rules[].query.dql |
string |
Required real authorizable DQL, UTF-8 overall still subject to the 256KiB total limit; modification allowed. |
rules[].query.interval |
string |
Optional positive integer + s/m/h/d, ≤24h; seasonal defaults to 5m, others default to 1m. |
rules[].query.lookback |
string |
Optional auto (default) or positive integer + s/m/h/d; cannot exceed the budget. |
rules[].scene_by |
array<string> |
Required non-empty and unique actual dimension fields after trimming whitespace. |
rules[].detect |
object |
Choose either threshold or algorithm, not both; the threshold branch does not have params. |
rules[].detect.threshold.operator |
string |
Required >, >=, <, <=, ==, !=, between, outside. |
rules[].detect.threshold.operands |
array<number> |
Compare 1 finite number; between/outside exactly 2 and lower bound ≤ upper bound. |
rules[].detect.threshold.consecutive |
integer |
Optional default 1, 1..60. |
rules[].detect.algorithm |
string |
basic.robust_band@1, seasonal.robust_mad@2, seasonal.adaptive_mad@1, peer.robust_mad@1; seasonal.robust_mad@1 is compatible only with existing configurations. |
rules[].detect.params |
object or null |
Allowed keys according to algorithm; unknown keys are not accepted; basic and seasonal@2/adaptive allow null validated as {}. |
rules[].detect.params.band |
string |
basic optional mad/quantile. |
rules[].detect.params.direction |
string |
high/low/both when supported by the corresponding algorithm. |
rules[].detect.params.score |
number |
Optional for the corresponding algorithm, finite number 1..20. |
rules[].detect.params.period |
integer or null |
seasonal@2/adaptive optional null or 2..10000; omitted/empty estimates by 1 day sampling points; old @1 required 2..10080. |
rules[].detect.params.consecutive |
integer |
Only old seasonal@1 allows 1..60, default 1. |
rules[].detect.params.min_cycles |
integer |
Only old seasonal@1 default 3, 2..12. |
rules[].detect.params.peer_by |
array<string> |
Required for peer, may be empty, but each item must be unique after trimming whitespace and must be a subset of scene_by. |
rules[].no_data |
object or null |
Optional, default ignore/1; allowed keys action, consecutive. |
rules[].no_data.action |
string |
ignore/anomaly, default ignore. |
rules[].no_data.consecutive |
integer |
Default 1, 1..60. |
rules[].display.signal |
string |
Required non-empty, ≤128 characters after trim. |
rules[].display.unit |
string or null |
Optional, ≤64 characters; unit display does not modify the original query value. |
Scene variables are only dimension_text, dimension_subject, matched_rule_count, matched_rules_markdown, primary_condition, primary_rule_name, primary_signal, primary_value, problem_message, problem_summary, problem_title. Sampling history budget must be simultaneously ≤10000 points and ≤60 days; basic daily sampling is at most 61 days. Algorithm history/evidence/consecutive trigger requirements are all counted in the budget, and an explicit lookback cannot bypass it. Modifications may only change DQL, existing threshold configuration, and algorithm.params; other execution structures/rule metadata keep their original values.
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/checker/import' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"type":"trigger","skipRepeatNameCheck":false,"deleteRepeatName":false,"checkers":[{"type":"trigger","signId":"sign_example","jsonScript":{"type":"simpleCheck","title":"生产CPU阈值","every":"1m","interval":300,"groupBy":["host"],"targets":[{"dql":"M::cpu:(avg(usage_idle)) BY host","alias":"Result","qtype":"dql"}],"checkerOpt":{"rules":[{"status":"warning","conditionLogic":"and","conditions":[{"alias":"Result","operator":"<","operands":[10]}]}]}},"extend":{},"is_disable":false,"tagInfo":[{"name":"production"}],"secret":"","monitorName":"default","alertPolicyNames":["生产告警"]}]}'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.rule | array<object> |
Array of rule entities successfully created in this call; the parent content is an object, and a common declaration is not recursively added to each item. |
| content.rule[].id | integer or null | The import creates a response that may be null when constructed before submission; replaced with the current record number. |
| content.rule[].uuid | string | Current rul_ rule UUID, not a historical UUID or export signId. |
| content.rule[].workspaceUUID | string | Workspace to which the object belongs. |
| content.rule[].monitorUUID | string | Associated monitor group UUID. |
| content.rule[].type | string | Entity category, usually trigger/smartMonitor/aiMonitor; different from jsonScript.type check algorithm. |
| content.rule[].refKey | string | Compatibility business association key, usually an empty string. |
| content.rule[].secret | string or null | Shared fields such as external event Webhook identifiers; do not treat as a general API Key; do not write sensitive real values to logs. |
| content.rule[].jsonScript | object | Saved detection configuration, interpreted according to jsonScript.type and version. Reading does not execute detection. |
| content.rule[].crontabInfo | object | Scheduling configuration; fields vary by single/multi-workspace and algorithm, and may be {}. |
| content.rule[].crontabInfo.id | string | Primary scheduling configuration ID, can be omitted. |
| content.rule[].crontabInfo.crontab | string or null | Actual execution Cron; can be explicitly null or omitted (e.g., combined monitoring with no Cron); different from input every. |
| content.rule[].crontabInfo.smartRelId | string | Auxiliary scheduling ID for some smart monitoring, can be omitted. |
| content.rule[].crontabInfo.multiWsCrontabInfo | array<object> |
Scheduling information for each cross-workspace source; may exist historically and can be omitted. |
| content.rule[].crontabInfo.multiWsCrontabInfo[].ws_uuid | string | Target workspace UUID. |
| content.rule[].crontabInfo.multiWsCrontabInfo[].id | string | Scheduling ID for that workspace. |
| content.rule[].crontabInfo.multiWsCrontabInfo[].crontab | string or null | Actual Cron for that workspace; can be explicitly null or omitted. |
| content.rule[].extend | object | Additional echo/incident association configuration, may contain historical custom fields; do not blindly send it back as a whole for modification. |
| content.rule[].extend.自定义字段 | JSON | Historical or type-specific saved value; refer to the current type details and the public structure of the creation API. |
| content.rule[].createdWay | string | manual/import/template or historical empty value. |
| content.rule[].isLocked | integer or boolean | Lock status; historical branches may omit it. |
| content.rule[].openPermissionSet | boolean | Custom operation permission switch; a successful read cannot be used to infer that it can be modified. |
| content.rule[].permissionSet | array<string> |
Custom operation principal UUIDs. |
| content.rule[].permissionSet[] | string | Account/team/role identifier. |
| content.rule[].status | integer | 0 enabled, 2 disabled; non-delete queries may include other historical statuses; does not represent the latest run result. |
| content.rule[].creator | string | Creator identity. |
| content.rule[].updator | string | Updater identity. |
| content.rule[].createAt | integer | Creation Unix seconds. |
| content.rule[].updateAt | integer | Update Unix seconds; -1 if not updated. |
| content.rule[].deleteAt | integer | Deletion Unix seconds; -1 if not deleted. |
| content.rule[].configVersion | integer | Additional field for the current V2 configuration version; regular rules may omit it. |
| content.rule[].jsonScript.atAccounts | array | Optional array, default []; channels is used to associate Incidents, not a direct notification target; the server may add default channels/filter invalid channels. @external email addresses are restricted in free/trial editions; saving does not mean the notification has been sent. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.atNoDataAccounts | array | Optional array, default []; channels is used to associate Incidents, not a direct notification target; the server may add default channels/filter invalid channels. @external email addresses are restricted in free/trial editions; saving does not mean the notification has been sent. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.channels | array | Optional array, default []; channels is used to associate Incidents, not a direct notification target; the server may add default channels/filter invalid channels. @external email addresses are restricted in free/trial editions; saving does not mean the notification has been sent. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkFuncs | array | Optional, not required for regular thresholds; seniorCheck uses the first item's funcId/kwargs, and not all functions are treated as generic parameters. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt | json | Regular rules usually use rules; advanced types fill in according to the corresponding algorithm, V2 uses yamlConfig, AI semantics uses userPrompt, etc.; undeclared subfields are rejected by public validation, and you cannot copy the entire internal SDK parameters. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.category | string | AI semantics only. AI semantic classification metadata, optional string. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.combineExpr | string | Type-specific parameter. Combined member alias expression; required and non-empty for combined types; do not use Result instead of member aliases. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.confidenceInterval | integer | Type-specific parameter. Interval V2 confidence interval 1..100, configured according to the actual algorithm. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.contextWindowLimit | integer | AI semantics only. Positive integer token context limit, ≥1. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.creditSoftBudget | number | AI semantics only. Soft budget per single Credit, finite number >0; not an API execution timeout. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.diffMode | string | Type-specific parameter. Advanced mutation value difference/percent percentage; must be explicitly provided. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.direction | string | Type-specific parameter. Advanced mutation/interval up/down/both; must be explicitly provided. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.disableLargeScaleEventProtect | boolean | Optional boolean. true disables large-scale event protection; default false retains protection. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.enableStreamingAggregation | boolean or null | Optional tri-state. Only controls streaming aggregation acceleration for supported types; it does not equal enabling/disabling the monitor or changing DQL semantics. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.eps | float | Type-specific parameter. Required for outlier, value 0..3.0; this algorithm does not use regular rules condition validation. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.ignoreNodata | boolean | Optional boolean. Only combined monitoring true ignores no data; default false. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.infoEvent | boolean | Optional boolean. true generates info when continuously normal; default false; infoEventCondition controls conditions by type. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.infoEventCondition | json | Optional; {} means unconditional Info. Only applies to supported types such as regular threshold/log/application and RUM metrics/synthetic/process/network/mutation/interval; outlier/combined/liveness V2/change/programmable/smart/SLO are not supported and passing it reports UnsupportTriggerFields. If non-empty, alias/operator/operands must be complete and valid. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.infoEventCondition.alias | string | Fill in according to the structure within a non-empty Info condition; corresponds to the targets alias. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.infoEventCondition.operands | array | Fill in according to the structure within a non-empty Info condition; comparison value array, elements are strings/numbers; do not pass objects. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.infoEventCondition.operator | string | Fill in according to the structure within a non-empty Info condition; select from the regular condition operators on this page. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.maxChatRounds | integer | AI semantics only. Maximum conversation rounds, integer ≥1. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.maxDQLQueries | integer | AI semantics only. Maximum number of DQL calls, integer ≥0. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.mentions | array | AI semantics optional, default []; each item type=dql, non-empty namespace/datasource, index optional and non-empty when passed; normalized JSON serialization total length ≤20000 characters. Does not replace data query authorization. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.mentions[] | object | type/namespace/datasource required, index optional; only declare these four fields. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.mentions[].datasource | string | Real data source name within the reference item, such as log source/measurement, interpreted by namespace. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.mentions[].index | string | For log references within the reference item, fill in the real index name/identifier; other types may omit it. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.mentions[].namespace | string | Real DQL namespace within the reference item, not the entity type. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.mentions[].type | string | Fixed dql within the reference item. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.model | string | AI semantics only. AI semantic optional model name; should be obtained from the site-supported model configuration, and the literal value in documentation examples must not be used. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.openMatchTimes | boolean | Optional boolean. true enables continuous trigger matching; default false; used with rules[].matchTimes. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.openOkConditions | boolean | Optional boolean. true enables graded recovery; default false; okConditions must satisfy trigger and recovery boundaries. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.rules | array | Regular rule condition array; each item has status/conditionLogic/conditions, and recovery uses okConditions. Incorrect member/operator shapes may throw ordinary exceptions and eventually return 500, not always 406. Conditions with empty operands are filtered before scheduling is constructed; do not use them to express "all". This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.script | string | Type-specific parameter. Programmable detection script text, using syntax supported by that type; this API does not execute a script test. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.systemPrompt | string | AI semantics only. AI semantic optional; non-empty when passed; Python characters ≤20000. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.threshold | json | Optional object; when provided, status/operator/value are all declared required; status=false disables prerequisite evaluation; value allows null but should be filled in according to the actual algorithm meaning. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.threshold.operator | string | Required when the parent object exists; prerequisite comparison operator, e.g. >, according to the actual advanced detection compatibility set. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.threshold.status | boolean | Required when the parent object exists; whether to enable prerequisite conditions. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.threshold.value | float or null | Required when the parent object exists; prerequisite value; status=false allows null, status=true must be numeric, otherwise IllegalMutationParameters; unit must match the query result. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.userPrompt | string | AI semantics only. AI semantic condition is required and non-empty, Python characters ≤20000; although declared as allowing an empty string, the business does not accept blank values. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.checkerOpt.yamlConfig | string | Required only for V2, non-empty UTF-8 YAML text ≤256KiB, not a JSON object or Markdown fence; see the YAML table on this page for structure. Anchors/aliases/explicit tags/duplicate keys are prohibited. Modifications may only change existing DQL, threshold configuration, and algorithm params; rule sets/names/execution structure cannot be changed. On save, protocol/budget is validated and permissions for the query data domain are parsed and checked; DQL is not executed and data existence/source authorization completeness is not guaranteed. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.customCrontab | string | Optional; non-empty takes precedence over every; supports 5 fields or 6 fields with seconds; the second step form must not be less than 20. Combined monitoring and combined members have custom frequency conflict restrictions; V2 prohibits it. Detection time zone depends on current workspace/service configuration; do not use a time zone name in the string to replace the field. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.delaySeconds | integer | Optional regular monitoring data wait window in seconds; 0 means no wait; default 0; boolean is not treated as an integer. Smart/AI do not use regular wait configuration; cannot use it to adjust smart execution delay. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.disableCheckEndTime | boolean | Optional compatibility boolean, default false; actual support depends on detection type. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.eventChartEnable | boolean | Optional, default false; processed only by supported Doris log primary storage; successful save does not prove the chart has been generated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.eventCharts | array | Optional chart configuration array; provide together when enabling event charts; actual results are generated by the event processing chain and are not returned in the write response. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.eventCharts[] | object | Declares only the dql subfield. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.eventCharts[].dql | string | Optional query text, not a chart UUID; saving does not execute the chart query. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.every | string | Regular public plugins require every or customCrontab; maximum 24h, minimum 20s recommended. Use a valid positive integer format; do not use 0/negative values or d/w; some format issues may cause 500. V2 is fixed at 10m, and the server overrides every; AI semantics follows its own detection frequency. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.groupBy | array | Optional dimension name array; usually [] means no additional dimension grouping; not tag values. Combined monitoring member dimensions must be compatible. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.interval | integer | For regular with targets, requires 1..2592000 seconds (30 days); different from every detection frequency. Combined monitoring skips this general check; V2 uses YAML query.interval/lookback. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.isChangeEvent | boolean | OuterEventChecker optional, default false; other types do not use it. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.message | string | Event content. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.noDataAction | string | Optional none/checkAs0/noDataEvent/noDataEventRepeat/fatalEvent/criticalEvent/errorEvent/warningEvent/okEvent/noData/recover. noDataEventRepeat only supports applicable types and requires a positive integer noDataInterval; omitted/empty compatible values and positive duration have special historical handling, and repeated alerts do not depend on the default implementation. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.noDataInterval | integer | Optional by type. No-data duration in seconds; regular frequency rounds up to a whole detection cycle, custom frequency uses seconds directly; repeat no-data must be a positive integer. Modifications should fully preserve applicable settings and not mix units. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.noDataMessage | string | Output no-data event information template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.noDataNotificationMessage | string | Data gap event notification content. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.noDataRecoverMessage | string | Output no-data recovery upload event information template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.noDataRecoverTitle | string | Output no-data recovery upload event title template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.noDataTitle | string | Output no-data event title template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.notificationMessage | string | Event notification content. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.openNoDataNotificationMessage | boolean | Optional, default false; when disabled, the corresponding event content is used; when enabled, provide the corresponding notificationMessage/noDataNotificationMessage at the same time. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.openNotificationMessage | boolean | Optional, default false; when disabled, the corresponding event content is used; when enabled, provide the corresponding notificationMessage/noDataNotificationMessage at the same time. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.periodBefore | integer | Optional by type. Advanced mutation comparison offset in seconds, e.g. 86400 for yesterday; fill in together with range/range_2. Modifications should fully preserve applicable settings and not mix units. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.range | integer | Optional by type. Current comparison window for advanced mutation, positive integer seconds. Modifications should fully preserve applicable settings and not mix units. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.range_2 | integer | Optional by type. Advanced mutation comparison window setting: -1 period-over-period, 0 according to periodBefore, others according to the second window defined by the corresponding advanced detection. Modifications should fully preserve applicable settings and not mix units. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.recoverMessage | string | Output recovery event information template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.recoverNeedPeriodCount | integer | Optional by type. For regular frequency, it is the number of consecutive recovery periods; for customCrontab, it is the recovery duration directly in seconds; default 0. Modifications should fully preserve applicable settings and not mix units. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.recoverTitle | string | Output recovery event title template. Optional according to the corresponding check type; modifications cannot treat omission as preservation, the entire configuration must be filled back. Optional; if omitted, no independent text is provided; the current public construction mainly uses title/message and no-data text as sources, and legacy recover-specific fields do not guarantee separate coverage for each detection type. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.subUri | string | OuterEventChecker newly required non-empty string; the public receiving URL is a single path segment and cannot contain / (encoded %2F still returns 404); alphanumeric and hyphens are recommended. Multiple rules may use the same suffix; secret is responsible for uniqueness; do not fill for regular detection. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.targetWorkspaceUUID | string | Optional, default is this workspace. Applies to cross-workspace query consumption for simpleCheck, seniorMutationsCheck, seniorRangeCheck, seniorRangeV2Check, and outlierCheck; writing only generates candidate index_list and validates the calling identity's data domain permissions; a successful save does not mean the source authorization has been fully reviewed or data can be queried; confirm real target authorization before calling. V2 prohibits it; use YAML queries in authorized workspaces. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.targets | array | Regular query target array; actual DQL/PromQL execution statements go in dql; regular public plugin alias only accepts Result or empty, and alias uniqueness is checked; single-target Result is recommended. Combined monitoring uses monitorCheckerId/alias to associate members; V2 prohibits targets, and everything goes in YAML. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.title | string | Required string, non-empty recommended; maximum 256 counted as 1 for ASCII/half-width katakana and 2 for other characters. Non-empty values are copied as the rule name and participate in duplicate name checks; regular/self-built inspection share a duplicate name group, while smart/AI have separate groups. Whether variables exist at template runtime requires real event acceptance. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.type | string | Required plugin identifier; historical compatibility types such as mutationsCheck/rangeCheck/seniorCheck and old smart* still need to be maintained according to the original configuration, and cannot be replaced by the entity type. Specific fields apply only to their type and cannot be mixed. V2 and legacy cannot be switched between each other. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.windowDql | string | Optional compatibility window query text, passed through as additional event material; does not replace the actual detection query in targets; omitted means not provided. This is saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor. |
| content.rule[].jsonScript.targets[] | object | A single DQL/PromQL query target, or a combined monitoring member. |
| content.rule[].jsonScript.targets[].dql | string | Real execution query; qtype determines syntax. |
| content.rule[].jsonScript.targets[].qtype | string | Usually dql/promql; historically may be represented by queryType. |
| content.rule[].jsonScript.targets[].queryType | string | Historical query syntax marker. |
| content.rule[].jsonScript.targets[].alias | string | Regular public plugins usually require Result; combined monitoring uses member aliases. |
| content.rule[].jsonScript.targets[].monitorCheckerId | string | Only for combined monitoring associated member UUID. |
| content.rule[].jsonScript.targets[].groupBy | array<string> |
Additional trigger dimensions for combined members. |
| content.rule[].jsonScript.targets[].groupBy[] | string | Field name. |
| content.rule[].jsonScript.targetWorkspaceUUIDs | array<string> |
Saved collection of multi-source input supported by the template; non-empty takes precedence over singular; the actual created execution spaces are based on crontabInfo.multiWsCrontabInfo and may be reduced due to authorization failures. |
| content.rule[].jsonScript.targetWorkspaceUUIDs[] | string | A single target workspace UUID. |
| content.rule[].jsonScript.targets[].extraOptions | object | Query options saved or constructed at runtime; not a complete guarantee of current authorization, and do not treat list echo directly as new query authorization. |
| content.rule[].jsonScript.targets[].extraOptions.workspace_uuids | array<string> |
Candidate execution spaces saved or parsed in this list; may include historical values and does not guarantee that all are currently authorized. |
| content.rule[].jsonScript.targets[].extraOptions.workspace_uuids[] | string | A single saved or candidate workspace UUID; verify current authorization. |
| content.rule[].jsonScript.targets[].extraOptions.index_list | array<object> |
Data domain/index candidate range saved or parsed in this list; may be historical values and cannot be used as a guarantee of complete current authorization. |
| content.rule[].jsonScript.targets[].extraOptions.index_list[].workspace_uuid | string | Source workspace UUID. |
| content.rule[].jsonScript.targets[].extraOptions.index_list[].namespace | string | Query namespace. |
| content.rule[].jsonScript.targets[].extraOptions.index_list[].index_name | string | Allowed index name; may be default for non-log data. |
| content.rule[].jsonScript.targets[].extraOptions.index_list[].expr_name | string | Expression subquery name, can be omitted. |
| content.rule[].jsonScript.targets[].conditions | object or string | Additional query filters; read according to the saved structure; do not assume a uniform type. |
| content.rule[].jsonScript.groupBy[] | string | Trigger dimension field. |
| content.rule[].jsonScript.checkFuncs[] | object | Compatible detection function data. |
| content.rule[].jsonScript.checkFuncs[].funcId | string | Function ID. |
| content.rule[].jsonScript.checkFuncs[].kwargs | object | Function-specific parameters, not generic input for all algorithms. |
| content.rule[].jsonScript.checkFuncs[].kwargs.参数名 | JSON | Interpreted according to the corresponding function documentation. |
| content.rule[].jsonScript.channels[] | string | Incident channel UUID. |
| content.rule[].jsonScript.atAccounts[] | string | Identity identifier mentioned with @ in notifications; historically may be an email. |
| content.rule[].jsonScript.atNoDataAccounts[] | string | @ target for no-data notifications. |
| content.rule[].jsonScript.checkerOpt.rules[] | object | Set trigger and recovery conditions by level. |
| content.rule[].jsonScript.checkerOpt.rules[].status | string | fatal/critical/error/warning/info/ok/ALL, etc., interpreted according to detection type. |
| content.rule[].jsonScript.checkerOpt.rules[].conditionLogic | string | and/or, combining multiple conditions. |
| content.rule[].jsonScript.checkerOpt.rules[].matchTimes | integer | Consecutive match count; used with openMatchTimes. |
| content.rule[].jsonScript.checkerOpt.rules[].conditions | array<object> |
Trigger conditions. |
| content.rule[].jsonScript.checkerOpt.rules[].okConditions | array<object> |
Graded recovery conditions, can be omitted. |
| content.rule[].jsonScript.checkerOpt.rules[].conditions[].alias | string | Corresponding query target alias. |
| content.rule[].jsonScript.checkerOpt.rules[].conditions[].operator | string | Condition operator, according to the supported set for the detection type. |
| content.rule[].jsonScript.checkerOpt.rules[].conditions[].operands | array | Comparison value array, preserving numeric/string types. |
| content.rule[].jsonScript.checkerOpt.rules[].conditions[].operands[] | string / number | A single comparison value. |
| content.rule[].jsonScript.checkerOpt.rules[].okConditions[].alias | string | Corresponding query target alias. |
| content.rule[].jsonScript.checkerOpt.rules[].okConditions[].operator | string | Condition operator, according to the supported set for the detection type. |
| content.rule[].jsonScript.checkerOpt.rules[].okConditions[].operands | array | Comparison value array, preserving numeric/string types. |
| content.rule[].jsonScript.checkerOpt.rules[].okConditions[].operands[] | string / number | A single comparison value. |
| content.rule[].jsonScript.name | string | Compatibility name; non-empty title is copied/overrides it; used as import name fallback when title is missing. |
| content.rule[].jsonScript.fixedCrontab | string | Retained compatibility fixed Cron; actual execution is based on crontabInfo; do not conflict with every/customCrontab. |
| content.rule[].extend.isNeedCreateIssue | boolean | Whether to create Issues based on anomalies. |
| content.rule[].extend.issueLevelUUID | string | Historical Issue level identifier, may be invalid. |
| content.rule[].extend.issueDfStatus | array<string> |
Anomaly statuses that trigger Issues. |
| content.rule[].extend.issueDfStatus[] | string | fatal/critical/error/warning/nodata. |
| content.rule[].extend.manager | array<string> |
Resolved assignee targets. |
| content.rule[].extend.manager[] | string | Target identifiers such as members/teams. |
| content.rule[].extend.incidentsTags | array<string> |
Incident-associated tag names. |
| content.rule[].extend.incidentsTags[] | string | A single tag name. |
| content.rule[].extend.faultMappingMode | string | custom/existing, the current incident level mapping mode. |
| content.rule[].extend.levelMappingUUID | string | Level mapping UUID when existing. |
| content.rule[].extend.bindIncidentsInfo | array<object> |
Custom level mapping rows. |
| content.rule[].extend.bindIncidentsInfo[].incidentsLevelUUID | string | Mapped Issue level UUID. |
| content.rule[].extend.bindIncidentsInfo[].incidentsDfStatus | array<string> |
Mapped anomaly status array. |
| content.rule[].extend.bindIncidentsInfo[].incidentsDfStatus[] | string | A single anomaly status. |
| content.rule[].extend.smartMonitor | object | V2 source and current version metadata. |
| content.rule[].extend.smartMonitor.source | string | ai/builtin source. |
| content.rule[].extend.smartMonitor.engineVersion | integer | Usually 2 for V2. |
| content.rule[].extend.smartMonitor.configVersion | integer | V2 configuration version. |
| content.rule[].extend.smartMonitor.category | string | Smart monitoring category. |
| content.rule[].extend.smartMonitor.prompt | string | AI-generated prompt. |
| content.rule[].extend.smartMonitor.templateId | string | Built-in template identifier. |
| content.rule[].extend.smartMonitor.templateVersion | string | Built-in template version. |
| content.rule[].extend.smartMonitor.generationRunId | string | Generation process tracking identifier, can be omitted. |
| content.rule[].tagInfo | array<object> |
Tag summary of successfully created new rules; actual scope conflicts may be skipped. |
| content.rule[].tagInfo[].id | string | Tag UUID compatibility id. |
| content.rule[].tagInfo[].uuid | string | Tag UUID. |
| content.rule[].tagInfo[].name | string | Name. |
| content.rule[].tagInfo[].scope | array<string> |
Normalized scope. |
| content.rule[].tagInfo[].scope[] | string | A single scope. |
| content.rule[].dashboardUUID | string | Resolved dashboard association, can be omitted. |
| content.successCount | integer | Success count. |
| content.failCount | integer | Count of caught corresponding cross-workspace authorization failures, not all unsuccessful items. |
| content.repeat_name | object | Replaces normal statistics when a preflight duplicate name hit occurs. |
| content.repeat_name.checker | array<string> |
Existing same-category names in the target workspace. |
| content.repeat_name.checker[] | string | A single duplicate name. |
| content.authFailedCrossWsInfo | array<object> |
Template summary of cross-workspace authorization failures; appears only in the corresponding branch. |
| content.authFailedCrossWsInfo[].uuid | string | Source workspace UUID. |
| content.authFailedCrossWsInfo[].name | string | Workspace name; falls back to UUID if not found. |
| content.authFailedCrossWsInfo[].checkerName | string | Monitor name that was not authorized. |
| content.skippedTags | array<object> |
Skip summary when a scope conflict occurs in the resource tag import context, can be omitted; successful rules do not guarantee tags are bound. |
| content.skippedTags[].name | string | Skipped tag name. |
| content.skippedTags[].scope | array<string> |
Actual tag scope. |
| content.skippedTags[].scope[] | string | A single actual scope. |
| content.skippedTags[].expectedScope | string | Expected monitor. |
| content.skippedTags[].reason | string | scope_mismatch. |
| content.skippedTags[].resourceUUID | string | Corresponding resource UUID, can be omitted. |
| content.declaration | object | Public declaration. |
{
"code": 200,
"content": {
"rule": [
{
"id": null,
"uuid": "rul_checker_example",
"workspaceUUID": "wksp_example",
"monitorUUID": "monitor_example",
"type": "trigger",
"refKey": "",
"secret": null,
"jsonScript": {
"type": "simpleCheck",
"title": "生产CPU阈值",
"name": "生产CPU阈值",
"every": "1m",
"interval": 300,
"groupBy": [
"host"
],
"targets": [
{
"dql": "M::cpu:(avg(usage_idle)) BY host",
"alias": "Result",
"qtype": "dql"
}
],
"checkerOpt": {
"rules": [
{
"status": "warning",
"conditionLogic": "and",
"conditions": [
{
"alias": "Result",
"operator": "<",
"operands": [
10
]
}
]
}
]
}
},
"extend": {},
"crontabInfo": {
"id": "cron_example",
"crontab": "0 */1 * * * *"
},
"createdWay": "import",
"isLocked": 0,
"openPermissionSet": false,
"permissionSet": [],
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"tagInfo": []
}
],
"successCount": 1,
"failCount": 0,
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Duplicate name prompt (not created this time):
{
"code": 200,
"content": {
"repeat_name": {
"checker": [
"生产CPU阈值"
]
},
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Public Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field is missing, or field value violates the declared validation condition | Parameter parsing failed | Check parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Request JSON syntax is invalid | Request JSON format error | Fix JSON according to content.reason, line, column. |
| 400 | ft.JsonFormatError | Body top level is not a JSON object | Some json file format error | Submit an object containing the checkers array, not the array directly. |
| 406 | ft.ParameterValidationFailed | Template structure, entity type/V2 YAML/version/allowlist, or external event configuration preflight failed | Parameter parsing failed | Construct the complete template according to the corresponding type; use complete YAML for V2; validate before import. |
| 400 | ft.ParamsValidateError | External event missing subUri/isChangeEvent type error, AI semantic or other template parameter invalid | Parameter validation failed: {} | Fix the corresponding field; external event subUri uses a single path segment. |
| 400 | ft.InvalidIssueDfStatus | Issue template mapping status not supported | Invalid event level {} | Only fatal/critical/error/warning/nodata. |
| 403 | ft.ForbiddenFreeEditionWorkspace | Current edition does not support a candidate algorithm | Free Plan workspace does not support this feature. Upgrade to Commercial Plan to unlock the restriction | Adjust target workspace edition or template type. |
| 403 | ft.ForbiddenFreeEditionLimit | Target workspace monitor quota insufficient | Free Plan workspace {} has reached the upper limit ({}), cannot create. Upgrade to Commercial Plan to unlock the restriction | First check existing non-deleted rules and available quota; skipped items may also count toward the upfront budget. |
| 406 | ft.UnsupportRuleType | Template algorithm not supported by current service | Unsupported rule type:{} |
Use supported type and complete conditions. |
| 400 | ft.CrontabCheckError | Template custom Cron invalid | Cron job crontab validation failed | Fix 5/6-field Cron. |
| 406 | ft.InvalidInterval | Template query window invalid | interval invalid | Provide a valid interval according to algorithm and second unit. |
| 406 | ft.CheckObjectTargetAliasError | Regular target alias is not Result | Detection target DQL alias error | Fix alias and condition references. |
| 400 | ft.OuterFuncFailed | Imported schedule creation or subsequent deletion returns downstream business failure | External function call failed | Check successfully created rules, old duplicate names, and schedules to avoid repeating the entire batch. |
| 404 | ft.ObjectNotExists | Target concurrently disappeared during the duplicate old rule deletion phase | Specified object does not exist | Check new and old rules and current status before proceeding. |
| 403 | ft.ForbiddenCheckerOperation | No operation permission when deleting duplicate old regular rule | You do not have operation permission for monitor [{}] | Check old rule permissions first; import cannot be used to bypass. |
| 403 | ft.ForbiddenSmartCheckerOperation | No operation permission when deleting duplicate old smart/AI rule | You do not have operation permission for smart monitor [{}] | Check old rule operation principal. |
| 500 | ft.InternalServerError | Array/template internal shape errors, scheduling connection/timeout/invalid JSON and other uncaught exceptions, storage or subsequent step failures | Internal error | Previous items or the main rule may have been committed; check old/new and associations by name/UUID before targeted retry; provide traceId. |
| 406 | ft.InvalidParameterValidation | noDataAction=noDataEventRepeat but noDataInterval is missing/not a positive integer | Invalid value for {}, current value: {} |
Explicitly provide a positive integer second duration window for supported detection types. |
| 400 | ft.ErrorContinuousTriggerCfgCount | openMatchTimes=true and any matchTimes is not in 1..100 | Continuous trigger configuration count should be {} | Adjust continuous count to 1..100; when disabled this field is not used. |
| 406 | ft.IllegalMutationParameters | Advanced mutation prerequisite threshold.status=true but value is not numeric (including null) | Trigger condition detection value validation failed | Provide a numeric value consistent with the result unit, or disable the prerequisite. |
| 403 | ft.ForbiddenQuery | Calling identity lacks query permission for the corresponding namespace when parsing detection DQL | You do not have {} permission | Configure the required data domain query permission for the current API Key/identity, not just monitor configuration permission. |
| 406 | ft.DqlParseError | Target query, eval subexpression, or DQL in V2 YAML fails during permission/index parsing | dql parser parsing failed: {} | Fix the real query syntax and namespace and retry; this does not mean the query has been executed. |
| 406 | ft.InvalidParameter | Issue association enabled but faultMappingMode invalid, or existing level mapping missing/not in a valid target workspace, or other business parameters do not match | Invalid parameter {} |
Choose custom/existing according to the real level mapping in the target workspace; for existing provide a valid levelMappingUUID. |
| 406 | ft.UnsupportCheckUnit | Detection frequency every unit not supported | Invalid check frequency unit, supported unit list: {} |
Use positive integer + s/m/h. |
| 406 | ft.CheckFrequencyExceedsMaximum | Regular detection frequency exceeds 24h | Check frequency exceeds maximum | Shorten frequency; V2 uses fixed 10m. |
| 406 | ft.MissingCheckFreqFixedCrontab | Regular detection has no every/customCrontab | No check frequency specified/no fixedCrontab specified | Explicitly provide one legal frequency. |
| 400 | ft.CrontabCheckRangeError | Second-step custom Cron below 20 seconds | Time must be greater than or equal to {} seconds | Use a step of at least 20 seconds or a suitable minute frequency. |
| 406 | ft.CheckObjectNameRepeat | Target alias duplicate | Detection target alias duplicate | Use an applicable and unique alias for each target. |
| 400 | ft.UnsupportTriggerFields | Corresponding type does not support Info event conditions and other trigger fields | Unsupported trigger field: {} | Remove inapplicable fields and configure only for supported types. |
| 400 | ft.ErrorCombinedCheckers | Combined member contains incompatible custom Cron | A monitor uses custom frequency; combined monitoring monitors do not support custom frequency | Adjust member frequency or split the combination first. |
| 400 | ft.ErrorCombinedCrontab | A rule referenced by a combination is changed to an incompatible custom Cron | An associated combined monitor exists; monitors in combined monitoring do not support custom frequency | Check combined references and choose a compatible frequency. |
| 400 | ft.ErrorFieldCheck | Combination missing required conditional fields such as combineExpr | {} field validation failed | Complete the combination expression and member definitions. |
| 400 | ft.FiledCreateTrigger | New schedule did not return a valid id | Failed to create trigger configuration, please retry | First check whether the rule/schedule already exists and retain traceId for troubleshooting. |
| 400 | ft.SameSetTraggerExists | Scheduling service considers the same schedule already exists | A trigger with the same configuration already exists | Check existing rules and do not add duplicates. |
| 400 | ft.ErrorRecoveryConditionOperator | Graded recovery trigger condition is not a supported one-sided comparison >/>=/</<= |
Recovery condition operator only supports >,<,>=,'<=' |
Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries. |
| 406 | ft.ErrorLessThanOrEqualOperator | When trigger is >, recovery does not satisfy ≤ and boundary is valid | Recovery condition value must be less than or equal to the trigger condition value | Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries. |
| 406 | ft.ErrorGreaterThanOrEqualOperator | When trigger is <, recovery does not satisfy ≥ and boundary is valid | Recovery condition value must be greater than or equal to the trigger condition value | Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries. |
| 406 | ft.ErrorLessThanOperator | When trigger is ≥, recovery does not satisfy < and boundary is valid | Recovery condition value must be less than the trigger condition value | Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries. |
| 406 | ft.ErrorGreaterThanOperator | When trigger is ≤, recovery does not satisfy > and boundary is valid | Recovery condition value must be greater than the trigger condition value | Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries. |
| 400 | ft.ForGroupNameRepeat | When creating a group by monitorName, the name already exists/concurrent short-term name lock conflict | Group name duplicate | First check created groups and partial rule commits in this call, then handle by existing group name later. |
| 406 | ft.CheckerAuthorizationVerificationFailed | No source among multiple targetWorkspaceUUIDs has successful authorization and can create a schedule | Cross-workspace authorization verification failed, please confirm whether authorized: {} | First check each real source authorization; the retained input array cannot be used to infer execution. |