Skip to content

Modify Monitor



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

Overview

Updates the monitor configuration and scheduling as a whole.

Prerequisites and Usage Steps

First, use get to back up the complete configuration and current version. This endpoint performs a full replacement, not a partial patch: if status is omitted, it defaults to enabled; if tags/permissions are omitted, they can be cleared; if dashboardUUID is omitted, the reference is removed; alertPolicyUUIDs is replaced only when explicitly provided. The public extend_format changes the echo structure, so the required incident associations and echo fields should be fully populated rather than relying on omitted fields being retained. V2 must include the current configVersion; on conflict, re-read and merge. You cannot switch between V2 and the legacy execution version; if prompt changes, you must regenerate.

A modification updates scheduling synchronously and saves it, then submits a reference synchronization task (the current update task does not recalculate SLO based on this); the mute name and policy cache are actually updated asynchronously in a separate process. Regular history may retain the previous version, AI semantic monitoring does not write to the legacy history table, and V2 maintains its own version history.

API calls, scheduling, database, tags/associations, and cache are not one cross-service atomic transaction; on error, the main rule/schedule may already exist. Before retrying, verify uuid, status, and final associations from the list/get to avoid duplicate tasks. External events use the generated/saved secret + subUri to configure the Webhook and do not trigger events in this request. Smart Monitoring V2 configuration uses a fixed 10-minute schedule and synchronous YAML validation; AI semantic references are still constrained by data permissions, and budget limits cannot be regarded as actual consumption commitments.

Path Parameters

Parameter Type Required Description
rule_uuid string Y Monitor rule UUID, not a group, history UUID, or version number.
Example: rul_checker_example
How to obtain or fill: Obtain this workspace UUID from the corresponding list/get.

Request Headers

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

Body Request Parameters

Parameter Type Required Description
tags[*] string A single name string, not a UUID.
Example: production
How to obtain or fill: Select a single business tag name applicable to the monitor/all scope from the tag list.
alertPolicyUUIDs[*] string An array item.
Example: altpl_example
How to obtain or fill: Obtain the uuid from the alert policy list.
permissionSet[*] string A single operation principal.
Example: wsAdmin
How to obtain or fill: Obtain from roles/members/teams in this workspace.
jsonScript.targets[*] json Use the lower-level 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 composite member.
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 validate against actual data in the target workspace.
jsonScript.targets[*].qtype string Optional, usually dql.
Example: dql
How to obtain or fill: Select dql for DQL, promql for PromQL.
jsonScript.targets[*].alias string For regular plugins, only Result or empty is accepted and it must be unique.
Example: Result
How to obtain or fill: Use Result for a regular single query; assign A/B, etc. to composite members.
jsonScript.targets[*].monitorCheckerId string Only for combinedCheck; members cannot be rules with Cron conflicts.
Example: rul_checker_example
How to obtain or fill: Obtain an available member UUID from the monitor list in the current workspace.
jsonScript.groupBy[*] string A single dimension.
Example: host
How to obtain or fill: Actual DQL BY field.
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.
jsonScript.checkFuncs[*].funcId string Compatible function identifier.
Example: example.func
How to obtain or fill: A real available function ID.
jsonScript.checkFuncs[*].kwargs json Dynamic object with no uniform required subkeys.
Example: {}
How to obtain or fill: The function-specific parameter structure.
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.
jsonScript.checkerOpt.rules[*] json Different algorithms can use different condition structures.
Example: {"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}
How to obtain or fill: Condition for a single alert level.
jsonScript.checkerOpt.rules[*].status string Allowed set for common plugins; use according to the actual check type.
Example: warning
How to obtain or fill: Select fatal/critical/error/warning/info/ok/ALL by event level.
jsonScript.checkerOpt.rules[*].conditionLogic string Required for common conditions.
Example: and
How to obtain or fill: and/or.
jsonScript.checkerOpt.rules[*].conditions array Required array for common conditions.
Example: [{"alias": "Result", "operator": "<", "operands": [10]}]
How to obtain or fill: Construct based on the real query result and threshold.
jsonScript.checkerOpt.rules[*].okConditions array Optional, used with openOkConditions; threshold comparison direction must be opposite to trigger and boundaries valid.
Example: [{"alias": "Result", "operator": ">=", "operands": [20]}]
How to obtain or fill: Set independent boundaries for graded recovery.
jsonScript.checkerOpt.rules[*].matchTimes integer Optional, used with openMatchTimes; when enabled defaults to 1, actual range 1..100, exceeding returns ErrorContinuousTriggerCfgCount.
Example: 2
How to obtain or fill: How many consecutive anomalies the business allows before triggering.
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.
jsonScript.checkerOpt.rules[*].conditions[*].alias string Consistent with the target alias.
Example: Result
How to obtain or fill: Configure according to the same query target, data unit, and business boundary.
jsonScript.checkerOpt.rules[*].conditions[*].operator string Common operators =, !=, >, >=, <, <=, between, notBetween, like, notLike, in, notIn, regExp, notRegExp, isTrue, isFalse, likeTrue, likeFalse; specific algorithms may narrow.
Example: <
How to obtain or fill: Configure according to the same query target, data unit, and business boundary.
jsonScript.checkerOpt.rules[*].conditions[*].operands array String/numeric array, preserve actual result units; do not pass booleans/objects; conditions with empty values may be filtered.
Example: [10]
How to obtain or fill: Configure according to the same query target, data unit, and business boundary.
jsonScript.checkerOpt.rules[*].conditions[*].operands[*] JSON A single threshold; for numeric comparison provide a JSON number; for regex/set rules provide a string per actual rule.
Example: 10
How to obtain or fill: Configure according to the same query target, data unit, and business boundary.
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.
jsonScript.checkerOpt.rules[*].okConditions[*].alias string Consistent with the target alias.
Example: Result
How to obtain or fill: Configure according to the same query target, data unit, and business boundary.
jsonScript.checkerOpt.rules[*].okConditions[*].operator string Common operators =, !=, >, >=, <, <=, between, notBetween, like, notLike, in, notIn, regExp, notRegExp, isTrue, isFalse, likeTrue, likeFalse; specific algorithms may narrow.
Example: <
How to obtain or fill: Configure according to the same query target, data unit, and business boundary.
jsonScript.checkerOpt.rules[*].okConditions[*].operands array String/numeric array, preserve actual result units; do not pass booleans/objects; conditions with empty values may be filtered.
Example: [10]
How to obtain or fill: Configure according to the same query target, data unit, and business boundary.
jsonScript.checkerOpt.rules[*].okConditions[*].operands[*] JSON A single threshold; for numeric comparison provide a JSON number; for regex/set rules provide a string per actual rule.
Example: 10
How to obtain or fill: Configure according to the same query target, data unit, and business boundary.
jsonScript.channels[*] string A single valid value in the array.
Example: chan_example
How to obtain or fill: Use the channel or account identifier described in the parent.
jsonScript.atAccounts[*] string A single valid value in the array.
Example: acnt_example
How to obtain or fill: Use the channel or account identifier described in the parent.
jsonScript.atNoDataAccounts[*] string A single valid value in the array.
Example: acnt_example
How to obtain or fill: Use the channel or account identifier described in the parent.
jsonScript.checkerOpt.infoEventCondition.operands[*] JSON String or numeric.
Example: 60
How to obtain or fill: Comparison value with the same unit as the query Result.
jsonScript.checkerOpt.rules[*].strength integer Legacy type only, legacy mutationsCheck strength 1/2/3. New advanced types use their corresponding checkerOpt fields; do not mix.
Example: 2
How to obtain or fill: Read from the original details when maintaining existing legacy algorithms.
jsonScript.checkerOpt.rules[*].direction string Legacy type only, legacy mutationsCheck/rangeCheck direction up/down/both. New advanced types use their corresponding checkerOpt fields; do not mix.
Example: both
How to obtain or fill: Read from the original details when maintaining existing legacy algorithms.
jsonScript.checkerOpt.rules[*].checkCount integer Legacy type only, legacy mutation detection check count, integer. New advanced types use their corresponding checkerOpt fields; do not mix.
Example: 3
How to obtain or fill: Read from the original details when maintaining existing legacy algorithms.
jsonScript.checkerOpt.rules[*].periodNum integer Legacy type only, legacy mutation/range period count, integer. New advanced types use their corresponding checkerOpt fields; do not mix.
Example: 3
How to obtain or fill: Read from the original details when maintaining existing legacy algorithms.
extend.isNeedCreateIssue boolean Default false; when enabled, also validates channel/owner/status/level mapping.
Example: false
How to obtain or fill: true when events should automatically generate Issues.
extend.issueLevelUUID string Legacy compatible level; invalid 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 the valid Issue level list.
extend.issueDfStatus array Elements limited to fatal/critical/error/warning/nodata.
Example: ["critical", "error"]
How to obtain or fill: Select which anomaly levels trigger Issues.
extend.issueDfStatus[*] string A single allowed status.
Example: error
How to obtain or fill: Actual alert level.
extend.manager array The owner list is normalized to specific targets; on-call personnel are resolved according to the workspace time zone's calendar for the current day, and will not automatically change with shift rotations after this write.
Example: ["acnt_example"]
How to obtain or fill: Obtain owner targets from workspace members/teams/notification schedules.
extend.manager[*] string A single owner; verify the source is valid first.
Example: acnt_example
How to obtain or fill: Member/team or supported on-call target identifier for the day.
extend.incidentsTags array Used for Issue association tags; tags may be created/validated according to rules.
Example: ["production"]
How to obtain or fill: Obtain from tag names applicable to monitor.
extend.incidentsTags[*] string Not a UUID.
Example: production
How to obtain or fill: Actual business tag name.
extend.faultMappingMode string Defaults to custom when Issue is enabled; existing requires a valid levelMappingUUID.
Example: custom
How to obtain or fill: custom for custom mapping, existing for referencing an existing mapping.
extend.levelMappingUUID string Required valid UUID when existing; the custom branch removes this reference field but retains historical custom rows.
Example: islm_example
How to obtain or fill: Obtain from available incident level mapping configuration in this workspace.
extend.bindIncidentsInfo array custom mapping rows; when switching back to custom and omitting this key, the controller may retain old rows, but the public extend full replacement still requires caution.
Example: [{"incidentsLevelUUID": "issl_example", "incidentsDfStatus": ["error"]}]
How to obtain or fill: Construct based on event level to Issue level.
extend.bindIncidentsInfo[*] json A mapping object.
Example: {"incidentsLevelUUID": "issl_example", "incidentsDfStatus": ["error"]}
How to obtain or fill: Single status-to-level mapping.
extend.bindIncidentsInfo[*].incidentsLevelUUID string Invalid level may be cleared.
Example: issl_example
How to obtain or fill: Obtain from the valid Issue level list.
extend.bindIncidentsInfo[*].incidentsDfStatus array Allowed status array.
Example: ["error"]
How to obtain or fill: Select from fatal/critical/error/warning/nodata.
extend.bindIncidentsInfo[*].incidentsDfStatus[*] string A single allowed value.
Example: error
How to obtain or fill: Actual event level.
extend.smartMonitor.source string ai/builtin; new OpenAPI can directly pass a complete valid configuration 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 a site.
extend.smartMonitor.category string Source category; cannot be changed in 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 a site.
extend.smartMonitor.prompt string AI prompt; if the existing prompt changes, candidates need to be regenerated.
Example: 检测生产主机异常。
How to obtain or fill: Obtain from the corresponding generation result/built-in template metadata; do not invent a real template ID for a site.
extend.smartMonitor.templateId string builtin source template identifier; cannot be changed on 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 a site.
extend.smartMonitor.templateVersion string builtin template version; cannot be changed on 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 a site.
extend.smartMonitor json V2 only; the server clears forged execution/version status and writes engineVersion/configVersion; retains allowed fields; legacy source category is immutable.
Example: {"source": "ai", "category": "custom", "prompt": "检测生产主机异常。"}
How to obtain or fill: Obtain source metadata from the generation or template selection flow.
extend.querylist array Optional; when present, retained and takes precedence over queryType auto-injection; it does not replace the actual DQL in targets; an incorrect echo structure cannot prove detection is normal.
Example: []
How to obtain or fill: For existing client echo configuration, take the complete array directly from the original details.
extend.querylist[*] json Dynamic editor object, saved by client version; actual detection only uses 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.
extend.querylist[*].qtype string Does not automatically convert the execution query.
Example: dql
How to obtain or fill: dql/promql query type echo.
extend.querylist[*].query json May contain simple/dql mode details; cannot replace targets.
Example: {"q": "M::cpu:(avg(usage_idle)) BY host"}
How to obtain or fill: Client-generated query editing structure.
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 actual targets query text.
configVersion integer Legacy versions may omit; V2 modification requires the current positive integer version; stale returns HTTP 409 ft.SmartMonitorVersionConflict; new creation does not customize the final version.
$minValue: 1
Example: 1
How to obtain or fill: Obtain from current V2 details content.configVersion.
generationId string Optional candidate credential, bound to workspace/identity/target rule and prompt; when AI V2 carries it, it must match a valid candidate. Trusted OpenAPI compatibility creation may omit credentials; changing an existing prompt requires regeneration before carrying it; cannot forge. Not a configuration UUID or execution task ID.
Example: GENERATION-ID
How to obtain or fill: Obtain from the X-Smart-Monitor-Generation-Id response of Smart Monitoring generation.
queryType string Optional default dql; only simple/dql supported; when extend.querylist is explicitly provided, it takes precedence and the injection semantics are ignored. If simple parsing fails, fall back to dql without changing the actual targets query.
Allowed null: False
Example: dql
How to obtain or fill: The original execution query is in jsonScript.targets[].dql; this field only controls client editor echo conversion.
extend json Optional; null is normalized to {} by OpenAPI. Public create/update injects rules/querylist; an explicit object is handled as a whole configuration, not deep-merged. If modification omits it entirely, it is still written after echo normalization, so you cannot rely on the old extend being automatically and fully retained; important fields need to be populated.
Allowed null: True
Example: {}
How to obtain or fill: Incident associations and client echo for regular rules, fill in per nested fields below; obtain from current details when editing.
status integer Optional default 0. Omitting on modification is treated as enabled and does not preserve disabled state; for a disabled rule where only configuration changes, explicitly set status=2.
Allowed null: False
Allowed values: [0, 2]
Example: 0
How to obtain or fill: 0 enabled, 2 disabled.
alertPolicyUUIDs array Optional. On create, omitted [] means no binding; on modify, omitted keeps the original association, explicit [] clears it. Validation checks that the entire input set is available, not silent filtering; a disabled policy does not mean notifications can currently be sent.
Allowed null: False
Example: ["altpl_example"]
How to obtain or fill: Obtain non-deleted policy UUIDs in this workspace from the Alert Policy list.
dashboardUUID string Optional; when adding an association, validity is checked. Omitting or passing an empty string on modify removes the existing dashboard reference, not keeps it.
Allowed null: False
Example: dsbd_example
How to obtain or fill: Obtain a valid object UUID in this workspace from the Dashboard list.
tags array Optional name array, not UUIDs. On create, omitted [] means no tags; on modify, omitted updates references as [] and may clear old tags. Validated by tag scope; not matching monitor scope may return TagScopeMismatch.
Allowed null: False
Example: ["production"]
How to obtain or fill: Obtain tag names applicable to monitor scope from the Tag list; if a new name is needed, create it according to tag management rules.
secret string Optional; if not provided for external events, the server may generate one. Globally unique (including other workspaces/history) rather than only in the current workspace; omitting or passing an empty string on modify keeps the original secret, only a non-empty value replaces it and validates global uniqueness; changing it affects the Webhook address. Do not write real secrets to logs or public documentation.
Allowed null: False
Example: SECRET-PLACEHOLDER
How to obtain or fill: Used only by OuterEventChecker; generate an unguessable unique random identifier; keep the Webhook address from trusted details.
jsonScript json Business-wise a complete object must be provided, although the parent declares it optional. Modification is a full replacement; V2 and AI semantic configuration differ from regular detection; do not use the entire get response as Body. Use only fields declared on this page; do not add undeclared keys such as internal fixed Cron/multi-workspace arrays.
Allowed null: False
Example: {"type": "simpleCheck", "title": "生产CPU阈值", "name": "生产CPU阈值", "every": "1m", "interval": 300, "groupBy": ["host"], "targets": [{"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}], "checkerOpt": {"rules": [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]}}
How to obtain or fill: First select a detection type supported on this page, then fill in the complete detection/template/query/trigger definition.
jsonScript.targetWorkspaceUUID string Optional, default current workspace. Applies to cross-workspace query consumption for simpleCheck, seniorMutationsCheck, seniorRangeCheck, seniorRangeV2Check, outlierCheck; writing only generates candidate index_list and validates the caller identity's data domain permissions; successful save does not mean source authorization has been fully reviewed or data is queryable; confirm actual target authorization before calling. V2 prohibits; use YAML query within an authorized workspace.
Allowed null: False
Allowed empty string: False
Example: wksp_source_example
How to obtain or fill: Obtain a single source workspace from valid Cross-workspace authorization.
jsonScript.type string Conditionally required Required plugin identifier; legacy compatibility such as mutationsCheck/rangeCheck/seniorCheck and old smart* still need to be maintained per original config; do not replace with entity type. Specific fields apply only to their type and cannot be mixed. V2 and legacy cannot be switched.
Allowed null: False
Example: simpleCheck
How to obtain or fill: Select by detection method; regular simpleCheck thresholds, apmCheck/rumCheck/processCheck/cloudDialCheck/networkCheck/objectCheck; advanced seniorMutationsCheck/seniorRangeCheck/seniorRangeV2Check/outlierCheck; combinedCheck composition, OuterEventChecker external events, programmableCheck programmable; Smart V2 smartMonitorV2Check, AI semantic aiMonitor (same name as entity type but different field hierarchy).
jsonScript.windowDql string Optional compatible window query text, passed through as extra event material, does not replace the actual detection query in targets; omitted means not provided.
Allowed null: False
Example: M::cpu:(avg(usage_idle)) BY host
How to obtain or fill: Obtain from the verified original detection window display query or same-type details.
jsonScript.title string Conditionally required Required string, recommended non-empty; max 256 counted as 1 for ASCII/half-width katakana and 2 for other characters. A non-empty value is copied to the rule name and participates in duplicate-name checking; regular/self-built inspections share a duplicate-name group, Smart/AI each have their own group. Whether variables exist at template runtime requires real event acceptance.
Allowed null: False
Allowed empty string: True
Maximum length: 256
Example: 生产CPU阈值
How to obtain or fill: Defined by the business for the rule/anomaly event title; detection result template variables can be used.
jsonScript.message string Event content; optional by corresponding check type; modification cannot treat omission as retention, the full configuration must be populated. Optional; omitted means no independent text; current common construction mainly uses title/message and no-data text; legacy recover-specific fields do not guarantee separate coverage for every detection. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated.
Allowed null: False
Allowed empty string: True
Example: 主机 {{host}} 检测结果 {{Result}}
How to obtain or fill: Write the event/notification template based on actual detection dimensions and result variables; it can be reused from verified events of the same type.
jsonScript.recoverTitle string Output recovery event title template; optional by corresponding check type; modification cannot treat omission as retention, the full configuration must be populated. Optional; omitted means no independent text; current common construction mainly uses title/message and no-data text; legacy recover-specific fields do not guarantee separate coverage for every detection. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated.
Allowed null: False
Allowed empty string: True
Example: 主机 {{host}} 检测结果 {{Result}}
How to obtain or fill: Write the event/notification template based on actual detection dimensions and result variables; it can be reused from verified events of the same type.
jsonScript.recoverMessage string Output recovery event message template; optional by corresponding check type; modification cannot treat omission as retention, the full configuration must be populated. Optional; omitted means no independent text; current common construction mainly uses title/message and no-data text; legacy recover-specific fields do not guarantee separate coverage for every detection. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated.
Allowed null: False
Allowed empty string: True
Example: 主机 {{host}} 检测结果 {{Result}}
How to obtain or fill: Write the event/notification template based on actual detection dimensions and result variables; it can be reused from verified events of the same type.
jsonScript.noDataTitle string Output no-data event title template; optional by corresponding check type; modification cannot treat omission as retention, the full configuration must be populated. Optional; omitted means no independent text; current common construction mainly uses title/message and no-data text; legacy recover-specific fields do not guarantee separate coverage for every detection. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated.
Allowed null: False
Allowed empty string: True
Example: 主机 {{host}} 检测结果 {{Result}}
How to obtain or fill: Write the event/notification template based on actual detection dimensions and result variables; it can be reused from verified events of the same type.
jsonScript.noDataMessage string Output no-data event message template; optional by corresponding check type; modification cannot treat omission as retention, the full configuration must be populated. Optional; omitted means no independent text; current common construction mainly uses title/message and no-data text; legacy recover-specific fields do not guarantee separate coverage for every detection. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated.
Allowed null: False
Allowed empty string: True
Example: 主机 {{host}} 检测结果 {{Result}}
How to obtain or fill: Write the event/notification template based on actual detection dimensions and result variables; it can be reused from verified events of the same type.
jsonScript.openNotificationMessage boolean Optional default false; when disabled, uses the corresponding event content; when enabled, also provide the corresponding notificationMessage/noDataNotificationMessage.
Allowed null: False
Example: false
How to obtain or fill: true when notification-specific content is needed separately.
jsonScript.notificationMessage string Event notification content; optional by corresponding check type; modification cannot treat omission as retention, the full configuration must be populated. Optional; omitted means no independent text; current common construction mainly uses title/message and no-data text; legacy recover-specific fields do not guarantee separate coverage for every detection. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated.
Allowed null: False
Allowed empty string: True
Example: 主机 {{host}} 检测结果 {{Result}}
How to obtain or fill: Write the event/notification template based on actual detection dimensions and result variables; it can be reused from verified events of the same type.
jsonScript.openNoDataNotificationMessage boolean Optional default false; when disabled, uses the corresponding event content; when enabled, also provide the corresponding notificationMessage/noDataNotificationMessage.
Allowed null: False
Example: false
How to obtain or fill: true when notification-specific content is needed separately.
jsonScript.noDataNotificationMessage string No-data gap event notification content; optional by corresponding check type; modification cannot treat omission as retention, the full configuration must be populated. Optional; omitted means no independent text; current common construction mainly uses title/message and no-data text; legacy recover-specific fields do not guarantee separate coverage for every detection. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated.
Allowed null: False
Allowed empty string: True
Example: 主机 {{host}} 检测结果 {{Result}}
How to obtain or fill: Write the event/notification template based on actual detection dimensions and result variables; it can be reused from verified events of the same type.
jsonScript.noDataRecoverTitle string Output no-data recovery upload event title template; optional by corresponding check type; modification cannot treat omission as retention, the full configuration must be populated. Optional; omitted means no independent text; current common construction mainly uses title/message and no-data text; legacy recover-specific fields do not guarantee separate coverage for every detection. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated.
Allowed null: False
Allowed empty string: True
Example: 主机 {{host}} 检测结果 {{Result}}
How to obtain or fill: Write the event/notification template based on actual detection dimensions and result variables; it can be reused from verified events of the same type.
jsonScript.noDataRecoverMessage string Output no-data recovery upload event message template; optional by corresponding check type; modification cannot treat omission as retention, the full configuration must be populated. Optional; omitted means no independent text; current common construction mainly uses title/message and no-data text; legacy recover-specific fields do not guarantee separate coverage for every detection. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated.
Allowed null: False
Allowed empty string: True
Example: 主机 {{host}} 检测结果 {{Result}}
How to obtain or fill: Write the event/notification template based on actual detection dimensions and result variables; it can be reused from verified events of the same type.
jsonScript.every string Regular common plugins require every or customCrontab; max 24h, recommended minimum 20s. Use a valid positive integer format; do not use 0/negative values or d/w; some format issues may return 500. V2 uses a fixed 10m, and the server overrides every; AI semantic uses its own detection frequency.
Allowed null: False
Example: 1m
How to obtain or fill: Select a positive integer + s/m/h according to business detection frequency, e.g. 1m, 5m, 1h.
jsonScript.customCrontab string Optional; non-empty takes precedence over every; supports 5 fields or 6 fields with seconds; the second step form must not be less than 20. Combined monitoring and combined members have custom frequency conflict restrictions; V2 prohibits. Detection time zone depends on the current workspace/service configuration; do not use a time zone name in the string to replace the field.
Allowed null: False
Example: 0 */5 * * * *
How to obtain or fill: For custom frequency, fill the complete expression according to the Cron editor.
jsonScript.delaySeconds integer Optional regular monitor data wait window, in seconds; 0 means no wait, default 0; booleans are not accepted as integers. Smart/AI do not use regular wait configuration and cannot use it to adjust smart execution delay.
Allowed null: False
Allowed values: [0, 60, 120, 180, 300, 600, 900, 1800]
Example: 60
How to obtain or fill: Select 0/60/120/180/300/600/900/1800 according to data arrival delay.
jsonScript.interval integer For regular rules with targets, requires 1..2592000 seconds (30 days); different from the every detection frequency. Combined monitoring skips this general check; V2 uses YAML query.interval/lookback.
Allowed null: False
Example: 300
How to obtain or fill: Select a positive integer number of seconds based on the time range required for detection and coordinate with actual data granularity.
jsonScript.range integer Optional by type. Current comparison window for advanced mutation, positive integer seconds. Modification should fully retain applicable settings; do not mix units.
Allowed null: False
Example: 3600
How to obtain or fill: Determine the window/offset/duration by business needs; first verify with corresponding type details and actual events.
jsonScript.range_2 integer Optional by type. Advanced mutation comparison window setting, -1 for period-over-period, 0 for periodBefore, others as the seconds window defined by the corresponding advanced detection. Modification should fully retain applicable settings; do not mix units.
Allowed null: False
Example: -1
How to obtain or fill: Determine the window/offset/duration by business needs; first verify with corresponding type details and actual events.
jsonScript.periodBefore integer Optional by type. Comparison offset seconds for advanced mutation, e.g. yesterday 86400; fill completely together with range/range_2. Modification should fully retain applicable settings; do not mix units.
Allowed null: False
Example: 86400
How to obtain or fill: Determine the window/offset/duration by business needs; first verify with corresponding type details and actual events.
jsonScript.recoverNeedPeriodCount integer Optional by type. For regular frequency, the number of consecutive recovery periods; for customCrontab, directly the recovery duration in seconds; omitted 0. Modification should fully retain applicable settings; do not mix units.
Allowed null: False
Example: 1
How to obtain or fill: Determine the window/offset/duration by business needs; first verify with corresponding type details and actual events.
jsonScript.noDataInterval integer Optional by type. No-data duration in seconds; regular frequency rounds up to whole detection periods, custom frequency uses seconds directly; repeat no-data must be a positive integer. Modification should fully retain applicable settings; do not mix units.
Allowed null: False
Example: 600
How to obtain or fill: Determine the window/offset/duration by business needs; first verify with corresponding type details and actual events.
jsonScript.noDataAction string Optional none/checkAs0/noDataEvent/noDataEventRepeat/fatalEvent/criticalEvent/errorEvent/warningEvent/okEvent/noData/recover. noDataEventRepeat only supports its applicable types and requires a positive integer noDataInterval; omitted/empty compatible values and positive duration have special legacy handling; do not rely on the default implementation to repeat alerts.
Allowed null: False
Allowed values: ['none', 'checkAs0', 'noDataEvent', 'noDataEventRepeat', 'fatalEvent', 'criticalEvent', 'errorEvent', 'warningEvent', 'okEvent', 'noData', 'recover']
Example: noDataEvent
How to obtain or fill: Select from this parameter's enum according to the business meaning of no data.
jsonScript.checkFuncs array Optional; regular thresholds do not need it; seniorCheck uses the first funcId/kwargs and does not treat all functions as generic parameters.
Allowed null: False
Example: []
How to obtain or fill: Only maintain historical check types that use this compatible custom function structure; obtain from original details/function definitions.
jsonScript.groupBy array Optional dimension name array; usually [] means no additional dimension grouping; not tag values. Combined monitoring member dimensions need to be compatible.
Allowed null: False
Example: ["host"]
How to obtain or fill: Select from grouping fields returned by the real DQL, consistent with BY dimensions.
jsonScript.targets array Regular query target array; the actual DQL/PromQL execution statement goes in dql; regular common plugin alias only accepts Result or empty and checks alias uniqueness; single target Result is recommended. Combined monitoring uses monitorCheckerId/alias to associate members; V2 prohibits targets, all in YAML.
Allowed null: False
Example: [{"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}]
How to obtain or fill: Validate the query in the same data source in the target workspace first; fields/indexes must actually exist.
jsonScript.checkerOpt json Regular rules commonly use rules; advanced types fill per corresponding algorithm, V2 uses yamlConfig, AI semantic uses userPrompt etc.; undeclared subfields are rejected by public validation; do not copy entire internal SDK parameters.
Allowed null: False
Example: {"rules": [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]}
How to obtain or fill: Select the following trigger/algorithm/AI configuration based on jsonScript.type.
jsonScript.checkerOpt.enableStreamingAggregation boolean Optional tri-state. Only controls streaming aggregation acceleration for supported types; not monitor start/stop or change DQL semantics.
Allowed null: True
Example: true
How to obtain or fill: Use true/false for an independent switch; omit or null to follow the workspace configuration.
jsonScript.checkerOpt.yamlConfig string Required only for V2, non-empty UTF8 YAML text ≤256KiB, not a JSON object or Markdown fence; structure see the YAML table on this page. Anchors/aliases/explicit tags/duplicate keys are prohibited. Modification only allows existing DQL, threshold configuration, and algorithm params; cannot change the rule set/name/execution structure; on save validates protocol/budget and parses check query data domain permissions, does not execute DQL or guarantee data exists/source authorization 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 complete valid YAML from the Generation API or built-in templates, then edit within the allowed range.
jsonScript.checkerOpt.disableLargeScaleEventProtect boolean Optional boolean. true disables large-scale event protection; default false retains protection.
Example: false
How to obtain or fill: The business confirms this alert/event handling behavior.
jsonScript.checkerOpt.script string Type-specific parameter. Programmable detection script text, using syntax supported by that type; this API does not execute a script test.
Allowed null: False
Allowed empty string: True
Example: return {}
How to obtain or fill: Check the specific algorithm meaning in the editor/original details for the current detection type.
jsonScript.checkerOpt.rules array Common rule condition array; each item has status/conditionLogic/conditions, and recovery uses okConditions. Invalid members/operator shapes may throw a common exception resulting in 500, not always 406. Conditions with empty operands are filtered before constructing the schedule; do not use it to express "all".
Allowed null: False
Example: [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]
How to obtain or fill: Construct based on the levels allowed to trigger events and the target Result.
jsonScript.checkerOpt.openOkConditions boolean Optional boolean. true enables graded recovery, default false; okConditions must satisfy trigger and recovery boundaries.
Example: false
How to obtain or fill: The business confirms this alert/event handling behavior.
jsonScript.checkerOpt.openMatchTimes boolean Optional boolean. true enables consecutive trigger matching, default false; combine with rules[].matchTimes.
Example: false
How to obtain or fill: The business confirms this alert/event handling behavior.
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: The business confirms this alert/event handling behavior.
jsonScript.checkerOpt.infoEventCondition json Optional; {} means unconditional Info. Only applies to supported types such as regular thresholds/logs/application and RUM metrics/availability/process/network/mutation/range and compatible legacy types; outlier/combined/liveness V2/change/programmable/Smart/SLO are not supported, and passing it returns UnsupportTriggerFields. A non-empty object requires complete valid alias/operator/operands.
Allowed null: False
Example: {"alias": "Result", "operator": ">=", "operands": [60]}
How to obtain or fill: Construct from the real query result and normal business threshold.
jsonScript.checkerOpt.infoEventCondition.alias string Fill in per structure inside a non-empty Info condition; corresponds to the targets alias.
Example: Result
How to obtain or fill: Consistent with the actual query target and threshold.
jsonScript.checkerOpt.infoEventCondition.operator string Fill in per structure inside a non-empty Info condition; select from the common condition operators on this page.
Example: >=
How to obtain or fill: Consistent with the actual query target and threshold.
jsonScript.checkerOpt.infoEventCondition.operands array Fill in per structure inside a non-empty Info condition; comparison value array, elements are strings/numbers; do not pass objects.
Example: [60]
How to obtain or fill: Consistent with the actual query target and threshold.
jsonScript.checkerOpt.diffMode string Type-specific parameter. Advanced mutation value difference / percent; must be explicitly provided.
Allowed values: ['value', 'percent']
Example: percent
How to obtain or fill: Check the specific algorithm meaning in the editor/original details for the current detection type.
jsonScript.checkerOpt.direction string Type-specific parameter. Advanced mutation/range up/down/both; must be explicitly provided.
Allowed values: ['up', 'down', 'both']
Example: both
How to obtain or fill: Check the specific algorithm meaning in the editor/original details for the current detection type.
jsonScript.checkerOpt.eps float Type-specific parameter. Required for outlier, numeric 0..3.0; this algorithm does not use regular rules condition validation.
Example: 0.5
How to obtain or fill: Check the specific algorithm meaning in the editor/original details for the current detection type.
jsonScript.checkerOpt.threshold json Optional object; when provided, status/operator/value are all required; status=false disables the precondition; value may be null but should be filled according to the actual algorithm meaning.
Allowed null: False
Example: {"status": false, "operator": ">", "value": 90}
How to obtain or fill: The trigger precondition for advanced mutation, determined by the actual business threshold.
jsonScript.checkerOpt.threshold.status boolean Conditionally required Required when the parent object exists; whether to enable the precondition.
Example: false
How to obtain or fill: Fill according to the advanced mutation precondition definition.
jsonScript.checkerOpt.threshold.operator string Conditionally required Required when the parent object exists; precondition comparison operator, e.g. >, per the actual advanced detection compatible set.
Example: >
How to obtain or fill: Fill according to the advanced mutation precondition definition.
jsonScript.checkerOpt.threshold.value float Conditionally required Required when the parent object exists; precondition value; status=false allows null, status=true requires numeric, otherwise IllegalMutationParameters; unit consistent with the query result.
Allowed null: True
Example: 90
How to obtain or fill: Fill according to the advanced mutation precondition definition.
jsonScript.checkerOpt.combineExpr string Type-specific parameter. Combined member alias expression; required non-empty for combined type; do not use Result instead of member aliases.
Allowed empty string: False
Example: A && B
How to obtain or fill: Check the specific algorithm meaning in the editor/original details for the current detection type.
jsonScript.checkerOpt.ignoreNodata boolean Optional boolean. Only combined monitoring true ignores no-data, default false.
Example: false
How to obtain or fill: The business confirms this alert/event handling behavior.
jsonScript.checkerOpt.confidenceInterval integer Type-specific parameter. Range V2 confidence interval 1..100, configure per actual algorithm.
Example: 90
How to obtain or fill: Check the specific algorithm meaning in the editor/original details for the current detection type.
jsonScript.checkerOpt.category string AI semantic only. AI semantic category metadata, optional string.
Allowed null: False
Example: custom
How to obtain or fill: Configure based on this workspace's AI semantic monitoring capabilities and business budget; optional items can be left to the AI service default policy.
jsonScript.checkerOpt.userPrompt string AI semantic only. Required non-empty for AI semantic, Python characters ≤20000; although empty string is declared allowed, the business does not accept blank.
Allowed null: False
Allowed empty string: True
Maximum length: 20000
Example: 分析最近5分钟生产服务错误率是否异常。
How to obtain or fill: Configure based on this workspace's AI semantic monitoring capabilities and business budget; optional items can be left to the AI service default policy.
jsonScript.checkerOpt.systemPrompt string AI semantic only. AI semantic optional; non-empty when passed, Python characters ≤20000.
Allowed null: False
Allowed empty string: True
Maximum length: 20000
Example: 结合实际查询结果判断,不臆测缺失数据。
How to obtain or fill: Configure based on this workspace's AI semantic monitoring capabilities and business budget; optional items can be left to the AI service default policy.
jsonScript.checkerOpt.mentions array AI semantic optional, default []; each item type=dql, non-empty namespace/datasource, index optional and non-empty if passed; normalized JSON serialized total length ≤20000 characters. Does not replace data query authorization.
Allowed null: False
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.
jsonScript.checkerOpt.mentions[*] object type/namespace/datasource required, index optional; only four fields declared.
Example: {"type": "dql", "namespace": "logging", "index": "default", "datasource": "nginx"}
How to obtain or fill: One DQL reference per item.
jsonScript.checkerOpt.mentions[*].type string Conditionally required Fixed dql within the reference item.
Allowed values: ['dql']
Example: dql
How to obtain or fill: Select from real data in the same target workspace.
jsonScript.checkerOpt.mentions[*].namespace string Conditionally required Real DQL namespace within the reference item, not entity type.
Allowed empty string: False
Example: logging
How to obtain or fill: Select from real data in the same target workspace.
jsonScript.checkerOpt.mentions[*].index string For log references within the reference item, fill the real index name/identifier; other types may omit.
Allowed empty string: False
Example: default
How to obtain or fill: Select from real data in the same target workspace.
jsonScript.checkerOpt.mentions[*].datasource string Conditionally required Real data source name within the reference item, e.g. log source/measurement, interpreted by namespace.
Allowed empty string: False
Example: nginx
How to obtain or fill: Select from real data in the same target workspace.
jsonScript.checkerOpt.model string AI semantic only. AI semantic optional model name; should be obtained from site-supported model configuration and must not use documentation example literals.
Allowed null: False
Example: example-model
How to obtain or fill: Configure based on this workspace's AI semantic monitoring capabilities and business budget; optional items can be left to the AI service default policy.
jsonScript.checkerOpt.contextWindowLimit integer AI semantic only. Positive integer token context limit, ≥1.
Allowed null: False
$minValue: 1
Example: 8192
How to obtain or fill: Configure based on this workspace's AI semantic monitoring capabilities and business budget; optional items can be left to the AI service default policy.
jsonScript.checkerOpt.maxChatRounds integer AI semantic only. Maximum chat rounds, integer ≥1.
Allowed null: False
$minValue: 1
Example: 3
How to obtain or fill: Configure based on this workspace's AI semantic monitoring capabilities and business budget; optional items can be left to the AI service default policy.
jsonScript.checkerOpt.maxDQLQueries integer AI semantic only. Maximum DQL query count, integer ≥0.
Allowed null: False
$minValue: 0
Example: 3
How to obtain or fill: Configure based on this workspace's AI semantic monitoring capabilities and business budget; optional items can be left to the AI service default policy.
jsonScript.checkerOpt.creditSoftBudget number AI semantic only. Credit soft budget per detection, finite number >0; not an API execution timeout.
Allowed null: False
Example: 10
How to obtain or fill: Configure based on this workspace's AI semantic monitoring capabilities and business budget; optional items can be left to the AI service default policy.
jsonScript.channels array Optional array default []; channels are used to associate Incidents, not direct notification targets; the server may add a default channel/filter invalid channels. @external email is restricted in Free/Experience versions; saving does not mean the notification has been sent.
Allowed null: False
Example: ["chan_example"]
How to obtain or fill: Obtain channel UUIDs from the Channel list; obtain @identity account UUIDs or supported emails from the Member list.
jsonScript.atAccounts array Optional array default []; channels are used to associate Incidents, not direct notification targets; the server may add a default channel/filter invalid channels. @external email is restricted in Free/Experience versions; saving does not mean the notification has been sent.
Allowed null: False
Example: ["acnt_example"]
How to obtain or fill: Obtain channel UUIDs from the Channel list; obtain @identity account UUIDs or supported emails from the Member list.
jsonScript.atNoDataAccounts array Optional array default []; channels are used to associate Incidents, not direct notification targets; the server may add a default channel/filter invalid channels. @external email is restricted in Free/Experience versions; saving does not mean the notification has been sent.
Allowed null: False
Example: ["acnt_example"]
How to obtain or fill: Obtain channel UUIDs from the Channel list; obtain @identity account UUIDs or supported emails from the Member list.
jsonScript.subUri string OuterEventChecker requires a non-empty string on creation; the public receive URL is a single path segment and cannot contain / (encoded %2F still returns 404); alphanumeric and hyphens are recommended. Multiple rules may share the suffix; secret is responsible for uniqueness; regular detection does not fill.
Allowed null: False
Example: datakit-push
How to obtain or fill: Choose a Webhook suffix for the current external event integration.
jsonScript.isChangeEvent boolean OuterEventChecker optional default false; other types do not use.
Allowed null: False
Example: false
How to obtain or fill: true when the external event is a change event.
jsonScript.disableCheckEndTime boolean Optional compatible boolean, default false; actual support depends on detection type.
Allowed null: False
Example: false
How to obtain or fill: true when the check end time limit should be removed.
jsonScript.eventChartEnable boolean Optional default false; only supported Doris log primary storage processing; successful save does not prove the chart has been generated.
Allowed null: False
Example: false
How to obtain or fill: Select when the data storage capability supports event charts.
jsonScript.eventCharts array Optional chart configuration array; provide together when enabling event charts; the actual result is generated by the event processing chain and is not returned in the write response.
Allowed null: False
Example: [{"dql": "M::cpu:(avg(usage_idle)) BY host"}]
How to obtain or fill: Validate the query used for event display against real data.
jsonScript.eventCharts[*] object Declares only the dql subfield.
Example: {"dql": "M::cpu:(avg(usage_idle)) BY host"}
How to obtain or fill: A single verified chart query.
jsonScript.eventCharts[*].dql string Optional query text, not a chart UUID; saving does not execute the chart query.
Allowed null: False
Example: M::cpu:(avg(usage_idle)) BY host
How to obtain or fill: Write DQL from a supported data source by real metrics/fields.
openPermissionSet boolean Optional default false; omitting on modification restores false. This permission only constrains resource operations and cannot replace API permission or data query authorization.
Allowed null: False
Example: false
How to obtain or fill: true when operations need to be restricted by specified principals.
permissionSet array Optional default [], omitting on modification restores []; principals can be non-Owner roles, acnt_ members, group_ teams, combined with openPermissionSet. Verify valid identities first; do not treat successful save as each principal actually having access.
Allowed null: False
Example: ["wsAdmin"]
How to obtain or fill: Obtain operation principal identifiers from workspace role, member, and team management.

Additional Parameter Description

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

YAML Field Type Values, Source, and Omission Rules
version integer Required, fixed 1.
name string Required non-empty, ≤128 characters after trim; immutable after definition on creation.
event.title / event.message string Both required non-empty ≤8000 characters; only Scene. public variables allowed; Jinja control blocks/comments not supported.
rules array Required 1..10 items, at least one enabled=true.
rules[].id string Required unique, regex [a-z][a-z0-9_]{2,63}.
rules[].name string Required non-empty, ≤128 characters after trim.
rules[].enabled boolean Optional default true; current modification does not allow changing structural enabled/disabled.
rules[].query.dql string Required real authorizable DQL; overall UTF8 is still subject to the 256KiB total limit; can be modified.
rules[].query.interval string Optional positive integer + s/m/h/d, ≤24h; seasonal default 5m, others default 1m.
rules[].query.lookback string Optional auto (default) or positive integer + s/m/h/d; cannot exceed the budget.
rules[].scene_by array<string> Required non-empty and unique after trimming, actual dimension fields.
rules[].detect object threshold and algorithm are mutually exclusive and cannot both be present; the threshold branch has no params.
rules[].detect.threshold.operator string Required >, >=, <, <=, ==, !=, between, outside.
rules[].detect.threshold.operands array<number> 1 finite numeric value for comparison; between/outside exactly 2 and lower bound ≤ upper bound.
rules[].detect.threshold.consecutive integer Optional default 1, 1..60.
rules[].detect.algorithm string basic.robust_band@1, seasonal.robust_mad@2, seasonal.adaptive_mad@1, peer.robust_mad@1; seasonal.robust_mad@1 is only for existing configuration compatibility.
rules[].detect.params object or null Allowed keys by algorithm; unknown keys are not accepted; basic and seasonal@2/adaptive allow null validated as {}.
rules[].detect.params.band string basic optional mad/quantile.
rules[].detect.params.direction string high/low/both when supported by the corresponding algorithm.
rules[].detect.params.score number Optional for the corresponding algorithm, finite number 1..20.
rules[].detect.params.period integer or null seasonal@2/adaptive optional null or 2..10000; omitted/empty estimates by 1-day sampling points; legacy @1 requires 2..10080.
rules[].detect.params.consecutive integer Only legacy seasonal@1, 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 is 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 non-empty, ≤128 characters after trim.
rules[].display.unit string or null Optional, ≤64 characters; unit display does not modify the original query numeric values.

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 ≤10,000 points and ≤60 days; basic daily sampling supports up to 61 days. Algorithm history/evidence/consecutive trigger requirements are counted together in the budget; explicit lookback cannot bypass it. Modification only allows DQL, existing threshold configuration, and algorithm.params; other execution structure/rule metadata remain unchanged.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/checker/rul_checker_example/modify' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"queryType":"dql","status":0,"extend":{},"alertPolicyUUIDs":[],"tags":[],"jsonScript":{"type":"simpleCheck","title":"生产CPU阈值","every":"1m","interval":300,"groupBy":["host"],"targets":[{"dql":"M::cpu:(avg(usage_idle)) BY host","alias":"Result","qtype":"dql"}],"checkerOpt":{"rules":[{"status":"warning","conditionLogic":"and","conditions":[{"alias":"Result","operator":"<","operands":[10]}]}]}},"openPermissionSet":false,"permissionSet":[]}'

Response

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

Field Type Description
content.id integer Current monitor database record number; subsequent calls use uuid.
content.uuid string Current monitor rul_ UUID; details, modify, and delete operations use this identifier.
content.workspaceUUID string Workspace to which the object belongs.
content.monitorUUID string Associated monitor group UUID.
content.type string Entity category, usually trigger/smartMonitor/aiMonitor; differs from the jsonScript.type check algorithm.
content.refKey string Compatible business association key, usually an empty string.
content.secret string or null Shared field such as external event Webhook identifier; not a general API Key; do not write sensitive real values to logs.
content.jsonScript object Saved detection configuration, interpreted by 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 Primary 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); differs from input every.
content.crontabInfo.smartRelId string Attached scheduling ID for some Smart Monitoring configurations; may be omitted.
content.crontabInfo.multiWsCrontabInfo array<object> Scheduling information for each cross-workspace; may exist historically and may be omitted.
content.crontabInfo.multiWsCrontabInfo[].ws_uuid string Target workspace UUID.
content.crontabInfo.multiWsCrontabInfo[].id string Scheduling ID in that workspace.
content.crontabInfo.multiWsCrontabInfo[].crontab string or null Actual Cron in that workspace; may be explicitly null or omitted.
content.extend object Additional echo/incident association configuration; may contain historical custom fields; do not blindly send the entire object back for modification.
content.extend.自定义字段 JSON Historical or type-specific saved value; refer to the current type details and public structure of the create API.
content.createdWay string manual/import/template or a historical empty value.
content.isLocked integer or boolean Lock flag for the current monitor configuration, 1 locked, 0 unlocked; does not indicate a historical configuration version.
content.openPermissionSet boolean Custom operation permission switch; a successful read does not imply modifiability.
content.permissionSet array<string> Custom operation principal 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.targetWorkspaceUUID string Cross-workspace target UUID, only applicable to simpleCheck, seniorMutationsCheck, seniorRangeV2Check, seniorRangeCheck, outlierCheck; still requires valid authorization and cannot be used for arbitrary detection types.
content.jsonScript.type string Check method type. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.windowDql string window dql. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.title string Title of the generated event. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.message string Event content. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.recoverTitle string Output recovery event title template. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.recoverMessage string Output recovery event message template. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.noDataTitle string Output no-data event title template. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.noDataMessage string Output no-data event message template. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.openNotificationMessage boolean Whether to enable event notification content; default disabled (use event content as notification content). This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.notificationMessage string Event notification content. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.openNoDataNotificationMessage boolean Whether to enable no-data gap event notification content; default disabled (use no-data gap event content as notification content). This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.noDataNotificationMessage string No-data gap event notification content. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.noDataRecoverTitle string Output no-data recovery upload event title template. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.noDataRecoverMessage string Output no-data recovery upload event message template. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.every string Check frequency. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.customCrontab string Custom check frequency. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.delaySeconds integer Regular monitor data wait window, in seconds; 0 means no wait; Smart Monitoring does not support this configuration. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.interval integer Query interval, i.e. the time range difference of a single query. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.range integer Range parameter for advanced detection and mutation detection, in seconds. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.range_2 integer range_2 parameter for advanced detection and mutation detection, in seconds; special note (-1 means period-over-period, 0 means use the periodBefore field). This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.periodBefore integer (Yesterday/one hour ago) parameter for advanced detection and mutation detection, in seconds. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.recoverNeedPeriodCount integer Specifies after how many check periods an anomaly generates a recovery event. If the check frequency is custom customCrontab, this field represents a duration in seconds; otherwise, it represents a number of check frequencies. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.noDataInterval integer How long without data before a no-data event is generated; when noDataEventRepeat is used, it must be a positive integer number of seconds. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.noDataAction string No-data handling action. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkFuncs array Check function information list. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.groupBy array Trigger dimensions. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.targets array Check targets. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt json Check condition settings. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.enableStreamingAggregation boolean or null Monitor streaming aggregation acceleration; omitted or null follows the workspace, true enables independently, false disables independently. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.yamlConfig string Complete source YAML text for V2, maximum 256KiB; not a JSON object and does not include Markdown fences. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.disableLargeScaleEventProtect boolean Whether to disable large-scale event protection, default false. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.script string Script content for programmable monitoring. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.rules array Trigger condition list. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.openOkConditions boolean Enable graded recovery, default disabled false. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.openMatchTimes boolean Enable consecutive trigger matching, default disabled false. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.infoEvent boolean Whether to generate an info event when continuously normal, default false. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.infoEventCondition json Information event generation conditions; supports thresholds for regular rule detection, logs, application/RUM metrics, availability, process, network, mutation, range, and compatible legacy types; does not support outlier, combined, liveness V2, change, programmable, Smart, or SLO. An empty object means unconditional generation. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.infoEventCondition.alias string Judgment object alias. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.infoEventCondition.operator string Judgment operator. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.infoEventCondition.operands array Judgment operand list. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.diffMode string Difference mode for mutation detection in advanced detection; enum values: value, percent. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.direction string Trigger condition direction for mutation detection and range detection in advanced detection. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.eps float Distance parameter, value range: 0 to 3.0. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.threshold json Trigger precondition settings for mutation detection. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.threshold.status boolean Mutation detection, whether the trigger precondition is enabled. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.threshold.operator string Mutation detection, trigger precondition operator. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.threshold.value float or null Mutation detection, trigger precondition check value. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.combineExpr string Combined monitoring, combination expression. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.ignoreNodata boolean Combined monitoring, whether to ignore no-data results (true means ignore). This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.confidenceInterval integer Range detection V2 new parameter, confidence interval range 1-100. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.category string AI monitoring category metadata. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.userPrompt string AI user prompt; cannot be empty when passed, maximum 20,000 characters. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.systemPrompt string AI system prompt; cannot be empty when passed, maximum 20,000 characters. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.mentions array DQL reference list; each item must contain type=dql, namespace, datasource; index is optional and filled when selecting logs; maximum 20,000 characters after serialization. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.mentions[] object A single object in the array; interpreted by the lower-level fields. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.mentions[].type string Data source type. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.mentions[].namespace string DQL namespace. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.mentions[].index string DQL index; fill when selecting logs. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.mentions[].datasource string DQL data source. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.model string Model used for this detection. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.contextWindowLimit integer Context window token limit, must be greater than 0. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.maxChatRounds integer Maximum chat rounds, must be greater than or equal to 1. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.maxDQLQueries integer Maximum DQL query count, must be greater than or equal to 0. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.checkerOpt.creditSoftBudget number Credit soft budget per detection, must be greater than 0. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.channels array Channel UUID list. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.atAccounts array List of account UUIDs @-mentioned under normal detection. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.atNoDataAccounts array List of account UUIDs @-mentioned in no-data cases. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.subUri string Webhook address suffix for OuterEventChecker; required on creation, uniqueness not required. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.isChangeEvent boolean Whether OuterEventChecker is handled as a change event, default false; when missing in existing rules, treated as false. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.disableCheckEndTime boolean Whether to disable the end time limit. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.eventChartEnable boolean Whether to enable event charts, default disabled (note: only takes effect when the primary storage engine logging is doris). This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.eventCharts array Event chart list. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.eventCharts[] object A single object in the array; interpreted by the lower-level fields. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.eventCharts[].dql string Query statement for the event chart. This is the saved configuration; whether it actually takes effect depends on the check type. For writing, see Create Monitor.
content.jsonScript.targets[] object A single DQL/PromQL query target, or a combined monitoring member.
content.jsonScript.targets[].dql string Actual execution query; qtype determines the syntax.
content.jsonScript.targets[].qtype string Usually dql/promql; legacy records may represent it via queryType.
content.jsonScript.targets[].queryType string Legacy query syntax marker.
content.jsonScript.targets[].alias string Regular common plugins usually require Result; combined monitoring uses member aliases.
content.jsonScript.targets[].monitorCheckerId string Member UUID associated only with combined monitoring.
content.jsonScript.targets[].groupBy array<string> Additional trigger dimensions for combined members.
content.jsonScript.targets[].groupBy[] string Field name.
content.jsonScript.targetWorkspaceUUIDs array<string> Target workspace UUID set that may be saved by legacy/other entry points; not declared by public create/update and not returned as a whole.
content.jsonScript.targetWorkspaceUUIDs[] string A single target workspace UUID.
content.jsonScript.targets[].extraOptions object get echoes the saved value; list may supplement it in place when cross-workspace authorization verification has parsing results, and may retain historical values when there is no result. It is not a client-writable request or proof of complete current authorization.
content.jsonScript.targets[].extraOptions.workspace_uuids array<string> Candidate execution workspaces saved or resolved by list this time; may contain historical values and does not guarantee all are currently authorized.
content.jsonScript.targets[].extraOptions.workspace_uuids[] string A single saved or candidate workspace UUID; verify current authorization.
content.jsonScript.targets[].extraOptions.index_list array<object> Data domain/index candidate range saved or resolved by list this time; may be historical values and 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 filter; read according to the saved structure and do not assume a uniform type.
content.jsonScript.groupBy[] string Trigger dimension field.
content.jsonScript.checkFuncs[] object Compatible detection 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 Interpret according to the corresponding function documentation.
content.jsonScript.channels[] string Incident tracking channel UUID.
content.jsonScript.atAccounts[] string @-mentioned identity in notifications; may be an email in legacy records.
content.jsonScript.atNoDataAccounts[] string No-data notification @ target.
content.jsonScript.checkerOpt.rules[] object Set 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; use with openMatchTimes.
content.jsonScript.checkerOpt.rules[].conditions array<object> Trigger conditions.
content.jsonScript.checkerOpt.rules[].okConditions array<object> Graded 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; supported set depends on detection type.
content.jsonScript.checkerOpt.rules[].conditions[].operands array Comparison value array; preserves numeric/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; supported set depends on detection type.
content.jsonScript.checkerOpt.rules[].okConditions[].operands array Comparison value array; preserves numeric/string types.
content.jsonScript.checkerOpt.rules[].okConditions[].operands[] string / number A single comparison value.
content.extend.isNeedCreateIssue boolean Whether to create an Issue based on an anomaly.
content.extend.issueLevelUUID string Legacy Issue level identifier; may be invalid.
content.extend.issueDfStatus array<string> Anomaly statuses that trigger an Issue.
content.extend.issueDfStatus[] string fatal/critical/error/warning/nodata.
content.extend.manager array<string> Resolved owner targets.
content.extend.manager[] string Member/team and other target identifiers.
content.extend.incidentsTags array<string> Incident association tag names.
content.extend.incidentsTags[] string A single tag name.
content.extend.faultMappingMode string custom/existing, current incident level mapping mode.
content.extend.levelMappingUUID string Level mapping UUID when 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 tracking identifier; may be omitted.
content.tagInfo array<object> Tag association summary after write; empty tags [].
content.tagInfo[].id string Tag UUID, same as uuid, not a database numeric id.
content.tagInfo[].uuid string Tag UUID.
content.tagInfo[].name string Tag name.
content.tagInfo[].scope array<string> Normalized tag scope.
content.tagInfo[].scope[] string A single scope.
content.monitorName string Current group display name; returned conditionally.
content.dashboardUUID string Returned when a new/modified explicit valid association exists; may be omitted.
content.alertPolicyUUIDs array<string> Policy UUIDs returned only when creation has a non-empty association; not automatically expanded in modification responses.
content.alertPolicyUUIDs[] string Policy UUID.
content.declaration object Common declaration.
content.extend.rules array<object> simpleCheck condition echo after rule normalization; other detection types may have different structures.
content.extend.rules[].status string Triggered event level.
content.extend.rules[].conditionLogic string Logic for conditions in the same group, and or or.
content.extend.rules[].conditions array<object> Threshold conditions for the rule.
content.extend.rules[].conditions[].alias string Result alias of the corresponding query.
content.extend.rules[].conditions[].operator string Condition comparison operator.
content.extend.rules[].conditions[].operands array Comparison operand array.
content.extend.rules[].conditions[].operands[] JSON A comparison value; type depends on the condition.
content.extend.querylist array<object> Editor query echo array, not the query execution result of this request.
content.extend.querylist[].uuid string Generation identifier for this query echo item; the actual value may be random.
content.extend.querylist[].qtype string Query type, e.g. dql.
content.extend.querylist[].query object Saved query definition.
content.extend.querylist[].query.q string Saved DQL statement.
content.extend.querylist[].datasource string Query data source protocol identifier, e.g. fixed technical value dataflux.
content.extend.querylist[].checked boolean Editor checked state.
content.extend.querylist[].disabled boolean Editor disabled state.
{
  "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": {
      "rules": [
        {
          "status": "warning",
          "conditionLogic": "and",
          "conditions": [
            {
              "alias": "Result",
              "operator": "<",
              "operands": [
                10
              ]
            }
          ]
        }
      ],
      "querylist": [
        {
          "uuid": "00000000-0000-0000-0000-000000000001",
          "qtype": "dql",
          "query": {
            "q": "M::cpu:(avg(usage_idle)) BY host"
          },
          "datasource": "dataflux",
          "checked": true,
          "disabled": false
        }
      ]
    },
    "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": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

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

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
406 ft.ParameterValidationFailed Request field missing, or field value violates declared validation conditions Parameter parsing failed Check parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Request JSON syntax is invalid Request JSON format error Correct the JSON according to content.reason, line, column.
406 ft.InvalidParameterValidation noDataAction=noDataEventRepeat but noDataInterval missing/not a positive integer The value of {} is invalid; current value: {} Explicitly provide a positive integer second duration window for supported detection types.
400 ft.ErrorContinuousTriggerCfgCount openMatchTimes=true and any matchTimes not in 1..100 The number of consecutive triggers 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 numeric (including null) Trigger condition check value validation failed Provide a numeric value consistent with the result unit, or disable the precondition.
403 ft.ForbiddenQuery When parsing detection DQL, the calling identity lacks query permission for the corresponding namespace You do not have {} permission Configure the required data domain query permission for the current API Key/identity, not just monitor configuration permission.
406 ft.DqlParseError Target query, eval subexpression, or DQL in V2 YAML fails during permission/index parsing dql parser parsing failed: {} Correct the actual query syntax and namespace and retry; this does not mean the query has been executed.
400 ft.JsonFormatError JSON Body top level is not an object, e.g. array/string Some JSON file format error Submit a JSON object as in the example; do not directly submit checkers or event arrays.
400 ft.repeatCheckerSecret External event secret already occupied by any rule, including other workspaces/history External event monitor secret already exists Use a globally unique random secret; on modification, first verify your original secret.
406 ft.ParameterCheckFailed Workspace does not allow left wildcard and preliminary DQL analysis finds a high-cost query, or analysis did not succeed Fuzzy matching with leading * is not currently supported in query configuration Correct the DQL according to the query analysis in content, avoid leading * scans, and verify the authorized source first.
400 ft.ParamsValidateError queryType, data wait, AI prompt/reference/budget fields, or other business parameters invalid Parameter validation failed: {} Correct according to the specific message field path; AI prompts must not be blank.
406 ft.InvalidParameter Event message/noDataMessage is not a string, or incident level mapping and other business fields do not match Parameter {} is invalid Check the specific field and valid source.
406 ft.InvalidParameterV2 Checked event template Jinja syntax invalid The value {} of parameter {} is invalid Correct according to content.field/line/reason; this does not mean unknown template variables are necessarily valid.
400 ft.CheckerRepeatNames A non-deleted rule with the same name already exists in the corresponding category group in the same workspace Monitor name duplicate Change the name or modify the existing UUID; regular monitoring and self-built inspection share the name group.
400 ft.InvalidAlertPolicyUUID Requested alert policy set contains a non-deleted UUID not found in this workspace Invalid alert policy UUID Re-obtain the complete set of valid UUIDs from the policy list.
400 ft.UnsupportExternalEmail Free/Experience version @ target contains external email Experience version workspace does not support external email notification targets Use a valid identity in this workspace or confirm version support.
400 ft.TagScopeMismatch Bound tag does not apply to monitor scope Tag scope mismatch Select all/monitor from the tag list, or modify the tag scope after confirmation.
406 ft.UnsupportRuleType Detection plugin type not supported Unsupported rule type: {} Use a type and corresponding structure supported on this page.
406 ft.UnsupportCheckUnit Detection frequency every unit not supported Invalid check frequency unit; supported unit list: {} Use a positive integer + s/m/h.
406 ft.CheckFrequencyExceedsMaximum Regular detection frequency exceeds 24h Check frequency exceeds 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 Custom Cron syntax or seconds field invalid Crontab validation failed Correct the complete 5/6-field expression.
400 ft.CrontabCheckRangeError Custom Cron second step below 20 seconds 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 Regular with targets has interval not an integer or not in 1..2592000 seconds interval invalid Provide a valid window in seconds.
406 ft.CheckObjectTargetAliasError Regular plugin target non-empty alias is not Result Detection target DQL alias error Use Result; combined members follow the combined protocol separately.
406 ft.CheckObjectNameRepeat Target alias duplicate Detection target alias duplicate Use an applicable and unique alias for each target.
400 ft.UnsupportTriggerFields 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 Combined member contains incompatible custom Cron There is a monitor with custom frequency; combined monitoring monitors do not support custom frequency Adjust member frequency or split the combination first.
400 ft.ErrorCombinedCrontab A rule referenced by a combination is changed to an incompatible custom Cron There is an associated combined monitor; combined monitoring monitors do not support custom frequency Check the combination references and choose a compatible frequency.
400 ft.ErrorFieldCheck Combination lacks conditionally required fields such as combineExpr {} field validation failed Provide the combination expression and member definitions.
400 ft.InvalidIssueDfStatus Issue mapping contains a disallowed anomaly status Invalid event level {} Use only fatal/critical/error/warning/nodata.
400 ft.FiledCreateTrigger New schedule did not return a valid id Failed to create trigger configuration, please retry First check whether the rule/schedule already exists; retain traceId for troubleshooting.
400 ft.OuterFuncFailed Scheduling service returned business failure External function call failed Check the configuration and existing schedule, then retry.
400 ft.SameSetTraggerExists Scheduling service considers the same schedule already exists A trigger with the same configuration already exists Check the created rule and do not add a duplicate.
500 ft.InternalServerError Uncaught exceptions such as regular exceptions in advanced conditions, invalid field shapes, downstream connection/timeout/invalid JSON, or database or post-commit cache/task dispatch failures Internal error First read back the rule and status/associations; partial commits may exist. Retain traceId and handle according to the failed stage.
400 ft.ErrorRecoveryConditionOperator Graded recovery trigger condition is not a supported one-sided comparison >/>=/</<= Recovery condition operators only support >, <, >=, <= Modify okConditions with the opposite direction of trigger and recovery and valid numeric boundaries.
406 ft.ErrorLessThanOrEqualOperator When trigger is >, recovery does not satisfy ≤ and the boundary is valid The recovery condition value must be less than or equal to the trigger condition value Modify okConditions with the opposite direction of trigger and recovery and valid numeric boundaries.
406 ft.ErrorGreaterThanOrEqualOperator When trigger is <, recovery does not satisfy ≥ and the boundary is valid The recovery condition value must be greater than or equal to the trigger condition value Modify okConditions with the opposite direction of trigger and recovery and valid numeric boundaries.
406 ft.ErrorLessThanOperator When trigger is ≥, recovery does not satisfy < and the boundary is valid The recovery condition value must be less than the trigger condition value Modify okConditions with the opposite direction of trigger and recovery and valid numeric boundaries.
406 ft.ErrorGreaterThanOperator When trigger is ≤, recovery does not satisfy > and the boundary is valid The recovery condition value must be greater than the trigger condition value Modify okConditions with the opposite direction of trigger and recovery and valid numeric boundaries.
404 ft.MonitorNotFound Historical rule already has an associated monitorUUID but the group does not exist/has been deleted Rule group not found Check the original rule's associated group; an administrator must repair it before modification.
404 ft.NotFoundRuleInspector Target rule in this workspace does not exist or has been deleted Specified rule/checker not found Re-obtain the UUID from the corresponding list.
403 ft.ForbiddenCheckerOperation No custom operation permission for this regular rule You do not have operation permission for monitor [{}] Have the owner/allowed principal perform the operation and verify permissions.
403 ft.ForbiddenSmartCheckerOperation No custom operation permission for this Smart/AI rule You do not have operation permission for Smart Monitoring [{}] Verify the permission principal for this rule.
409 ft.SmartMonitorVersionConflict V2 current version does not match submitted configVersion Smart monitor configuration version conflict Re-read the current version, merge, and submit again.

Feedback

Is this page helpful?