Skip to content

Replace Import



POST /api/v1/checker/{rule_uuid}/replace

Overview

Use a single migration template to replace the specified monitor entirely while preserving its UUID.

Before Calling and Usage Steps

First get the target, back it up, and confirm that the template type matches the target entity type. For V2, the current configVersion must be added to checker; older exports are not guaranteed to carry a top-level version; the execution version cannot be changed. This endpoint preserves the UUID but replaces the rule entirely: monitorName defaults to default, tags are taken from tagInfo and default to [], alertPolicyNames default to cleared, dashboardName omitted/no match removes the reference, extend omitted becomes {}, permissions default to false/[], and is_disable omitted restores enabled. Do not treat it as a partial patch.

If a group name does not exist, a new group can be created; if a policy name does not exist, a new policy definition can be created; the target dashboard must already exist. For the external event secret, omitted/empty string keeps the old value; only a non-empty value replaces it and is checked for uniqueness; the removal of secret from an export does not mean that replacement will generate a new Webhook. The template generationId is not passed to the final rule_modify, and this endpoint is not used to complete the AI prompt regeneration flow; to change a prompt, use the dedicated generation + modify flow.

Pre-type/YAML/version checks precede associated resource creation; afterwards, the scheduling/database/tag/cache/reference side effects of rule_modify apply, without going through the high-cost checks and extend_format injection of the public modify route. Template multi-source targetWorkspaceUUIDs are not subject to the nested whitelist of the normal public modify; a non-empty array takes precedence over the singular, and when some sources fail authorization, the original input array can still be saved with schedules created only for valid sources; if all fail, CheckerAuthorizationVerificationFailed is reported. After submission, verify the actual scope item by item according to crontabInfo.multiWsCrontabInfo; do not use the saved array as a list of successful executions. This endpoint is also in the resource tag import context; scope conflicts can be skipped and reported via skippedTags; success does not guarantee that all tags are bound. After submission, a reference sync task is dispatched, and the current update task does not recalculate SLO based on it; on timeout/error, first read back the target and associations; not all downstream syncs are guaranteed to complete.

Route Parameters

Parameter Name Type Required Description
rule_uuid string Y The current UUID to preserve, not the export signId or a historical UUID.
Example: rul_checker_example
How to obtain or fill: Confirm the current target from the Monitor List and get.

Request Headers

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

Body Request Parameters

Parameter Name Type Required Description
checker.type string trigger/smartMonitor/aiMonitor; the import takes effect only when it matches the top-level type of this import; replace must match the normalized category of the old object.
Example: trigger
How to obtain or fill: Reuse the entity category from the export template.
checker.signId string In exports it is a digest of the original UUID, not an authentication credential; during import it is used to pre-allocate UUIDs and rewrite combined-member references, must be unique within the same batch, and should not be reused across files on your own. replace does not use it to change the target UUID.
Example: sign_example
How to obtain or fill: Keep the transparent signature from the same export as-is.
checker.jsonScript json The complete definition. Semantics and optional fields are expanded on this page; import is not a normal add Body and does not go through its full nested declaration validation; an incorrect shape may cause a 500. For V2, the complete yamlConfig must be valid; all candidates may be validated synchronously before import.
Example: {"type": "simpleCheck", "title": "Production CPU Threshold", "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 fill: Obtain it from the single template jsonScript returned by export, and verify the target data source according to the corresponding check type.
checker.extend json For omitted/old templates, {} is recommended; do not provide null. Import saves according to the full definition; for replace, omitting it as {} overwrites the old extension rather than preserving it. See the table below for the meaning of each nested field.
Example: {}
How to obtain or fill: Take the complete echo/Incident association object from the same export template and replace the real resource identifiers of the target workspace.
checker.is_disable boolean Optional; enabled by default. Keeps the template protocol underscore is_disable, not isDisable. Omitting it in replace enables the old disabled rule.
Example: false
How to obtain or fill: Set to true to disable after import, and false for normal enabling.
checker.tagInfo array Optional, defaults to []; creates or reuses tags by name; top-level tags do not play an equivalent role in template import. Omitting it in replace clears the old tag associations.
Example: [{"name": "production"}]
How to obtain or fill: Take tag names from the export template and ensure they apply to the monitor/all scope in the target workspace.
checker.tagInfo[*] json Only name is required; do not use the source tag UUID as the target workspace identifier.
Example: {"name": "production"}
How to obtain or fill: One business tag name per item.
checker.tagInfo[*].name string Non-empty is recommended; validated against the monitor scope; conflicts may be reported in skippedTags; do not treat a skip as a successful tag binding.
Example: production
How to obtain or fill: A business tag name applicable to the target workspace.
checker.secret string Import does not inherit the source secret; OuterEventChecker exports remove this field, and import generates a new secret, so you must obtain the Webhook again after migration. For replace, omitted/empty string keeps the original secret; a non-empty replacement must be globally unique.
Example:
How to obtain or fill: Only when replace needs to change the external event address, obtain it from the trusted original details or a new random secret.
checker.monitorName string Optional, defaults to default; an empty value is also treated as default; if it does not exist, a new group may be created. It is not monitorUUID. Omitting it in replace switches to default and does not preserve the old group.
Example: default
How to obtain or fill: Obtain it from the target monitor group name or the export template.
checker.alertPolicyNames array Optional, defaults to []; names that do not exist create policy definitions; do not assume that notification targets/rules are migrated together with the source policy. Omitting it in replace clears the old policy references.
Example: ["Production Alert"]
How to obtain or fill: Obtain from existing alert policy names in the target workspace, or use the same-named policy from the export.
checker.alertPolicyNames[*] string Not a UUID; after import, verify the actual alert target configuration.
Example: Production Alert
How to obtain or fill: A single business policy name.
checker.dashboardName string Optional; resolves an existing node dashboard by name only and does not import dashboards automatically. If there is no match, no association is created; omitting it in replace or having no match removes the old dashboard reference.
Example: Production Overview
How to obtain or fill: Obtain from an existing dashboard name in the target workspace.
checker.openPermissionSet boolean Not included in export; normal import does not inherit these two permission settings; replace defaults to false, and the required permissions must be explicitly and fully filled in.
Example: false
How to obtain or fill: Only when replace needs to preserve custom operation permissions, obtain it from the old details.
checker.permissionSet array Not included in export; import shares the new default []; omitting it as [] in replace clears the old subjects.
Example: ["wsAdmin"]
How to obtain or fill: Only for replace, select from the target workspace's roles/members/teams.
checker.permissionSet[*] string Not a stale subject from the source workspace.
Example: wsAdmin
How to obtain or fill: A valid operation subject in the target workspace.
checker.configVersion integer Required only when replacing an existing V2 target; it is the current version, not a historical version from the export; the export template itself is not guaranteed to contain this top-level field, so it must be added before calling. Normal import creates a new version and does not preserve the original version number.
Example: 1
How to obtain or fill: For V2 replace, read configVersion from the current object get before calling.
checker.jsonScript.atAccounts array Optional array, defaults to []; channels are used to associate Incidents, not as direct notification targets; the server may add default channels/filter invalid channels. @external emails are restricted in Free Plan versions; saving does not mean a notification has been sent.
Example: ["acnt_example"]
How to obtain or fill: Obtain channel uuids from the Channel List; obtain the account uuid or supported email for the @ identity from the Member List.
checker.jsonScript.atNoDataAccounts array Optional array, defaults to []; channels are used to associate Incidents, not as direct notification targets; the server may add default channels/filter invalid channels. @external emails are restricted in Free Plan versions; saving does not mean a notification has been sent.
Example: ["acnt_example"]
How to obtain or fill: Obtain channel uuids from the Channel List; obtain the account uuid or supported email for the @ identity from the Member List.
checker.jsonScript.channels array Optional array, defaults to []; channels are used to associate Incidents, not as direct notification targets; the server may add default channels/filter invalid channels. @external emails are restricted in Free Plan versions; saving does not mean a notification has been sent.
Example: ["chan_example"]
How to obtain or fill: Obtain channel uuids from the Channel List; obtain the account uuid or supported email for the @ identity from the Member List.
checker.jsonScript.checkFuncs array Optional; regular thresholds do not require it; seniorCheck uses the first item's funcId/kwargs and does not treat all functions as generic parameters.
Example: []
How to obtain or fill: Only maintain historical check types that use this compatible custom function structure; obtain from the original details/function definitions.
checker.jsonScript.checkerOpt json Regular rules commonly use rules; advanced types are filled according to the corresponding algorithm, V2 uses yamlConfig, AI semantics uses userPrompt, etc.; undeclared subfields are rejected by public validation; do not copy the entire internal SDK parameters.
Example: {"rules": [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]}
How to obtain or fill: Choose the following trigger/algorithm/AI configuration according to jsonScript.type.
checker.jsonScript.checkerOpt.category string For AI semantics only. AI semantics category metadata; optional string.
Example: custom
How to obtain or fill: Configure according to this workspace's AI semantics monitoring capabilities and business budget; omit the optional item to let the AI service use its default policy.
checker.jsonScript.checkerOpt.combineExpr string Type-specific parameter. Alias expression for combined members; required and non-empty for combined types; do not use Result in place of member aliases.
Example: A && B
How to obtain or fill: Verify the specific algorithm meaning in the editor/original details according to the current check type.
checker.jsonScript.checkerOpt.confidenceInterval integer Type-specific parameter. Confidence interval 1..100 for Range V2; configure according to the actual algorithm.
Example: 90
How to obtain or fill: Verify the specific algorithm meaning in the editor/original details according to the current check type.
checker.jsonScript.checkerOpt.contextWindowLimit integer For AI semantics only. Positive integer Token context limit, ≥1.
Example: 8192
How to obtain or fill: Configure according to this workspace's AI semantics monitoring capabilities and business budget; omit the optional item to let the AI service use its default policy.
checker.jsonScript.checkerOpt.creditSoftBudget number For AI semantics only. Soft budget of Credits per run; a finite number >0; not an API execution timeout.
Example: 10
How to obtain or fill: Configure according to this workspace's AI semantics monitoring capabilities and business budget; omit the optional item to let the AI service use its default policy.
checker.jsonScript.checkerOpt.diffMode string Type-specific parameter. For advanced mutation, value for difference/percent for percentage; must be provided explicitly.
Example: percent
How to obtain or fill: Verify the specific algorithm meaning in the editor/original details according to the current check type.
checker.jsonScript.checkerOpt.direction string Type-specific parameter. For advanced mutation/range: up/down/both; must be provided explicitly.
Example: both
How to obtain or fill: Verify the specific algorithm meaning in the editor/original details according to the current check type.
checker.jsonScript.checkerOpt.disableLargeScaleEventProtect boolean Optional boolean. true disables large-scale event protection; the default false keeps protection.
Example: false
How to obtain or fill: Confirm this alert/event handling behavior with the business.
checker.jsonScript.checkerOpt.enableStreamingAggregation boolean Optional tri-state. Only controls streaming aggregation acceleration for supported types; it is not equivalent to starting/stopping the monitor or changing the meaning of the DQL.
Example: true
How to obtain or fill: Set to true/false when an independent switch is needed, or omit/null to follow the workspace configuration.
checker.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.5
How to obtain or fill: Verify the specific algorithm meaning in the editor/original details according to the current check type.
checker.jsonScript.checkerOpt.ignoreNodata boolean Optional boolean. Only for combined monitoring; true ignores no-data; default false.
Example: false
How to obtain or fill: Confirm this alert/event handling behavior with the business.
checker.jsonScript.checkerOpt.infoEvent boolean Optional boolean. true generates info when continuously normal; default false; infoEventCondition controls conditions by type.
Example: false
How to obtain or fill: Confirm this alert/event handling behavior with the business.
checker.jsonScript.checkerOpt.infoEventCondition json Optional; {} means unconditional Info. Only applies to supported types such as regular threshold/log/application and RUM metrics/availability/process/network/mutation/range; outlier/combined/liveness V2/change/programmable/smart/SLO are not supported, and passing it reports UnsupportTriggerFields. A non-empty value requires alias/operator/operands to be complete and valid.
Example: {"alias": "Result", "operator": ">=", "operands": [60]}
How to obtain or fill: Construct from real query results and normal business thresholds.
checker.jsonScript.checkerOpt.infoEventCondition.alias string Fill in according to the structure within a non-empty Info condition; corresponds to the targets alias.
Example: Result
How to obtain or fill: Keep consistent with the actual query target and threshold.
checker.jsonScript.checkerOpt.infoEventCondition.operands array Fill in according to the structure within a non-empty Info condition; comparison value array whose elements are strings/numbers; do not pass objects.
Example: [60]
How to obtain or fill: Keep consistent with the actual query target and threshold.
checker.jsonScript.checkerOpt.infoEventCondition.operator string Fill in according to the structure within a non-empty Info condition; choose from the regular condition operators on this page.
Example: >=
How to obtain or fill: Keep consistent with the actual query target and threshold.
checker.jsonScript.checkerOpt.maxChatRounds integer For AI semantics only. Maximum number of conversation rounds; integer ≥1.
Example: 3
How to obtain or fill: Configure according to this workspace's AI semantics monitoring capabilities and business budget; omit the optional item to let the AI service use its default policy.
checker.jsonScript.checkerOpt.maxDQLQueries integer For AI semantics only. Maximum number of DQL calls; integer ≥0.
Example: 3
How to obtain or fill: Configure according to this workspace's AI semantics monitoring capabilities and business budget; omit the optional item to let the AI service use its default policy.
checker.jsonScript.checkerOpt.mentions array Optional for AI semantics, defaults to []; each item has type=dql, non-empty namespace/datasource, index is optional and must be non-empty when passed; the normalized JSON serialization total length is ≤20000 characters. Does not replace data query authorization.
Example: [{"type": "dql", "namespace": "logging", "index": "default", "datasource": "nginx"}]
How to obtain or fill: Obtain reference metadata from the actual DQL namespace, log index, and source.
checker.jsonScript.checkerOpt.mentions[*] json type/namespace/datasource are required, index is optional; only these four fields are declared.
Example: {"type": "dql", "namespace": "logging", "index": "default", "datasource": "nginx"}
How to obtain or fill: One DQL reference per item.
checker.jsonScript.checkerOpt.mentions[*].datasource string The real data source name within the reference item, for example a log source/measurement, interpreted by namespace.
Example: nginx
How to obtain or fill: Select from real data in the same target workspace.
checker.jsonScript.checkerOpt.mentions[*].index string For a log reference within the reference item, fill in the real index name/identifier; other types may omit it.
Example: default
How to obtain or fill: Select from real data in the same target workspace.
checker.jsonScript.checkerOpt.mentions[*].namespace string The real DQL namespace within the reference item, not the entity type.
Example: logging
How to obtain or fill: Select from real data in the same target workspace.
checker.jsonScript.checkerOpt.mentions[*].type string Fixed as dql within the reference item.
Example: dql
How to obtain or fill: Select from real data in the same target workspace.
checker.jsonScript.checkerOpt.model string For AI semantics only. Optional AI semantics model name; it should be obtained from the model configuration supported by the site and must not use the literal value in the documentation example.
Example: example-model
How to obtain or fill: Configure according to this workspace's AI semantics monitoring capabilities and business budget; omit the optional item to let the AI service use its default policy.
checker.jsonScript.checkerOpt.openMatchTimes boolean Optional boolean. true enables consecutive trigger matching; default false; used together with rules[].matchTimes.
Example: false
How to obtain or fill: Confirm this alert/event handling behavior with the business.
checker.jsonScript.checkerOpt.openOkConditions boolean Optional boolean. true enables tiered recovery; default false; okConditions must satisfy the trigger and recovery boundaries.
Example: false
How to obtain or fill: Confirm this alert/event handling behavior with the business.
checker.jsonScript.checkerOpt.rules array Regular rule condition array; each item has status/conditionLogic/conditions; recovery uses okConditions. Incorrect member/operator shapes may throw a regular exception resulting in a 500, not always 406. Conditions with empty operands are filtered out before constructing the schedule; do not use them to express "all".
Example: [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]
How to obtain or fill: Construct according to the levels allowed to trigger events and the target Result.
checker.jsonScript.checkerOpt.script string Type-specific parameter. Programmable check script text using the syntax supported by that type; this endpoint does not run a script test.
Example: return {}
How to obtain or fill: Verify the specific algorithm meaning in the editor/original details according to the current check type.
checker.jsonScript.checkerOpt.systemPrompt string For AI semantics only. Optional for AI semantics; non-empty when passed; ≤20000 Python characters.
Example: Judge based on actual query results; do not speculate about missing data.
How to obtain or fill: Configure according to this workspace's AI semantics monitoring capabilities and business budget; omit the optional item to let the AI service use its default policy.
checker.jsonScript.checkerOpt.threshold json Optional object; when provided, status/operator/value are all declared required; status=false disables the precondition check; value may be null but should be filled according to the actual meaning of the algorithm.
Example: {"status": false, "operator": ">", "value": 90}
How to obtain or fill: The trigger precondition for advanced mutation, determined by the actual business threshold.
checker.jsonScript.checkerOpt.threshold.operator string Required when the parent object exists; precondition comparison operator, e.g. >, according to the compatible set of the actual advanced detection.
Example: >
How to obtain or fill: Fill in according to the advanced mutation precondition definition.
checker.jsonScript.checkerOpt.threshold.status boolean Required when the parent object exists; whether to enable the precondition.
Example: false
How to obtain or fill: Fill in according to the advanced mutation precondition definition.
checker.jsonScript.checkerOpt.threshold.value float Required when the parent object exists; precondition value; status=false allows null, status=true requires a number, otherwise IllegalMutationParameters; the unit must match the query result.
Example: 90
How to obtain or fill: Fill in according to the advanced mutation precondition definition.
checker.jsonScript.checkerOpt.userPrompt string For AI semantics only. Required and non-empty for AI semantics conditions; ≤20000 Python characters; although an empty string is declared, the business layer does not accept blank values.
Example: Analyze whether the production service error rate in the last 5 minutes is anomalous.
How to obtain or fill: Configure according to this workspace's AI semantics monitoring capabilities and business budget; omit the optional item to let the AI service use its default policy.
checker.jsonScript.checkerOpt.yamlConfig string Required only for V2; non-empty UTF8 YAML text ≤256KiB; not a JSON object or Markdown fence; see the YAML table on this page for the structure. Anchors/aliases/explicit tags/duplicate keys are prohibited. Modifications may only change existing DQL, threshold configuration, and algorithm params; the rule set/names/execution structure cannot be changed; on save, the protocol/budget is validated and permissions for the checked query data domains are resolved; DQL is not executed and data existence/source authorization is not guaranteed to have been fully reviewed.
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 fill: Obtain the complete valid YAML from the Generate API or Built-in Templates, then edit within the allowed scope.
checker.jsonScript.customCrontab string Optional; a non-empty value takes precedence over every; supports 5 fields or 6 fields with seconds; the seconds step form must not be less than 20. Combined monitoring and combined members have custom frequency conflict restrictions; prohibited in V2. The detection time zone depends on the 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 fill: For custom frequencies, fill in the complete expression using the Cron editor.
checker.jsonScript.delaySeconds integer Optional data wait window for regular monitoring, in seconds; 0 means no wait; default 0; booleans are not treated as integers. Smart/AI does not use the regular wait configuration; it cannot be used to adjust smart execution delay.
Example: 60
How to obtain or fill: Choose 0/60/120/180/300/600/900/1800 according to data arrival delay.
checker.jsonScript.disableCheckEndTime boolean Optional compatibility boolean, default false; actual support depends on the check type.
Example: false
How to obtain or fill: Set to true when the check end time limit needs to be removed.
checker.jsonScript.eventChartEnable boolean Optional, default false; only processed for supported Doris log primary storage; a successful save does not prove that the chart has been generated.
Example: false
How to obtain or fill: Choose it when the data storage capability supports event charts.
checker.jsonScript.eventCharts array Optional chart configuration array; provide it together when event charts are enabled; the actual result is generated by the event processing chain and is not returned in the write response.
Example: [{"dql": "M::cpu:(avg(usage_idle)) BY host"}]
How to obtain or fill: Verify the query used for event display against real data.
checker.jsonScript.eventCharts[*] json Declares only the dql subfield.
Example: {"dql": "M::cpu:(avg(usage_idle)) BY host"}
How to obtain or fill: A single verified chart query.
checker.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 host
How to obtain or fill: Write DQL from the supported data source based on real metrics/fields.
checker.jsonScript.every string Regular templates usually use every or customCrontab; when the compatible fixedCrontab is non-empty, the common every pre-check can be skipped; do not uniformly call every a required template field; the actual generated Cron and algorithm still have type constraints. For regular cases, a positive integer with s/m/h and ≤24h is recommended; V2 is fixed at 10m.
Example: 1m
How to obtain or fill: Choose a positive integer + s/m/h according to the business detection frequency, e.g. 1m, 5m, 1h.
checker.jsonScript.groupBy array Optional dimension name array; usually [] means no grouping by additional dimensions; it is not a tag value. Combined monitoring member dimensions must be compatible.
Example: ["host"]
How to obtain or fill: Select from the grouping fields returned by the real DQL, consistent with the BY dimensions.
checker.jsonScript.interval integer For regular checks with targets, requires 1..2592000 seconds (30 days); different from the every detection frequency. Combined monitoring skips this common check; V2 uses YAML query.interval/lookback instead.
Example: 300
How to obtain or fill: Choose a positive integer number of seconds according to the time range required for detection, coordinated with the real data granularity.
checker.jsonScript.isChangeEvent boolean Optional for OuterEventChecker, default false; not used by other types.
Example: false
How to obtain or fill: Set to true when the external event is a Change Event.
checker.jsonScript.message string Event content; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated.
Example: Host {{host}} detection result {{Result}}
How to obtain or fill: Write the event/notification template according to the actual detection dimensions and result variables; you can reuse it from verified events of the same type.
checker.jsonScript.noDataAction string Optional: none/checkAs0/noDataEvent/noDataEventRepeat/fatalEvent/criticalEvent/errorEvent/warningEvent/okEvent/noData/recover. noDataEventRepeat is supported only for applicable types and requires a positive integer noDataInterval; omitted/empty compatible values and positive durations have special historical handling; do not rely on defaults to implement repeated alerts.
Example: noDataEvent
How to obtain or fill: Choose from this parameter's enumeration according to the business meaning of no-data.
checker.jsonScript.noDataInterval integer Optional depending on type. No-data duration in seconds; for regular frequencies it is rounded up to a whole detection cycle; for custom frequencies it is in seconds directly; repeat no-data must be a positive integer. For modification, applicable settings should be fully preserved without mixing units.
Example: 600
How to obtain or fill: Determine the window/offset/duration based on the business; first verify with the corresponding type details and actual events.
checker.jsonScript.noDataMessage string Template for no-data event information output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated.
Example: Host {{host}} detection result {{Result}}
How to obtain or fill: Write the event/notification template according to the actual detection dimensions and result variables; you can reuse it from verified events of the same type.
checker.jsonScript.noDataNotificationMessage string No-data gap event notification content; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated.
Example: Host {{host}} detection result {{Result}}
How to obtain or fill: Write the event/notification template according to the actual detection dimensions and result variables; you can reuse it from verified events of the same type.
checker.jsonScript.noDataRecoverMessage string Template for no-data recovery upload event information output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated.
Example: Host {{host}} detection result {{Result}}
How to obtain or fill: Write the event/notification template according to the actual detection dimensions and result variables; you can reuse it from verified events of the same type.
checker.jsonScript.noDataRecoverTitle string Template for no-data recovery upload event title output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated.
Example: Host {{host}} detection result {{Result}}
How to obtain or fill: Write the event/notification template according to the actual detection dimensions and result variables; you can reuse it from verified events of the same type.
checker.jsonScript.noDataTitle string Template for no-data event title output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated.
Example: Host {{host}} detection result {{Result}}
How to obtain or fill: Write the event/notification template according to the actual detection dimensions and result variables; you can reuse it from verified events of the same type.
checker.jsonScript.notificationMessage string Event notification content; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated.
Example: Host {{host}} detection result {{Result}}
How to obtain or fill: Write the event/notification template according to the actual detection dimensions and result variables; you can reuse it from verified events of the same type.
checker.jsonScript.openNoDataNotificationMessage boolean Optional, default false; when disabled, the corresponding event content is used; when enabled, provide the corresponding notificationMessage/noDataNotificationMessage as well.
Example: false
How to obtain or fill: Set to true when separate notification-specific content is needed.
checker.jsonScript.openNotificationMessage boolean Optional, default false; when disabled, the corresponding event content is used; when enabled, provide the corresponding notificationMessage/noDataNotificationMessage as well.
Example: false
How to obtain or fill: Set to true when separate notification-specific content is needed.
checker.jsonScript.periodBefore integer Optional depending on type. Comparison offset in seconds for advanced mutation, e.g. 86400 for yesterday; fill in completely together with range/range_2. For modification, applicable settings should be fully preserved without mixing units.
Example: 86400
How to obtain or fill: Determine the window/offset/duration based on the business; first verify with the corresponding type details and actual events.
checker.jsonScript.range integer Optional depending on type. Current comparison window for advanced mutation, in positive integer seconds. For modification, applicable settings should be fully preserved without mixing units.
Example: 3600
How to obtain or fill: Determine the window/offset/duration based on the business; first verify with the corresponding type details and actual events.
checker.jsonScript.range_2 integer Optional depending on type. Comparison window setting for advanced mutation: -1 for period-over-period, 0 for periodBefore, others as the second window defined by the corresponding advanced detection. For modification, applicable settings should be fully preserved without mixing units.
Example: -1
How to obtain or fill: Determine the window/offset/duration based on the business; first verify with the corresponding type details and actual events.
checker.jsonScript.recoverMessage string Template for recovery event information output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated.
Example: Host {{host}} detection result {{Result}}
How to obtain or fill: Write the event/notification template according to the actual detection dimensions and result variables; you can reuse it from verified events of the same type.
checker.jsonScript.recoverNeedPeriodCount integer Optional depending on type. For regular frequencies, the number of consecutive recovery cycles; for customCrontab, the recovery duration in seconds directly; omitted 0. For modification, applicable settings should be fully preserved without mixing units.
Example: 1
How to obtain or fill: Determine the window/offset/duration based on the business; first verify with the corresponding type details and actual events.
checker.jsonScript.recoverTitle string Template for recovery event title output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated.
Example: Host {{host}} detection result {{Result}}
How to obtain or fill: Write the event/notification template according to the actual detection dimensions and result variables; you can reuse it from verified events of the same type.
checker.jsonScript.subUri string New required non-empty string for OuterEventChecker; the public receive URL is a single path segment and cannot contain / (encoding as %2F still results in 404); alphanumeric characters and hyphens are recommended. Multiple rules may share the same suffix; uniqueness is handled by secret; regular checks do not fill it.
Example: datakit-push
How to obtain or fill: Choose a Webhook suffix for the current external event integration.
checker.jsonScript.targetWorkspaceUUID string Optional single source; a non-empty targetWorkspaceUUIDs takes precedence. A single-source authorization failure can be caught by import and counted in failCount; partial failure of multiple sources reduces the execution scope but may still be counted as overall success; this field cannot be used to infer that all sources execute. Prohibited in V2.
Example: wksp_source_example
How to obtain or fill: Obtain a single source workspace from a valid Cross-Workspace Authorization.
checker.jsonScript.targets array Regular query target array; the actual DQL/PromQL execution statement goes in dql; regular public plugins accept only Result or empty for alias and check alias uniqueness; a single Result target is recommended. Combined monitoring uses monitorCheckerId/alias to associate members; targets are prohibited in V2; put everything in YAML.
Example: [{"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}]
How to obtain or fill: First verify the query against the same data source in the target workspace; fields/indexes must actually exist.
checker.jsonScript.title string The template endpoint does not have the uniform required/256 weighted-length pre-validation of normal add. A non-empty string with the length recommended for regular rules is advised; the specifics are still subject to plugin/downstream limits; do not assume that a missing title will definitely be rejected upfront.
Example: Production CPU Threshold
How to obtain or fill: Recommended to obtain from the original template event title; the import name uses the non-empty title first, otherwise name.
checker.jsonScript.type string Required plugin identifier; historical compatibility types such as mutationsCheck/rangeCheck/seniorCheck and legacy smart* still need to be maintained according to their original configuration and are not replaced by the entity type. Specific fields apply only to their types and cannot be mixed. V2 and legacy versions cannot be switched to each other.
Example: simpleCheck
How to obtain or fill: Choose according to the detection method; regular simpleCheck threshold, apmCheck/rumCheck/processCheck/cloudDialCheck/networkCheck/objectCheck; advanced seniorMutationsCheck/seniorRangeCheck/seniorRangeV2Check/outlierCheck; combinedCheck for combination, OuterEventChecker for external events, programmableCheck for programmable; smart V2 smartMonitorV2Check, AI semantics aiMonitor (same name as the entity type but with a different field hierarchy).
checker.jsonScript.windowDql string Optional compatibility window query text; passes through extra event information and does not replace the actual detection query in targets; if omitted, it is not provided.
Example: M::cpu:(avg(usage_idle)) BY host
How to obtain or fill: Obtain from the verified original detection window display query or details of the same type.
checker.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 fill: One query or combined member.
checker.jsonScript.targets[*].dql string DQL or PromQL text, specified by qtype.
Example: M::cpu:(avg(usage_idle)) BY host
How to obtain or fill: Write and verify against real data in the target workspace.
checker.jsonScript.targets[*].qtype string Optional; usually dql.
Example: dql
How to obtain or fill: Choose dql for DQL and promql for PromQL.
checker.jsonScript.targets[*].alias string Regular plugins accept only Result or empty, and it must not be duplicated.
Example: Result
How to obtain or fill: Use Result for a regular single query; assign combined members as A/B, etc.
checker.jsonScript.targets[*].monitorCheckerId string Only for combinedCheck; a member cannot be a rule with a Cron conflict.
Example: rul_checker_example
How to obtain or fill: Obtain an available member UUID from the current workspace's monitor list.
checker.jsonScript.groupBy[*] string A single dimension.
Example: host
How to obtain or fill: A real DQL BY field.
checker.jsonScript.checkFuncs[*] json seniorCheck uses the first item.
Example: {"funcId": "example.func", "kwargs": {}}
How to obtain or fill: Obtain from the original compatible custom function configuration.
checker.jsonScript.checkFuncs[*].funcId string Compatibility function identifier.
Example: example.func
How to obtain or fill: A real available function ID.
checker.jsonScript.checkFuncs[*].kwargs json Dynamic object; no uniform required subkeys.
Example: {}
How to obtain or fill: The function-specific parameter structure.
checker.jsonScript.checkFuncs[*].kwargs. any A single function-specific value.
Example: 1
How to obtain or fill: Obtain the name/type/source from the corresponding function documentation.
checker.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 fill: Conditions for a single alert level.
checker.jsonScript.checkerOpt.rules[*].status string Allowed set for public plugins; use according to the actual detection type.
Example: warning
How to obtain or fill: Choose fatal/critical/error/warning/info/ok/ALL according to the event level.
checker.jsonScript.checkerOpt.rules[*].conditionLogic string Required for common conditions.
Example: and
How to obtain or fill: and/or.
checker.jsonScript.checkerOpt.rules[*].conditions array Required array for common conditions.
Example: [{"alias": "Result", "operator": "<", "operands": [10]}]
How to obtain or fill: Construct according to the real query results and thresholds.
checker.jsonScript.checkerOpt.rules[*].okConditions array Optional; used with openOkConditions; the 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 fill: Set independent boundaries for tiered recovery.
checker.jsonScript.checkerOpt.rules[*].matchTimes integer Optional; used with openMatchTimes; defaults to 1 when enabled; actual range 1..100; exceeding the limit reports ErrorContinuousTriggerCfgCount.
Example: 2
How to obtain or fill: How many consecutive anomalies the business allows before triggering.
checker.jsonScript.checkerOpt.rules[*].conditions[*] json A single comparison condition.
Example: {"alias": "Result", "operator": "<", "operands": [10]}
How to obtain or fill: Construct with the real query Result and threshold.
checker.jsonScript.checkerOpt.rules[*].conditions[*].alias string Matches the target alias.
Example: Result
How to obtain or fill: Configure according to the same query target, data units, and business boundaries.
checker.jsonScript.checkerOpt.rules[*].conditions[*].operator string Common operators =, !=, >, >=, <, <=, between, notBetween, like, notLike, in, notIn, regExp, notRegExp, isTrue, isFalse, likeTrue, likeFalse; specific algorithms may narrow this.
Example: <
How to obtain or fill: Configure according to the same query target, data units, and business boundaries.
checker.jsonScript.checkerOpt.rules[*].conditions[*].operands array String/number array; preserves the real result units; do not pass booleans/objects; conditions with empty values may be filtered out.
Example: [10]
How to obtain or fill: Configure according to the same query target, data units, and business boundaries.
checker.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: 10
How to obtain or fill: Configure according to the same query target, data units, and business boundaries.
checker.jsonScript.checkerOpt.rules[*].okConditions[*] json A single comparison condition.
Example: {"alias": "Result", "operator": "<", "operands": [10]}
How to obtain or fill: Construct with the real query Result and threshold.
checker.jsonScript.checkerOpt.rules[*].okConditions[*].alias string Matches the target alias.
Example: Result
How to obtain or fill: Configure according to the same query target, data units, and business boundaries.
checker.jsonScript.checkerOpt.rules[*].okConditions[*].operator string Common operators =, !=, >, >=, <, <=, between, notBetween, like, notLike, in, notIn, regExp, notRegExp, isTrue, isFalse, likeTrue, likeFalse; specific algorithms may narrow this.
Example: <
How to obtain or fill: Configure according to the same query target, data units, and business boundaries.
checker.jsonScript.checkerOpt.rules[*].okConditions[*].operands array String/number array; preserves the real result units; do not pass booleans/objects; conditions with empty values may be filtered out.
Example: [10]
How to obtain or fill: Configure according to the same query target, data units, and business boundaries.
checker.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: 10
How to obtain or fill: Configure according to the same query target, data units, and business boundaries.
checker.jsonScript.channels[*] string A single valid value in the array.
Example: chan_example
How to obtain or fill: Take the channel or account identifier described in the parent item.
checker.jsonScript.atAccounts[*] string A single valid value in the array.
Example: acnt_example
How to obtain or fill: Take the channel or account identifier described in the parent item.
checker.jsonScript.atNoDataAccounts[*] string A single valid value in the array.
Example: acnt_example
How to obtain or fill: Take the channel or account identifier described in the parent item.
checker.jsonScript.checkerOpt.infoEventCondition.operands[*] JSON A string or number.
Example: 60
How to obtain or fill: A comparison value in the same unit as the query Result.
checker.jsonScript.checkerOpt.rules[*].strength integer For historical types only; strength 1/2/3 for legacy mutationsCheck. New advanced types use their corresponding checkerOpt fields; do not mix them.
Example: 2
How to obtain or fill: Read from the original details when maintaining an existing legacy algorithm.
checker.jsonScript.checkerOpt.rules[*].direction string For historical types only; direction up/down/both for legacy mutationsCheck/rangeCheck. New advanced types use their corresponding checkerOpt fields; do not mix them.
Example: both
How to obtain or fill: Read from the original details when maintaining an existing legacy algorithm.
checker.jsonScript.checkerOpt.rules[*].checkCount integer For historical types only; number of checks for legacy mutation detection; integer. New advanced types use their corresponding checkerOpt fields; do not mix them.
Example: 3
How to obtain or fill: Read from the original details when maintaining an existing legacy algorithm.
checker.jsonScript.checkerOpt.rules[*].periodNum integer For historical types only; number of cycles for legacy mutation/range; integer. New advanced types use their corresponding checkerOpt fields; do not mix them.
Example: 3
How to obtain or fill: Read from the original details when maintaining an existing legacy algorithm.
checker.extend.isNeedCreateIssue boolean Default false; when enabled, channels/owners/status/level mapping are also verified.
Example: false
How to obtain or fill: Set to true when events need to automatically generate Issues.
checker.extend.issueLevelUUID string Historical compatibility level; invalid values may be cleared to empty; success does not prove the level takes effect.
Example: issl_example
How to obtain or fill: Obtain the uuid from a valid Issue level list.
checker.extend.issueDfStatus array Elements are limited to fatal/critical/error/warning/nodata.
Example: ["critical", "error"]
How to obtain or fill: Choose which anomaly levels trigger Issues.
checker.extend.issueDfStatus[*] string A single allowed status.
Example: error
How to obtain or fill: An actual alert level.
checker.extend.manager array The owner list is normalized to concrete targets; On-Call personnel are resolved according to the current day's calendar in the workspace time zone and will not change automatically with shift rotations after this write.
Example: ["acnt_example"]
How to obtain or fill: Obtain the owner target from workspace members/teams/notification schedules.
checker.extend.manager[*] string A single owner; verify that the source is valid first.
Example: acnt_example
How to obtain or fill: A member/team or a supported current-day On-Call target identifier.
checker.extend.incidentsTags array Tags used for Issue association; tags may be created/validated according to rules.
Example: ["production"]
How to obtain or fill: Obtain from a monitor-applicable tag name.
checker.extend.incidentsTags[*] string Not a UUID.
Example: production
How to obtain or fill: An actual business tag name.
checker.extend.faultMappingMode string Defaults to custom when Issues are enabled; existing requires a valid levelMappingUUID.
Example: custom
How to obtain or fill: custom for custom mapping, existing to reference an existing mapping.
checker.extend.levelMappingUUID string Required valid UUID for the existing condition; the custom branch removes this reference field but keeps historical custom rows.
Example: islm_example
How to obtain or fill: Obtain from the available anomaly level mapping configurations in this workspace.
checker.extend.bindIncidentsInfo array Custom mapping rows; when switching back to custom and omitting this key, the controller may keep the old rows, but the public extend still needs to be filled back completely with caution.
Example: [{"incidentsLevelUUID": "issl_example", "incidentsDfStatus": ["error"]}]
How to obtain or fill: Construct according to the event level corresponding to the Issue level.
checker.extend.bindIncidentsInfo[*] json A mapping object.
Example: {"incidentsLevelUUID": "issl_example", "incidentsDfStatus": ["error"]}
How to obtain or fill: A single status-to-level mapping.
checker.extend.bindIncidentsInfo[*].incidentsLevelUUID string An invalid level may be cleared.
Example: issl_example
How to obtain or fill: Obtain from a valid Issue level list.
checker.extend.bindIncidentsInfo[*].incidentsDfStatus array Allowed status array.
Example: ["error"]
How to obtain or fill: Choose from fatal/critical/error/warning/nodata.
checker.extend.bindIncidentsInfo[*].incidentsDfStatus[*] string A single allowed value.
Example: error
How to obtain or fill: An actual event level.
checker.extend.smartMonitor.source string ai/builtin; the new OpenAPI can pass a complete valid configuration directly without generation credentials.
Example: ai
How to obtain or fill: Obtain from the corresponding generation result/built-in template metadata; do not invent a real template ID for the site.
checker.extend.smartMonitor.category string Source category; cannot be changed by V2 modification.
Example: custom
How to obtain or fill: Obtain from the corresponding generation result/built-in template metadata; do not invent a real template ID for the site.
checker.extend.smartMonitor.prompt string AI prompt; changing an existing prompt requires regenerating candidates.
Example: Detect anomalies on production hosts.
How to obtain or fill: Obtain from the corresponding generation result/built-in template metadata; do not invent a real template ID for the site.
checker.extend.smartMonitor.templateId string Builtin source template identifier; cannot be changed by modification.
Example: template_example
How to obtain or fill: Obtain from the corresponding generation result/built-in template metadata; do not invent a real template ID for the site.
checker.extend.smartMonitor.templateVersion string Builtin template version; cannot be changed by modification.
Example: 1
How to obtain or fill: Obtain from the corresponding generation result/built-in template metadata; do not invent a real template ID for the site.
checker.extend.smartMonitor json For V2 only; the server clears forged execution/version states and writes engineVersion/configVersion; allowed fields are preserved; the old source category is immutable.
Example: {"source": "ai", "category": "custom", "prompt": "Detect anomalies on production hosts."}
How to obtain or fill: Obtain source metadata from the generation or template selection flow.
checker.extend.querylist array Optional; if present, it is preserved and takes precedence over automatic queryType injection; it does not replace the actual DQL in targets; an incorrect echo structure does not prove that the check works.
Example: []
How to obtain or fill: For existing client echo configurations, obtain the complete array directly from the original details.
checker.extend.querylist[*] json Dynamic editor object saved according to client version; actual detection relies only on targets.
Example: {"qtype": "dql", "query": {"q": "M::cpu:(avg(usage_idle)) BY host"}}
How to obtain or fill: A single query echo generated by the client editor.
checker.extend.querylist[*].qtype string Does not automatically convert the execution query.
Example: dql
How to obtain or fill: A dql/promql query type echo.
checker.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 fill: A query editing structure generated by the client.
checker.extend.querylist[*].query.q string Complete DQL/PromQL echo.
Example: M::cpu:(avg(usage_idle)) BY host
How to obtain or fill: Keep consistent with the real targets query text.
checker.jsonScript.targetWorkspaceUUIDs array Optional; a non-empty array takes precedence over the singular targetWorkspaceUUID; per source, only AuthorizationVerificationFailed is skipped; at least one valid source is enough to create schedules for the actually valid sources, but the original complete array is saved. If all fail, CheckerAuthorizationVerificationFailed; other exceptions may interrupt. You must read crontabInfo.multiWsCrontabInfo to verify the real execution scope.
Example: ["wksp_source_a", "wksp_source_b"]
How to obtain or fill: Obtain source UUIDs from valid cross-workspace authorizations in the target workspace; templates may have this field and are not subject to the nested whitelist of normal add.
checker.jsonScript.targetWorkspaceUUIDs[*] string Do not treat a retained input value or a success count as proof that the source is authorized/scheduled. V2 still prohibits cross-workspace fields.
Example: wksp_source_a
How to obtain or fill: Use a single real valid source workspace UUID.
checker.jsonScript.name string Optional legacy template field. A non-empty title overrides name; providing a valid name is recommended; do not treat the commented-out plugin name validation as unlimited support.
Example: Production CPU Threshold
How to obtain or fill: For compatibility with legacy export templates; used as the import name source when there is no non-empty title.
checker.jsonScript.fixedCrontab string Templates may save this compatibility field; normal public add/modify does not have the same whitelist. When non-empty, the common frequency pre-check skips every validation; the actual make_crontab still uses customCrontab first and generates according to every when every is present. Do not provide conflicting frequencies at the same time; after import, verify against the actual Cron in crontabInfo; this field is prohibited in V2.
Example: 0 */5 * * * *
How to obtain or fill: Only retain the fixed Cron from a trusted legacy export template; do not construct internal scheduling fields yourself.
checker json Y Required single template object. The entity type must match the normalized type of the old object; it is not a checkers array and does not change the target UUID.
Allows null: False
Example: {"type": "trigger", "signId": "sign_example", "jsonScript": {"type": "simpleCheck", "title": "Production CPU Threshold", "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": ["Production Alert"], "configVersion": 1}
How to obtain or fill: Obtain from a single export template of the same version; before replacement, get the target and back up the original configuration.

Additional Parameter Notes

Internal fields of V2 yamlConfig (submitted as a complete YAML string):

YAML Field Type Values, Sources, and Omission Rules
version integer Required, fixed at 1.
name string Required and non-empty; ≤128 characters after trim; cannot be changed by later modification once the definition is created.
event.title / event.message string Both required and non-empty, ≤8000 characters; only public Scene. variables are allowed; Jinja control blocks/comments are not supported.
rules array Required, 1..10 items, at least one with enabled=true.
rules[].id string Required and unique; regex [a-z][a-z0-9_]{2,63}.
rules[].name string Required and non-empty; ≤128 characters after trim.
rules[].enabled boolean Optional, default true; current modification does not allow changing the structural enabled state.
rules[].query.dql string Required real authorizable DQL; the overall UTF8 is still subject to the 256KiB total limit; modification is 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 real dimension fields that are non-empty and unique after trimming whitespace.
rules[].detect object Choose one of threshold or algorithm; they cannot both be present; the threshold branch does not carry params.
rules[].detect.threshold.operator string Required: >, >=, <, <=, ==, !=, between, outside.
rules[].detect.threshold.operands array<number> 1 finite number for comparison; exactly 2 for between/outside with 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 Keys are allowed by algorithm; unknown keys are not accepted; basic and seasonal@2/adaptive allow null, which is validated as {}.
rules[].detect.params.band string Optional mad/quantile for basic.
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 Optional null or 2..10000 for seasonal@2/adaptive; omitted/empty estimates by 1-day sampling points; legacy @1 requires 2..10080.
rules[].detect.params.consecutive integer Only legacy seasonal@1 allows 1..60, default 1.
rules[].detect.params.min_cycles integer Only legacy seasonal@1, default 3, 2..12.
rules[].detect.params.peer_by array<string> Required for peer; may be empty, but each entry must be unique after trimming 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 and non-empty; ≤128 characters after trim.
rules[].display.unit string or null Optional, ≤64 characters; the 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. The sampling history budget must be both ≤10000 points and ≤60 days; basic daily sampling is at most 61 days. Algorithm history/evidence/consecutive trigger requirements are jointly counted in the budget; an explicit lookback cannot bypass it. Modification only allows 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/rul_checker_example/replace' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"checker":{"type":"trigger","signId":"sign_example","jsonScript":{"type":"simpleCheck","title":"Production CPU Threshold","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":["Production Alert"]}}'

Response

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

Field Type Description
content.id integer or null For import creation, the response constructed before submission may be null; for replacement it is the current record number.
content.uuid string The current rul_ rule UUID, not a historical UUID or export signId.
content.workspaceUUID string The workspace the object belongs to.
content.monitorUUID string Associated monitor group UUID.
content.type string Entity category, usually trigger/smartMonitor/aiMonitor; distinct from jsonScript.type check algorithm.
content.refKey string Compatibility business association key, usually an empty string.
content.secret string or null Shared fields such as the external event Webhook identifier; not to be treated as a general API Key; do not write sensitive real values to logs.
content.jsonScript object Saved detection configuration, interpreted according to jsonScript.type and version. Reading does not execute detection.
content.crontabInfo object Scheduling configuration; fields vary by single/multi workspace and algorithm; may be {}.
content.crontabInfo.id string Main scheduling configuration ID; may be omitted.
content.crontabInfo.crontab string or null Actual execution Cron; may be explicitly null or omitted (e.g. combined monitoring without Cron); distinct from the input every.
content.crontabInfo.smartRelId string Scheduling ID attached to some smart monitors; may be omitted.
content.crontabInfo.multiWsCrontabInfo array<object> Scheduling data for each cross-workspace source; may exist historically; may be omitted.
content.crontabInfo.multiWsCrontabInfo[].ws_uuid string Target workspace UUID.
content.crontabInfo.multiWsCrontabInfo[].id string Scheduling ID for that workspace.
content.crontabInfo.multiWsCrontabInfo[].crontab string or null Actual Cron for that workspace; may be explicitly null or omitted.
content.extend object Additional echo/Incident association configuration; may contain historical custom fields; do not blindly return it as a whole for modification.
content.extend.Custom Field JSON Historically or type-specifically saved values; refer to the current type details and the public structure of the create API.
content.createdWay string manual/import/template or a historical empty value.
content.isLocked integer or boolean Lock status; may be omitted in historical branches.
content.openPermissionSet boolean Custom operation permission switch; a successful read does not imply that it can be modified.
content.permissionSet array<string> Custom operation subject UUIDs.
content.permissionSet[] string Account/team/role identifier.
content.status integer 0 enabled, 2 disabled; non-delete queries may include other historical statuses; does not represent the latest run result.
content.creator string Creator identity.
content.updator string Updater identity.
content.createAt integer Creation Unix seconds.
content.updateAt integer Update Unix seconds; -1 if not updated.
content.deleteAt integer Deletion Unix seconds; -1 if not deleted.
content.configVersion integer Additional field for the current V2 configuration version; may be omitted for regular rules.
content.jsonScript.atAccounts array Optional array, defaults to []; channels are used to associate Incidents, not as direct notification targets; the server may add default channels/filter invalid channels. @external emails are restricted in Free Plan versions; saving does not mean a notification has been sent. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.atNoDataAccounts array Optional array, defaults to []; channels are used to associate Incidents, not as direct notification targets; the server may add default channels/filter invalid channels. @external emails are restricted in Free Plan versions; saving does not mean a notification has been sent. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.channels array Optional array, defaults to []; channels are used to associate Incidents, not as direct notification targets; the server may add default channels/filter invalid channels. @external emails are restricted in Free Plan versions; saving does not mean a notification has been sent. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkFuncs array Optional; regular thresholds do not require it; seniorCheck uses the first item's funcId/kwargs and does not treat all functions as generic parameters. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt json Regular rules commonly use rules; advanced types are filled according to the corresponding algorithm, V2 uses yamlConfig, AI semantics uses userPrompt, etc.; undeclared subfields are rejected by public validation; do not copy the entire internal SDK parameters. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.category string For AI semantics only. AI semantics category metadata; optional string. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.combineExpr string Type-specific parameter. Alias expression for combined members; required and non-empty for combined types; do not use Result in place of member aliases. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.confidenceInterval integer Type-specific parameter. Confidence interval 1..100 for Range V2; configure according to the actual algorithm. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.contextWindowLimit integer For AI semantics only. Positive integer Token context limit, ≥1. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.creditSoftBudget number For AI semantics only. Soft budget of Credits per run; a finite number >0; not an API execution timeout. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.diffMode string Type-specific parameter. For advanced mutation, value for difference/percent for percentage; must be provided explicitly. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.direction string Type-specific parameter. For advanced mutation/range: up/down/both; must be provided explicitly. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.disableLargeScaleEventProtect boolean Optional boolean. true disables large-scale event protection; the default false keeps protection. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.enableStreamingAggregation boolean or null Optional tri-state. Only controls streaming aggregation acceleration for supported types; it is not equivalent to starting/stopping the monitor or changing the meaning of the DQL. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.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; see Create Monitor for writing.
content.jsonScript.checkerOpt.ignoreNodata boolean Optional boolean. Only for combined monitoring; true ignores no-data; default false. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.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; see Create Monitor for writing.
content.jsonScript.checkerOpt.infoEventCondition json Optional; {} means unconditional Info. Only applies to supported types such as regular threshold/log/application and RUM metrics/availability/process/network/mutation/range; outlier/combined/liveness V2/change/programmable/smart/SLO are not supported, and passing it reports UnsupportTriggerFields. A non-empty value requires alias/operator/operands to be complete and valid. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.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; see Create Monitor for writing.
content.jsonScript.checkerOpt.infoEventCondition.operands array Fill in according to the structure within a non-empty Info condition; comparison value array whose elements are strings/numbers; do not pass objects. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.infoEventCondition.operator string Fill in according to the structure within a non-empty Info condition; choose from the regular condition operators on this page. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.maxChatRounds integer For AI semantics only. Maximum number of conversation rounds; integer ≥1. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.maxDQLQueries integer For AI semantics only. Maximum number of DQL calls; integer ≥0. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.mentions array Optional for AI semantics, defaults to []; each item has type=dql, non-empty namespace/datasource, index is optional and must be non-empty when passed; the normalized JSON serialization total length is ≤20000 characters. Does not replace data query authorization. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.mentions[] object type/namespace/datasource are required, index is optional; only these four fields are declared. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.mentions[].datasource string The real data source name within the reference item, for example a log source/measurement, interpreted by namespace. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.mentions[].index string For a log reference 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; see Create Monitor for writing.
content.jsonScript.checkerOpt.mentions[].namespace string The 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; see Create Monitor for writing.
content.jsonScript.checkerOpt.mentions[].type string Fixed as dql within the reference item. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.model string For AI semantics only. Optional AI semantics model name; it should be obtained from the model configuration supported by the site and must not use the literal value in the documentation example. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.openMatchTimes boolean Optional boolean. true enables consecutive trigger matching; default false; used together with rules[].matchTimes. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.openOkConditions boolean Optional boolean. true enables tiered recovery; default false; okConditions must satisfy the trigger and recovery boundaries. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.rules array Regular rule condition array; each item has status/conditionLogic/conditions; recovery uses okConditions. Incorrect member/operator shapes may throw a regular exception resulting in a 500, not always 406. Conditions with empty operands are filtered out before constructing the schedule; do not use them to express "all". This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.script string Type-specific parameter. Programmable check script text using the syntax supported by that type; this endpoint does not run a script test. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.systemPrompt string For AI semantics only. Optional for AI semantics; non-empty when passed; ≤20000 Python characters. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.threshold json Optional object; when provided, status/operator/value are all declared required; status=false disables the precondition check; value may be null but should be filled according to the actual meaning of the algorithm. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.threshold.operator string Required when the parent object exists; precondition comparison operator, e.g. >, according to the compatible set of the actual advanced detection. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.threshold.status boolean Required when the parent object exists; whether to enable the precondition. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.threshold.value float or null Required when the parent object exists; precondition value; status=false allows null, status=true requires a number, otherwise IllegalMutationParameters; the unit must match the query result. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.userPrompt string For AI semantics only. Required and non-empty for AI semantics conditions; ≤20000 Python characters; although an empty string is declared, the business layer does not accept blank values. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.checkerOpt.yamlConfig string Required only for V2; non-empty UTF8 YAML text ≤256KiB; not a JSON object or Markdown fence; see the YAML table on this page for the structure. Anchors/aliases/explicit tags/duplicate keys are prohibited. Modifications may only change existing DQL, threshold configuration, and algorithm params; the rule set/names/execution structure cannot be changed; on save, the protocol/budget is validated and permissions for the checked query data domains are resolved; DQL is not executed and data existence/source authorization is not guaranteed to have been fully reviewed. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.customCrontab string Optional; a non-empty value takes precedence over every; supports 5 fields or 6 fields with seconds; the seconds step form must not be less than 20. Combined monitoring and combined members have custom frequency conflict restrictions; prohibited in V2. The detection time zone depends on the 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; see Create Monitor for writing.
content.jsonScript.delaySeconds integer Optional data wait window for regular monitoring, in seconds; 0 means no wait; default 0; booleans are not treated as integers. Smart/AI does not use the regular wait configuration; it cannot be used to adjust smart execution delay. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.disableCheckEndTime boolean Optional compatibility boolean, default false; actual support depends on the check type. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.eventChartEnable boolean Optional, default false; only processed for supported Doris log primary storage; a successful save does not prove that the chart has been generated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.eventCharts array Optional chart configuration array; provide it together when event charts are enabled; the actual result is generated by the event processing chain and is not returned in the write response. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.eventCharts[] object Declares only the dql subfield. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.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; see Create Monitor for writing.
content.jsonScript.every string Regular public plugins require every or customCrontab; maximum 24h, recommended minimum 20s. Use a valid positive integer format; do not use 0/negative values or d/w; some format issues may cause a 500. V2 is fixed at 10m and the server overrides every; AI semantics uses its own detection frequency. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.groupBy array Optional dimension name array; usually [] means no grouping by additional dimensions; it is not a tag value. Combined monitoring member dimensions must be compatible. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.interval integer For regular checks with targets, requires 1..2592000 seconds (30 days); different from the every detection frequency. Combined monitoring skips this common check; V2 uses YAML query.interval/lookback instead. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.isChangeEvent boolean Optional for OuterEventChecker, default false; not used by other types. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.message string Event content; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.noDataAction string Optional: none/checkAs0/noDataEvent/noDataEventRepeat/fatalEvent/criticalEvent/errorEvent/warningEvent/okEvent/noData/recover. noDataEventRepeat is supported only for applicable types and requires a positive integer noDataInterval; omitted/empty compatible values and positive durations have special historical handling; do not rely on defaults to implement repeated alerts. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.noDataInterval integer Optional depending on type. No-data duration in seconds; for regular frequencies it is rounded up to a whole detection cycle; for custom frequencies it is in seconds directly; repeat no-data must be a positive integer. For modification, applicable settings should be fully preserved without mixing units. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.noDataMessage string Template for no-data event information output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.noDataNotificationMessage string No-data gap event notification content; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.noDataRecoverMessage string Template for no-data recovery upload event information output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.noDataRecoverTitle string Template for no-data recovery upload event title output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.noDataTitle string Template for no-data event title output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.notificationMessage string Event notification content; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.openNoDataNotificationMessage boolean Optional, default false; when disabled, the corresponding event content is used; when enabled, provide the corresponding notificationMessage/noDataNotificationMessage as well. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.openNotificationMessage boolean Optional, default false; when disabled, the corresponding event content is used; when enabled, provide the corresponding notificationMessage/noDataNotificationMessage as well. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.periodBefore integer Optional depending on type. Comparison offset in seconds for advanced mutation, e.g. 86400 for yesterday; fill in completely together with range/range_2. For modification, applicable settings should be fully preserved without mixing units. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.range integer Optional depending on type. Current comparison window for advanced mutation, in positive integer seconds. For modification, applicable settings should be fully preserved without mixing units. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.range_2 integer Optional depending on type. Comparison window setting for advanced mutation: -1 for period-over-period, 0 for periodBefore, others as the second window defined by the corresponding advanced detection. For modification, applicable settings should be fully preserved without mixing units. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.recoverMessage string Template for recovery event information output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.recoverNeedPeriodCount integer Optional depending on type. For regular frequencies, the number of consecutive recovery cycles; for customCrontab, the recovery duration in seconds directly; omitted 0. For modification, applicable settings should be fully preserved without mixing units. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.recoverTitle string Template for recovery event title output; optional depending on the corresponding check type; for modification, omission must not be treated as preservation; the entire configuration must be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text; the legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax; the runtime values of unknown variables are not validated. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.subUri string New required non-empty string for OuterEventChecker; the public receive URL is a single path segment and cannot contain / (encoding as %2F still results in 404); alphanumeric characters and hyphens are recommended. Multiple rules may share the same suffix; uniqueness is handled by secret; regular checks do not fill it. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.targetWorkspaceUUID string Optional, defaults to the current workspace. Applies to cross-workspace query consumption for simpleCheck, seniorMutationsCheck, seniorRangeCheck, seniorRangeV2Check, outlierCheck; writing only generates a candidate index_list and validates the caller identity's data domain permissions; a successful save does not mean the source authorization has been fully reviewed or that the data is queryable; confirm the real target authorization before calling. Prohibited in V2; use YAML queries within the authorized workspace. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.targets array Regular query target array; the actual DQL/PromQL execution statement goes in dql; regular public plugins accept only Result or empty for alias and check alias uniqueness; a single Result target is recommended. Combined monitoring uses monitorCheckerId/alias to associate members; targets are prohibited in V2; put everything in YAML. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.title string Required string; non-empty is recommended; the maximum 256 is counted as 1 for ASCII/half-width katakana and 2 for other characters. A non-empty value is copied as the rule name and participates in duplicate-name checks; regular/self-hosted inspections share the duplicate-name group, while smart/AI have their own groups. Whether variables exist at template runtime must be verified with real events. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.type string Required plugin identifier; historical compatibility types such as mutationsCheck/rangeCheck/seniorCheck and legacy smart* still need to be maintained according to their original configuration and are not replaced by the entity type. Specific fields apply only to their types and cannot be mixed. V2 and legacy versions cannot be switched to each other. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.windowDql string Optional compatibility window query text; passes through extra event information and does not replace the actual detection query in targets; if omitted, it is not provided. This is saved configuration; whether it actually takes effect depends on the check type; see Create Monitor for writing.
content.jsonScript.targets[] object A single DQL/PromQL query target, or a combined monitoring member.
content.jsonScript.targets[].dql string The actual execution query; qtype determines the syntax.
content.jsonScript.targets[].qtype string Usually dql/promql; historically may be represented by queryType.
content.jsonScript.targets[].queryType string Historical query syntax marker.
content.jsonScript.targets[].alias string Regular public plugins usually require Result; combined monitoring uses member aliases.
content.jsonScript.targets[].monitorCheckerId string Only for combined monitoring; the associated member UUID.
content.jsonScript.targets[].groupBy array<string> Additional trigger dimensions for combined members.
content.jsonScript.targets[].groupBy[] string Field name.
content.jsonScript.targetWorkspaceUUIDs array<string> Saved set of multi-source inputs supported by the template; a non-empty set takes precedence over the singular; the actual execution spaces created depend on crontabInfo.multiWsCrontabInfo and may be reduced due to authorization failures.
content.jsonScript.targetWorkspaceUUIDs[] string A single target workspace UUID.
content.jsonScript.targets[].extraOptions object Query options saved or constructed at runtime; not a complete guarantee of current authorization, and the list echo should not be directly treated as new query authorization.
content.jsonScript.targets[].extraOptions.workspace_uuids array<string> Candidate execution spaces saved or resolved by this list; may contain historical values; not guaranteed to be all currently authorized.
content.jsonScript.targets[].extraOptions.workspace_uuids[] string A single saved or candidate workspace UUID; verify the current authorization.
content.jsonScript.targets[].extraOptions.index_list array<object> Data domain/index candidate ranges saved or resolved by this list; may be historical values; cannot serve as a guarantee of complete current authorization.
content.jsonScript.targets[].extraOptions.index_list[].workspace_uuid string Source workspace UUID.
content.jsonScript.targets[].extraOptions.index_list[].namespace string Query namespace.
content.jsonScript.targets[].extraOptions.index_list[].index_name string Allowed index name; may be default for non-log data.
content.jsonScript.targets[].extraOptions.index_list[].expr_name string Expression subquery name; may be omitted.
content.jsonScript.targets[].conditions object or string Additional query filters; read according to the saved structure; do not assume a uniform type.
content.jsonScript.groupBy[] string Trigger dimension field.
content.jsonScript.checkFuncs[] object Compatibility check function information.
content.jsonScript.checkFuncs[].funcId string Function ID.
content.jsonScript.checkFuncs[].kwargs object Function-specific parameters; not generic input for all algorithms.
content.jsonScript.checkFuncs[].kwargs. JSON Interpreted according to the corresponding function documentation.
content.jsonScript.channels[] string Incident channel UUID.
content.jsonScript.atAccounts[] string Identity identifier mentioned with @ in notifications; may historically be an email.
content.jsonScript.atNoDataAccounts[] string No-data notification @ targets.
content.jsonScript.checkerOpt.rules[] object Sets trigger and recovery conditions by level.
content.jsonScript.checkerOpt.rules[].status string fatal/critical/error/warning/info/ok/ALL, etc., interpreted by detection type.
content.jsonScript.checkerOpt.rules[].conditionLogic string and/or; combination of multiple conditions.
content.jsonScript.checkerOpt.rules[].matchTimes integer Number of consecutive matches; used with openMatchTimes.
content.jsonScript.checkerOpt.rules[].conditions array<object> Trigger conditions.
content.jsonScript.checkerOpt.rules[].okConditions array<object> Tiered recovery conditions; may be omitted.
content.jsonScript.checkerOpt.rules[].conditions[].alias string Corresponding query target alias.
content.jsonScript.checkerOpt.rules[].conditions[].operator string Condition operator; according to the supported set for the detection type.
content.jsonScript.checkerOpt.rules[].conditions[].operands array Comparison value array; preserves number/string types.
content.jsonScript.checkerOpt.rules[].conditions[].operands[] string / number A single comparison value.
content.jsonScript.checkerOpt.rules[].okConditions[].alias string Corresponding query target alias.
content.jsonScript.checkerOpt.rules[].okConditions[].operator string Condition operator; according to the supported set for the detection type.
content.jsonScript.checkerOpt.rules[].okConditions[].operands array Comparison value array; preserves number/string types.
content.jsonScript.checkerOpt.rules[].okConditions[].operands[] string / number A single comparison value.
content.jsonScript.name string Compatibility name; a non-empty title is copied/overrides; used as the import name fallback when title is absent.
content.jsonScript.fixedCrontab string Retained compatibility fixed Cron; actual execution depends on crontabInfo; do not conflict with every/customCrontab.
content.extend.isNeedCreateIssue boolean Whether to create Issues based on anomalies.
content.extend.issueLevelUUID string Historical Issue level identifier; may no longer be valid.
content.extend.issueDfStatus array<string> Anomaly statuses that trigger Issues.
content.extend.issueDfStatus[] string fatal/critical/error/warning/nodata.
content.extend.manager array<string> Resolved owner targets.
content.extend.manager[] string Target identifiers such as members/teams.
content.extend.incidentsTags array<string> Incident association tag names.
content.extend.incidentsTags[] string A single tag name.
content.extend.faultMappingMode string custom/existing; the current Incident level mapping method.
content.extend.levelMappingUUID string Level mapping UUID for existing.
content.extend.bindIncidentsInfo array<object> Custom level mapping rows.
content.extend.bindIncidentsInfo[].incidentsLevelUUID string Mapped Issue level UUID.
content.extend.bindIncidentsInfo[].incidentsDfStatus array<string> Mapped anomaly status array.
content.extend.bindIncidentsInfo[].incidentsDfStatus[] string A single anomaly status.
content.extend.smartMonitor object V2 source and current version metadata.
content.extend.smartMonitor.source string ai/builtin source.
content.extend.smartMonitor.engineVersion integer Usually 2 for V2.
content.extend.smartMonitor.configVersion integer V2 configuration version.
content.extend.smartMonitor.category string Smart monitoring category.
content.extend.smartMonitor.prompt string AI generation prompt.
content.extend.smartMonitor.templateId string Built-in template identifier.
content.extend.smartMonitor.templateVersion string Built-in template version.
content.extend.smartMonitor.generationRunId string Generation process trace identifier; may be omitted.
content.tagInfo array<object> Tag summary for the successfully created rule; actual scope conflicts may be skipped.
content.tagInfo[].id string Tag UUID compatibility id.
content.tagInfo[].uuid string Tag UUID.
content.tagInfo[].name string Name.
content.tagInfo[].scope array<string> Normalized scope.
content.tagInfo[].scope[] string A single scope.
content.dashboardUUID string Resolved dashboard association; may be omitted.
content.skippedTags array<object> Skip summary when scope conflicts occur in the resource tag import context; may be omitted; a successful rule does not guarantee that 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; may be omitted.
content.monitorName string Group name after replacement; returned conditionally.
content.declaration object Public declaration.
{
  "code": 200,
  "content": {
    "id": 100,
    "uuid": "rul_checker_example",
    "workspaceUUID": "wksp_example",
    "monitorUUID": "monitor_example",
    "type": "trigger",
    "refKey": "",
    "secret": "",
    "jsonScript": {
      "type": "simpleCheck",
      "title": "Production CPU Threshold",
      "name": "Production CPU Threshold",
      "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": "manual",
    "isLocked": 0,
    "openPermissionSet": false,
    "permissionSet": [],
    "status": 0,
    "creator": "wsak_example",
    "updator": "wsak_example",
    "createAt": 1785427200,
    "updateAt": 1785427300,
    "deleteAt": -1,
    "tagInfo": [],
    "declaration": {},
    "monitorName": "default"
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

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

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Request field is missing, or the field value violates the declared validation conditions Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Invalid request JSON syntax Request JSON format error Fix the JSON according to content.reason, line, and column.
404 ft.NotFoundRuleInspector The target non-deleted rule does not exist in the current workspace Specified rule/checker not found Obtain a valid UUID from the corresponding list.
404 ft.NotFoundCheckerRule The target does not exist concurrently during replacement Specified monitor not found Read the target again.
403 ft.ForbiddenCheckerOperation No operation permission for the target regular rule You do not have operation permission for monitor [{}] Execute as an allowed subject.
403 ft.ForbiddenSmartCheckerOperation No operation permission for the target smart/AI rule You do not have operation permission for smart monitor [{}] Check the custom permission subjects.
409 ft.SmartMonitorVersionConflict The V2 target version does not match checker.configVersion Smart monitor configuration version conflict Re-read the current version and merge the template before submitting.
406 ft.InvalidParameterValidation noDataAction=noDataEventRepeat but noDataInterval is missing/not a positive integer The value of {} is invalid; current value: {} Explicitly provide a positive integer seconds duration window for supported detection types.
400 ft.ErrorContinuousTriggerCfgCount openMatchTimes=true and any matchTimes is not in 1..100 The number of consecutive trigger configurations should be {} Adjust the consecutive count to 1..100; do not use this field when disabled.
406 ft.IllegalMutationParameters Advanced mutation precondition threshold.status=true but value is not a number (including null) Trigger condition detection value validation failed Provide a number consistent with the result units, or disable the precondition.
403 ft.ForbiddenQuery When parsing the detection DQL, the caller identity lacks query permission for the corresponding namespace You do not have permission for {} Configure the required data domain query permissions for the current API Key/identity, not just monitor configuration permissions.
406 ft.DqlParseError The target query, eval subexpression, or DQL in the V2 YAML fails during permission/index parsing dql parser parsing failed: {} Fix the real query syntax and namespace and retry; this is not equivalent to having executed the query.
400 ft.JsonFormatError The top level of the JSON Body is not an object, e.g. an array/string Some json file format errors Submit a JSON object as in the example; do not submit checkers or event arrays directly.
400 ft.repeatCheckerSecret The external event secret is already used by any rule, including other workspaces/historical records The external event monitor secret already exists Use a globally unique random secret; for modification, first check its own original secret.
400 ft.ParamsValidateError Business parameters such as queryType, data wait, and AI prompt/reference/budget fields are invalid Parameter validation failed: {} Fix according to the specific message field path; do not leave the AI prompt blank.
406 ft.InvalidParameter The event message/noDataMessage is not a string, or business fields such as anomaly level mapping do not match Parameter {} is invalid Check the specific field and valid sources.
406 ft.InvalidParameterV2 The checked event template has invalid Jinja syntax The value {} of parameter {} is invalid Fix according to content.field/line/reason; this does not mean unknown template variables are necessarily valid.
400 ft.InvalidAlertPolicyUUID The target alert policy after name resolution has become invalid/been deleted concurrently during modification validation Invalid alert policy UUID Verify the target policy name resolution and the currently valid policy, and handle after re-reading; this Body does not pass alertPolicyUUIDs directly.
400 ft.UnsupportExternalEmail The @ target contains an external email in free/Free Plan versions Free Plan workspace; external email is not supported as a notification target Use a valid identity in this workspace or confirm that the version supports it.
406 ft.UnsupportRuleType The detection plugin type is not supported Unsupported rule type: {} Use the supported types and corresponding structures on this page.
406 ft.UnsupportCheckUnit The every unit of the detection frequency is not supported Illegal check frequency unit; supported unit list: {} Use a positive integer + s/m/h.
406 ft.CheckFrequencyExceedsMaximum The regular detection frequency exceeds 24h Check frequency exceeds the maximum Shorten the frequency; V2 uses a fixed 10m.
406 ft.MissingCheckFreqFixedCrontab Regular detection has no every/customCrontab No check frequency specified/no fixedCrontab specified Explicitly provide one valid frequency.
400 ft.CrontabCheckError The custom Cron syntax or seconds field is invalid Scheduled task crontab validation failed Fix the complete 5/6-field expression.
400 ft.CrontabCheckRangeError The seconds-step custom Cron is less than 20 seconds The time must be greater than or equal to {} seconds Use a step of at least 20 seconds or an appropriate minute frequency.
406 ft.InvalidInterval For regular checks with targets, interval is not an integer or is not in 1..2592000 seconds interval is invalid Provide a valid window in seconds.
406 ft.CheckObjectTargetAliasError A regular plugin target's non-empty alias is not Result The alias of the detection target DQL is incorrect Use Result; combined members follow the combination protocol separately.
406 ft.CheckObjectNameRepeat Duplicate target alias Duplicate alias of detection targets Use an applicable and unique alias for each target.
400 ft.UnsupportTriggerFields The corresponding type does not support trigger fields such as Info event conditions Unsupported trigger fields: {} Remove inapplicable fields and configure only for supported types.
400 ft.ErrorCombinedCheckers A combined member contains an incompatible custom Cron Some monitors use custom frequencies; combined monitoring monitors do not support custom frequencies Adjust the member frequencies or split the combination first.
400 ft.ErrorCombinedCrontab A rule referenced by a combination is changed to an incompatible custom Cron There is an associated combined monitor; combined monitoring monitors do not support custom frequencies Check the combination references and choose a compatible frequency.
400 ft.ErrorFieldCheck The combination is missing conditionally required fields such as combineExpr Validation of field {} failed Complete the combination expression and member definitions.
400 ft.InvalidIssueDfStatus The Issue mapping contains a disallowed anomaly status Invalid event level {} Use only fatal/critical/error/warning/nodata.
400 ft.FiledCreateTrigger The new schedule did not return a valid id Failed to create trigger configuration; please retry First check whether the rule/schedule already exists, and keep the traceId for troubleshooting.
400 ft.OuterFuncFailed The scheduling service returned a business failure External function call failed Check the configuration and existing schedules and retry.
400 ft.SameSetTraggerExists The scheduling service considers an identical schedule to already exist A trigger with the same configuration already exists Check the existing rules and do not add duplicates.
500 ft.InternalServerError Uncaught exceptions such as regular exceptions in advanced conditions, illegal field shapes, downstream connection/timeout/invalid JSON, or database or post-submit cache/task dispatch failures Internal error First read back the rule, status, and associations; a partial commit may already exist; keep the traceId and handle the failure stage specifically.
400 ft.ErrorRecoveryConditionOperator The tiered recovery trigger condition is not a supported one-sided comparison of >/>=/</<= 恢复条件操作符仅支持>,<,>=,'<=' Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries.
406 ft.ErrorLessThanOrEqualOperator When the trigger is >, recovery does not satisfy ≤ and a valid boundary The value of the recovery condition must be less than or equal to the value of the trigger condition Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries.
406 ft.ErrorGreaterThanOrEqualOperator When the trigger is <, recovery does not satisfy ≥ and a valid boundary The value of the recovery condition must be greater than or equal to the value of the trigger condition Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries.
406 ft.ErrorLessThanOperator When the trigger is ≥, recovery does not satisfy < and a valid boundary The value of the recovery condition must be less than the value of the trigger condition Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries.
406 ft.ErrorGreaterThanOperator When the trigger is ≤, recovery does not satisfy > and a valid boundary The value of the recovery condition must be greater than the value of the trigger condition Modify okConditions according to the opposite direction of trigger and recovery and valid numeric boundaries.
400 ft.CheckerRepeatNames The name after replacement duplicates another rule in the same category group Duplicate monitor name Keep the target's original name or use a unique new name.
400 ft.ForGroupNameRepeat A duplicate name/concurrent name lock conflict occurs when replacement creates a new group by monitorName Duplicate group name Check the group list and the target's current configuration to avoid creating duplicates.
406 ft.CheckerAuthorizationVerificationFailed The replacement multi-source array has no valid authorized source to create a schedule Cross-workspace authorization verification failed; please confirm whether authorized: {} Re-check the source authorization and read back the old/new configuration and actual scheduling scope.

Feedback

Is this page helpful?