Create Monitor¶
POST /api/v1/checker/add
Overview¶
Create a standard, Smart Monitoring, or AI semantic monitor.
Before You Call and Usage Steps¶
First verify DQL in the target workspace, and fill in the complete jsonScript and valid associated objects according to the algorithm. Standard rules are added to the default monitor group by default, and new rules are enabled by default. To disable a rule first, explicitly set status=2. Creation synchronously performs high-cost DQL checks, parameter validation, and schedule submission; it does not return a single check result, and HTTP 200 must not be treated as proof that a notification has been delivered.
Calling the API, scheduling, database, tags/associations, and cache are not one atomic cross-service transaction; on error, a primary rule/schedule may already exist. Before retrying, verify the uuid, status, and final associations from the list/get endpoints to avoid duplicate tasks. External events use the generated/saved secret + subUri to configure the Webhook; this request does not trigger events. Smart Monitoring V2 configurations use a fixed 10-minute schedule and validate YAML synchronously; AI semantic references remain subject to data permissions, and budget limits cannot be regarded as a commitment of actual consumption.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with the required permissions from API Key Management in the target workspace. |
Body Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| alertPolicyUUIDs[*] | string | Single array item. Example: altpl_exampleHow to obtain or enter: Get the uuid from the Alert Policy List. |
|
| permissionSet[*] | string | Single operation principal. Example: wsAdminHow to obtain or enter: Obtain from roles/members/teams in this workspace. |
|
| jsonScript.targets[*] | json | Use the child structure according to type. Example: {"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}How to obtain or enter: A query or combined member. |
|
| jsonScript.targets[*].dql | string | DQL or PromQL text, specified by qtype. Example: M::cpu:(avg(usage_idle)) BY hostHow to obtain or enter: Write and verify against actual data in the target workspace. |
|
| jsonScript.targets[*].qtype | string | Optional; usually dql. Example: dqlHow to obtain or enter: Choose dql for DQL and promql for PromQL. |
|
| jsonScript.targets[*].alias | string | For standard plugins, only Result or empty is accepted, and aliases must not be duplicated. Example: ResultHow to obtain or enter: Use Result for a standard single query; assign A/B, etc. for combined members. |
|
| jsonScript.targets[*].monitorCheckerId | string | Only for combinedCheck; members cannot be rules with Cron conflicts. Example: rul_checker_exampleHow to obtain or enter: Get an available member UUID from the monitor list in the current workspace. |
|
| jsonScript.groupBy[*] | string | Single dimension. Example: hostHow to obtain or enter: Actual DQL BY field. |
|
| jsonScript.checkFuncs[*] | json | seniorCheck uses the first item. Example: {"funcId": "example.func", "kwargs": {}}How to obtain or enter: Obtain from the original compatible custom function configuration. |
|
| jsonScript.checkFuncs[*].funcId | string | Compatible function identifier. Example: example.funcHow to obtain or enter: A real available function ID. |
|
| jsonScript.checkFuncs[*].kwargs | json | Dynamic object; no unified required child keys. Example: {}How to obtain or enter: The function's specific parameter structure. |
|
| jsonScript.checkFuncs[*].kwargs.参数名 | any | Single function-specific value. Example: 1How to obtain or enter: Obtain the name/type/source from the corresponding function documentation. |
|
| jsonScript.checkerOpt.rules[*] | json | Different algorithms may use different condition structures. Example: {"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}How to obtain or enter: A condition for a single alert level. |
|
| jsonScript.checkerOpt.rules[*].status | string | Allowed set for standard plugins; use according to the actual check type. Example: warningHow to obtain or enter: Choose fatal/critical/error/warning/info/ok/ALL based on event level. |
|
| jsonScript.checkerOpt.rules[*].conditionLogic | string | Required for standard conditions. Example: andHow to obtain or enter: and/or. |
|
| jsonScript.checkerOpt.rules[*].conditions | array | Required array for standard conditions. Example: [{"alias": "Result", "operator": "<", "operands": [10]}]How to obtain or enter: Construct based on actual query results and thresholds. |
|
| jsonScript.checkerOpt.rules[*].okConditions | array | Optional; used with openOkConditions; the threshold comparison direction must be opposite to the trigger and the boundary must be valid. Example: [{"alias": "Result", "operator": ">=", "operands": [20]}]How to obtain or enter: Set independent boundaries for graded recovery. |
|
| jsonScript.checkerOpt.rules[*].matchTimes | integer | Optional; used with openMatchTimes; default 1 when enabled, actual range 1..100; exceeding the limit reports ErrorContinuousTriggerCfgCount. Example: 2How to obtain or enter: How many consecutive anomalies the business allows before triggering. |
|
| jsonScript.checkerOpt.rules[*].conditions[*] | json | Single comparison condition. Example: {"alias": "Result", "operator": "<", "operands": [10]}How to obtain or enter: Construct using the actual query Result and threshold. |
|
| jsonScript.checkerOpt.rules[*].conditions[*].alias | string | Must match the target alias. Example: ResultHow to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| jsonScript.checkerOpt.rules[*].conditions[*].operator | string | Standard operators =, !=, >, >=, <, <=, between, notBetween, like, notLike, in, notIn, regExp, notRegExp, isTrue, isFalse, likeTrue, likeFalse; specific algorithms may narrow this set. Example: <How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| jsonScript.checkerOpt.rules[*].conditions[*].operands | array | String/numeric array; preserve the actual result unit; do not pass booleans/objects; conditions with empty values may be filtered out. Example: [10]How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| jsonScript.checkerOpt.rules[*].conditions[*].operands[*] | JSON | Single threshold. For numeric comparison, provide a JSON number; for regex/set, provide a string according to the actual rule. Example: 10How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| jsonScript.checkerOpt.rules[*].okConditions[*] | json | Single comparison condition. Example: {"alias": "Result", "operator": "<", "operands": [10]}How to obtain or enter: Construct using the actual query Result and threshold. |
|
| jsonScript.checkerOpt.rules[*].okConditions[*].alias | string | Must match the target alias. Example: ResultHow to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| jsonScript.checkerOpt.rules[*].okConditions[*].operator | string | Standard operators =, !=, >, >=, <, <=, between, notBetween, like, notLike, in, notIn, regExp, notRegExp, isTrue, isFalse, likeTrue, likeFalse; specific algorithms may narrow this set. Example: <How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| jsonScript.checkerOpt.rules[*].okConditions[*].operands | array | String/numeric array; preserve the actual result unit; do not pass booleans/objects; conditions with empty values may be filtered out. Example: [10]How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| jsonScript.checkerOpt.rules[*].okConditions[*].operands[*] | JSON | Single threshold. For numeric comparison, provide a JSON number; for regex/set, provide a string according to the actual rule. Example: 10How to obtain or enter: Configure according to the same query target, data unit, and business boundary. |
|
| jsonScript.channels[*] | string | Single valid value in the array. Example: chan_exampleHow to obtain or enter: Use the channel or account identifier described in the parent field. |
|
| jsonScript.atAccounts[*] | string | Single valid value in the array. Example: acnt_exampleHow to obtain or enter: Use the channel or account identifier described in the parent field. |
|
| jsonScript.atNoDataAccounts[*] | string | Single valid value in the array. Example: acnt_exampleHow to obtain or enter: Use the channel or account identifier described in the parent field. |
|
| jsonScript.checkerOpt.infoEventCondition.operands[*] | JSON | String or number. Example: 60How to obtain or enter: A comparison value in the same unit as the query Result. |
|
| jsonScript.checkerOpt.rules[*].strength | integer | For historical types only; old mutationsCheck strength 1/2/3. New advanced types use their corresponding checkerOpt fields; do not mix. Example: 2How to obtain or enter: Read from the original details when maintaining an existing old algorithm. |
|
| jsonScript.checkerOpt.rules[*].direction | string | For historical types only; old mutationsCheck/rangeCheck direction up/down/both. New advanced types use their corresponding checkerOpt fields; do not mix. Example: bothHow to obtain or enter: Read from the original details when maintaining an existing old algorithm. |
|
| jsonScript.checkerOpt.rules[*].checkCount | integer | For historical types only; old mutation check count, integer. New advanced types use their corresponding checkerOpt fields; do not mix. Example: 3How to obtain or enter: Read from the original details when maintaining an existing old algorithm. |
|
| jsonScript.checkerOpt.rules[*].periodNum | integer | For historical types only; old mutation/range period count, integer. New advanced types use their corresponding checkerOpt fields; do not mix. Example: 3How to obtain or enter: Read from the original details when maintaining an existing old algorithm. |
|
| extend.isNeedCreateIssue | boolean | Default false. When enabled, also validates channel/owner/status/level mappings. Example: falseHow to obtain or enter: Set true when events should automatically create Issues. |
|
| extend.issueLevelUUID | string | Historical compatibility level; invalid values may be cleared to empty, and success does not prove the level took effect. Example: issl_exampleHow to obtain or enter: Get 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 enter: Select which anomaly levels trigger an Issue. |
|
| extend.issueDfStatus[*] | string | Single allowed status. Example: errorHow to obtain or enter: Actual alert level. |
|
| extend.manager | array | The owner list is normalized into concrete targets; on-call personnel are resolved according to the current day's calendar in the workspace time zone, and will not automatically change with shift rotations after this write. Example: ["acnt_example"]How to obtain or enter: Obtain owner targets from workspace members/teams/notification schedules. |
|
| extend.manager[*] | string | Single owner; verify the source is valid first. Example: acnt_exampleHow to obtain or enter: Member/team or supported current-day on-call target identifier. |
|
| extend.incidentsTags | array | Used for Issue association tags; tags may be created/validated by rule. Example: ["production"]How to obtain or enter: Obtain from tag names applicable to monitor. |
|
| extend.incidentsTags[*] | string | Not a UUID. Example: productionHow to obtain or enter: Actual business tag name. |
|
| extend.faultMappingMode | string | Default custom when enabling Issue; existing requires a valid levelMappingUUID. Example: customHow to obtain or enter: custom for custom mapping, existing to reference an existing mapping. |
|
| extend.levelMappingUUID | string | Required valid UUID for existing; the custom branch removes this reference field but retains historical custom rows. Example: islm_exampleHow to obtain or enter: Obtain from the available anomaly 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 publicly backfilling the entire extend still requires caution. Example: [{"incidentsLevelUUID": "issl_example", "incidentsDfStatus": ["error"]}]How to obtain or enter: Construct by mapping event levels to Issue levels. |
|
| extend.bindIncidentsInfo[*] | json | One mapping object. Example: {"incidentsLevelUUID": "issl_example", "incidentsDfStatus": ["error"]}How to obtain or enter: Mapping from a single status to a level. |
|
| extend.bindIncidentsInfo[*].incidentsLevelUUID | string | Invalid levels may be cleared. Example: issl_exampleHow to obtain or enter: Obtain from the valid Issue level list. |
|
| extend.bindIncidentsInfo[*].incidentsDfStatus | array | Allowed status array. Example: ["error"]How to obtain or enter: Select from fatal/critical/error/warning/nodata. |
|
| extend.bindIncidentsInfo[*].incidentsDfStatus[*] | string | Single allowed value. Example: errorHow to obtain or enter: Actual event level. |
|
| extend.smartMonitor.source | string | ai/builtin; new OpenAPI calls may pass a complete valid configuration directly without generation credentials. Example: aiHow to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate a real template ID for the site. |
|
| extend.smartMonitor.category | string | Source category; cannot be changed by V2 modifications. Example: customHow to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate a real template ID for the site. |
|
| extend.smartMonitor.prompt | string | AI prompt; changing an existing prompt requires regenerating candidates. Example: 检测生产主机异常。How to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate a real template ID for the site. |
|
| extend.smartMonitor.templateId | string | builtin source template identifier; cannot be changed by modifications. Example: template_exampleHow to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate a real template ID for the site. |
|
| extend.smartMonitor.templateVersion | string | builtin template version; cannot be changed by modifications. Example: 1How to obtain or enter: Obtain from the corresponding generation result/built-in template metadata; do not fabricate a real template ID for the site. |
|
| extend.smartMonitor | json | V2 only; the server clears forged execution/version states and writes engineVersion/configVersion; retains allowed fields, and the old source category is immutable. Example: {"source": "ai", "category": "custom", "prompt": "检测生产主机异常。"}How to obtain or enter: Obtain source metadata from the generation or template selection flow. |
|
| extend.querylist | array | Optional; if present, it is retained and takes precedence over queryType auto-injection; it does not replace the actual DQL in targets, and an error echo structure does not prove checks are working. Example: []How to obtain or enter: For existing client echo configurations, obtain the complete array directly from the original details. |
|
| extend.querylist[*] | json | Dynamic editor object, saved according to client version; actual checks only use targets. Example: {"qtype": "dql", "query": {"q": "M::cpu:(avg(usage_idle)) BY host"}}How to obtain or enter: A single query echo generated by the client editor. |
|
| extend.querylist[*].qtype | string | Does not automatically convert the executed query. Example: dqlHow to obtain or enter: 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 enter: Query editing structure generated by the client. |
|
| extend.querylist[*].query.q | string | Complete DQL/PromQL echo. Example: M::cpu:(avg(usage_idle)) BY hostHow to obtain or enter: Keep consistent with the actual targets query text. |
|
| configVersion | integer | Older versions may omit this; V2 modifications require the current positive integer version; an outdated version returns HTTP 409 ft.SmartMonitorVersionConflict; do not customize the final version on creation. $minValue: 1 Example: 1How to obtain or enter: Obtain from content.configVersion in the current V2 details. |
|
| generationId | string | Optional candidate credential; binds the workspace/identity/target rule and prompt; when carried by AI V2, it must match a valid candidate. Trusted compatible OpenAPI creation may omit credentials; changing an existing prompt requires regeneration before carrying it, and it cannot be forged. It is not a configuration UUID or execution task ID. Example: GENERATION-IDHow to obtain or enter: Obtain from the X-Smart-Monitor-Generation-Id response of Smart Monitoring Generation. |
|
| queryType | string | Optional, defaults to dql; only simple/dql are supported; when extend.querylist is explicit, it takes precedence and its injection semantics are ignored. If simple parsing fails, fall back to dql without changing the actual targets query. Allows null: False Example: dqlHow to obtain or enter: The original execution query is in jsonScript.targets[].dql; this field only controls client editor echo conversion. |
|
| type | string | Optional on creation, defaults to trigger; do not use jsonScript.type in place of this entity type. Smart Monitoring V2 requires smartMonitor; old Smart Monitoring still retains OpenAPI write compatibility. Modifications that do not declare type inherit the original category, and the Smart Monitoring execution version cannot be switched arbitrarily. Allows null: False Example: triggerHow to obtain or enter: For standard rules choose trigger; for old/new Smart Monitoring choose smartMonitor; for AI semantic monitoring choose aiMonitor. |
|
| status | integer | Optional, defaults to 0. Omitting it on modification is treated as enabled and does not preserve the disabled state; to modify only the configuration of a disabled rule, explicitly set status=2. Allows null: False Allowed values: [0, 2] Example: 0How to obtain or enter: 0 enabled, 2 disabled. |
|
| extend | json | Optional; null is normalized to {} by OpenAPI. Public create/update injects rules/querylist; an explicit object is processed as a whole configuration and is not deeply merged. If modification omits it entirely, it is still written after echo normalization, so you cannot rely on the old extend being fully preserved automatically; important fields must be backfilled. Allows null: True Example: {}How to obtain or enter: Anomaly association and client echo for standard rules; fill in according to the nested fields below; obtain from the current details when editing. |
|
| alertPolicyUUIDs | array | Optional. On creation, omitting it results in [] and no binding; on modification, omitting it preserves the original association, and an explicit [] clears it. The entire input set is validated for availability, not silently filtered; a disabled policy does not mean notifications can currently be sent. Allows null: False Example: ["altpl_example"]How to obtain or enter: Get non-deleted policy uuids in this workspace from the Alert Policy List. |
|
| dashboardUUID | string | Optional; validity is checked when associating on creation. On modification, omitting it or passing an empty string both remove the existing dashboard reference; they do not preserve it. Allows null: False Example: dsbd_exampleHow to obtain or enter: Get a valid object UUID in this workspace from the Dashboard List. |
|
| tags | array | Optional name array, not UUIDs. On creation, omitting it results in [] and no tags; on modification, omitting it updates the reference as [] and may clear old tags. Validation is by tag scope; if it does not match the monitor scope, TagScopeMismatch may be reported. Allows null: False Example: ["production"]How to obtain or enter: Get tag names applicable to the monitor scope from the Tag List; when a new name is needed, create it according to tag management rules. |
|
| tags[*] | string | Single name string, not a UUID. Allows null: False Example: productionHow to obtain or enter: Get a single business tag name applicable to the monitor/all scope from the tag list. |
|
| secret | string | Optional; if external events do not provide it, the server can generate it. It is globally unique (including other workspaces/historical records), not just unique in the current workspace; on modification, omitting it or passing an empty string preserves the original secret, and only a non-empty value replaces it and is validated for global uniqueness; changing it affects the Webhook address. Do not write real secrets to logs or public documentation. Allows null: False Example: SECRET-PLACEHOLDERHow to obtain or enter: Only used by OuterEventChecker; generate an unpredictable unique random identifier; keep the Webhook address from trusted details afterward. |
|
| jsonScript | json | The complete object must be provided for business purposes, although the parent declares it optional. On modification, backfill the entire configuration; V2 and AI semantic configurations differ from standard checks, and the entire get response should not be used as the Body. Use only fields declared on this page; do not add undeclared keys such as internal fixed Cron/multi-workspace arrays. Allows 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 enter: First select a check type supported on this page, then fill in the complete check/template/query/trigger definition. |
|
| jsonScript.targetWorkspaceUUID | string | Optional, defaults to the current workspace. Applies to cross-workspace query consumption for simpleCheck, seniorMutationsCheck, seniorRangeCheck, seniorRangeV2Check, outlierCheck; writes only generate a candidate index_list and validate the data scope permission of the calling identity; a successful save does not mean the source authorization has been fully reviewed or that data is queryable; confirm the actual target authorization before calling. V2 prohibits this; use YAML queries within an authorized workspace. Allows null: False Allows empty string: False Example: wksp_source_exampleHow to obtain or enter: Get a single source workspace from valid Cross-Workspace Authorization. |
|
| jsonScript.type | string | Conditionally required | Required plugin identifier; historical compatibility such as mutationsCheck/rangeCheck/seniorCheck and old smart* still need to be maintained according to the original configuration, and must not be replaced by the entity type. Specific fields apply only to their type and cannot be mixed. V2 and older versions cannot be switched between each other. Allows null: False Example: simpleCheckHow to obtain or enter: Choose according to the check method: standard simpleCheck threshold, apmCheck/rumCheck/processCheck/cloudDialCheck/networkCheck/objectCheck; advanced seniorMutationsCheck/seniorRangeCheck/seniorRangeV2Check/outlierCheck; combinedCheck for combination, OuterEventChecker for external events, programmableCheck for programmable; Smart Monitoring V2 smartMonitorV2Check, AI semantic aiMonitor (same name as the entity type but different field level). |
| jsonScript.windowDql | string | Optional compatible window query text; passes through extra event material and does not replace the actual check query in targets; omit to not provide. Allows null: False Example: M::cpu:(avg(usage_idle)) BY hostHow to obtain or enter: Obtain from a verified original check window display query or details of the same type. |
|
| jsonScript.title | string | Conditionally required | Required string, non-empty recommended; maximum 256 counted as 1 for ASCII/half-width katakana and 2 for other characters. A non-empty value is copied as the rule name and participates in duplicate-name checks; standard/self-built inspections share a duplicate-name group, while Smart Monitoring/AI have their own groups. Whether variables exist at template runtime requires validation with real events. Allows null: False Allows empty string: True Maximum length: 256 Example: 生产CPU阈值How to obtain or enter: Define the rule/anomaly event title by the business; template variables from check results may be used. |
| jsonScript.message | string | event content; optional depending on the corresponding check type; modification cannot treat omission as retention, and the entire configuration must be backfilled. Optional; if omitted, no separate text is provided; the current standard construction uses title/message and no-data text as the main sources, and legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated. Allows null: False Allows empty string: True Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual check dimensions and result variables; reuse from verified events of the same type. |
|
| jsonScript.recoverTitle | string | Output recovery event title template; optional depending on the corresponding check type; modification cannot treat omission as retention, and the entire configuration must be backfilled. Optional; if omitted, no separate text is provided; the current standard construction uses title/message and no-data text as the main sources, and legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated. Allows null: False Allows empty string: True Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual check dimensions and result variables; reuse from verified events of the same type. |
|
| jsonScript.recoverMessage | string | Output recovery event information template; optional depending on the corresponding check type; modification cannot treat omission as retention, and the entire configuration must be backfilled. Optional; if omitted, no separate text is provided; the current standard construction uses title/message and no-data text as the main sources, and legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated. Allows null: False Allows empty string: True Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual check dimensions and result variables; reuse from verified events of the same type. |
|
| jsonScript.noDataTitle | string | Output no-data event title template; optional depending on the corresponding check type; modification cannot treat omission as retention, and the entire configuration must be backfilled. Optional; if omitted, no separate text is provided; the current standard construction uses title/message and no-data text as the main sources, and legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated. Allows null: False Allows empty string: True Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual check dimensions and result variables; reuse from verified events of the same type. |
|
| jsonScript.noDataMessage | string | Output no-data event information template; optional depending on the corresponding check type; modification cannot treat omission as retention, and the entire configuration must be backfilled. Optional; if omitted, no separate text is provided; the current standard construction uses title/message and no-data text as the main sources, and legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated. Allows null: False Allows empty string: True Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual check dimensions and result variables; reuse from verified events of the same type. |
|
| jsonScript.openNotificationMessage | boolean | Optional, default false; when disabled, the corresponding event content is used; when enabled, also provide the corresponding notificationMessage/noDataNotificationMessage. Allows null: False Example: falseHow to obtain or enter: Set true when notification-specific content is needed separately. |
|
| jsonScript.notificationMessage | string | Event notification content; optional depending on the corresponding check type; modification cannot treat omission as retention, and the entire configuration must be backfilled. Optional; if omitted, no separate text is provided; the current standard construction uses title/message and no-data text as the main sources, and legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated. Allows null: False Allows empty string: True Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual check dimensions and result variables; reuse from verified events of the same type. |
|
| jsonScript.openNoDataNotificationMessage | boolean | Optional, default false; when disabled, the corresponding event content is used; when enabled, also provide the corresponding notificationMessage/noDataNotificationMessage. Allows null: False Example: falseHow to obtain or enter: Set true when notification-specific content is needed separately. |
|
| jsonScript.noDataNotificationMessage | string | Data gap event notification content; optional depending on the corresponding check type; modification cannot treat omission as retention, and the entire configuration must be backfilled. Optional; if omitted, no separate text is provided; the current standard construction uses title/message and no-data text as the main sources, and legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated. Allows null: False Allows empty string: True Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual check dimensions and result variables; reuse from verified events of the same type. |
|
| jsonScript.noDataRecoverTitle | string | Output no-data recovery upload event title template; optional depending on the corresponding check type; modification cannot treat omission as retention, and the entire configuration must be backfilled. Optional; if omitted, no separate text is provided; the current standard construction uses title/message and no-data text as the main sources, and legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated. Allows null: False Allows empty string: True Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual check dimensions and result variables; reuse from verified events of the same type. |
|
| jsonScript.noDataRecoverMessage | string | Output no-data recovery upload event information template; optional depending on the corresponding check type; modification cannot treat omission as retention, and the entire configuration must be backfilled. Optional; if omitted, no separate text is provided; the current standard construction uses title/message and no-data text as the main sources, and legacy recover-specific fields do not guarantee separate coverage for every check. message and noDataMessage for supported types are first parsed for Jinja syntax, but runtime values of unknown variables are not validated. Allows null: False Allows empty string: True Example: 主机 {{host}} 检测结果 {{Result}}How to obtain or enter: Write event/notification templates according to actual check dimensions and result variables; reuse from verified events of the same type. |
|
| jsonScript.every | string | Standard common plugins require every or customCrontab; maximum 24h, minimum recommended 20s. Use a valid positive integer format; do not use 0/negative values or d/w; some format issues may return 500. V2 fixes 10m and the server overrides every; AI semantics use their own check frequency. Allows null: False Example: 1mHow to obtain or enter: Choose a positive integer + s/m/h according to business check frequency, e.g. 1m, 5m, 1h. |
|
| jsonScript.customCrontab | string | Optional; if non-empty, takes precedence over every; supports 5 segments or 6 segments with seconds; the second step form must not be less than 20. Combined monitoring and combined members have custom frequency conflict restrictions; V2 prohibits this. The check time zone depends on the current workspace/service configuration; do not replace the field with a time zone name in the string. Allows null: False Example: 0 */5 * * * *How to obtain or enter: When using a custom frequency, enter the complete expression in the Cron editor. |
|
| jsonScript.delaySeconds | integer | Optional standard monitoring data wait window, in seconds; 0 means no wait, default 0; booleans are not treated as integers. Smart Monitoring/AI do not use the standard wait configuration and cannot use it to adjust Smart Monitoring execution delay. Allows null: False Allowed values: [0, 60, 120, 180, 300, 600, 900, 1800] Example: 60How to obtain or enter: Choose 0/60/120/180/300/600/900/1800 according to data arrival delay. |
|
| jsonScript.interval | integer | Standard checks with targets require 1..2592000 seconds (30 days); this differs from the every check frequency. Combined monitoring skips this general check; V2 uses YAML query.interval/lookback instead. Allows null: False Example: 300How to obtain or enter: Choose a positive integer number of seconds according to the time range required for the check, coordinated with the actual data granularity. |
|
| jsonScript.range | integer | Optional depending on type. Current comparison window for advanced mutation, positive integer seconds. Modifications should fully preserve applicable settings and not mix units. Allows null: False Example: 3600How to obtain or enter: Determine the window/offset/duration by business, and verify first with the corresponding type details and actual events. |
|
| jsonScript.range_2 | integer | Optional depending on type. Advanced mutation comparison window setting: -1 for period-over-period, 0 for periodBefore, others as the second window defined by the corresponding advanced check. Modifications should fully preserve applicable settings and not mix units. Allows null: False Example: -1How to obtain or enter: Determine the window/offset/duration by business, and verify first with the corresponding type details and actual events. |
|
| jsonScript.periodBefore | integer | Optional depending on type. Comparison offset in seconds for advanced mutation, e.g. yesterday 86400; fill together with range/range_2. Modifications should fully preserve applicable settings and not mix units. Allows null: False Example: 86400How to obtain or enter: Determine the window/offset/duration by business, and verify first with the corresponding type details and actual events. |
|
| jsonScript.recoverNeedPeriodCount | integer | Optional depending on type. For standard frequency, this is the number of consecutive recovery periods; for customCrontab, it is the recovery duration in seconds; default 0. Modifications should fully preserve applicable settings and not mix units. Allows null: False Example: 1How to obtain or enter: Determine the window/offset/duration by business, and verify first with the corresponding type details and actual events. |
|
| jsonScript.noDataInterval | integer | Optional depending on type. No-data duration in seconds; for standard frequency it is rounded up to the whole check period, for custom frequency it is directly in seconds; repeat no-data requires a positive integer. Modifications should fully preserve applicable settings and not mix units. Allows null: False Example: 600How to obtain or enter: Determine the window/offset/duration by business, and verify first with the corresponding type details and actual events. |
|
| jsonScript.noDataAction | string | Optional none/checkAs0/noDataEvent/noDataEventRepeat/fatalEvent/criticalEvent/errorEvent/warningEvent/okEvent/noData/recover. noDataEventRepeat is supported only for its applicable types and requires a positive integer noDataInterval; omission/empty compatibility values and positive durations have special historical handling, so do not rely on default implementation for repeated alerts. Allows null: False Allowed values: ['none', 'checkAs0', 'noDataEvent', 'noDataEventRepeat', 'fatalEvent', 'criticalEvent', 'errorEvent', 'warningEvent', 'okEvent', 'noData', 'recover'] Example: noDataEventHow to obtain or enter: Choose from the enum values of this parameter according to the business meaning of no data. |
|
| jsonScript.checkFuncs | array | Optional; standard thresholds do not require it; seniorCheck uses the first item's funcId/kwargs, and not all functions are treated as general parameters. Allows null: False Example: []How to obtain or enter: Only maintain historical check types that use this compatible custom function structure, and obtain from original details/function definitions. |
|
| jsonScript.groupBy | array | Optional dimension name array; usually [] means no additional dimension grouping; these are not tag values. Combined monitoring member dimensions must be compatible. Allows null: False Example: ["host"]How to obtain or enter: Select from the grouping fields returned by the actual DQL, consistent with the BY dimensions. |
|
| jsonScript.targets | array | Standard query target array; put the actual DQL/PromQL statement in dql; standard common plugins only accept Result or an empty alias, and check alias uniqueness; a single target Result is recommended. Combined monitoring uses monitorCheckerId/alias to associate members; V2 prohibits targets, put everything in YAML. Allows null: False Example: [{"dql": "M::cpu:(avg(usage_idle)) BY host", "alias": "Result", "qtype": "dql"}]How to obtain or enter: Verify the query first in the same data source in the target workspace; fields/indexes must actually exist. |
|
| jsonScript.checkerOpt | json | Standard rules commonly use rules; advanced types fill in according to the corresponding algorithm, V2 uses yamlConfig, AI semantics uses userPrompt, etc.; undeclared child fields are rejected by public validation, so do not copy the entire internal SDK parameters. Allows null: False Example: {"rules": [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]}How to obtain or enter: Choose the following trigger/algorithm/AI configuration according to jsonScript.type. |
|
| jsonScript.checkerOpt.enableStreamingAggregation | boolean | Optional tri-state. Only controls streaming aggregation acceleration for supported types; it does not equal monitor enable/disable or change DQL semantics. Allows null: True Example: trueHow to obtain or enter: Set true/false when an independent switch is needed; omit or null to follow workspace configuration. |
|
| jsonScript.checkerOpt.yamlConfig | string | Required only for V2; non-empty UTF8 YAML text ≤256KiB, not a JSON object or Markdown fence; see the YAML table on this page for structure. Anchors/aliases/explicit tags/duplicate keys are prohibited. Modifications may only change existing DQL, threshold configuration, and algorithm params, and cannot change the rule set/name/execution structure; saving validates the protocol/budget and resolves data scope permissions for check queries, but does not execute DQL or guarantee data exists/source authorization has been fully reviewed. Example: "version: 1\nname: production\nevent:\n title: \"{{Scene.problem_title}}\"\n message: \"{{Scene.problem_message}}\"\nrules:\n - id: cpu_idle\n name: CPU idle\n query:\n dql: \"M::cpu:(avg(usage_idle)) BY host\"\n scene_by: [host]\n detect:\n threshold:\n operator: \"<\"\n operands: [10]\n display:\n signal: CPU idle\n"How to obtain or enter: 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 keeps protection. Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| jsonScript.checkerOpt.script | string | Type-specific parameter. Programmable check script text, using the syntax supported by that type; this API does not execute a script test. Allows null: False Allows empty string: True Example: return {}How to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current check type. |
|
| jsonScript.checkerOpt.rules | array | Standard rule condition array; each item has status/conditionLogic/conditions, and okConditions is used for recovery. Invalid members/operator shapes may throw ordinary exceptions and ultimately 500, not always 406. Conditions with empty operands are filtered before constructing the schedule; do not use them to mean "all". Allows null: False Example: [{"status": "warning", "conditionLogic": "and", "conditions": [{"alias": "Result", "operator": "<", "operands": [10]}]}]How to obtain or enter: Construct according to the levels allowed to trigger events and the target Result. |
|
| jsonScript.checkerOpt.openOkConditions | boolean | Optional boolean. true enables graded recovery, default false; okConditions must satisfy the trigger and recovery boundaries. Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| jsonScript.checkerOpt.openMatchTimes | boolean | Optional boolean. true enables consecutive trigger matching, default false; used with rules[].matchTimes. Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| jsonScript.checkerOpt.infoEvent | boolean | Optional boolean. true generates info when continuously normal, default false; infoEventCondition controls conditions by type. Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| jsonScript.checkerOpt.infoEventCondition | json | Optional; {} means unconditional Info. Applies only to supported types such as standard threshold/log/application and RUM metrics/availability/process/network/mutation/range; outlier/combined/liveness V2/change/programmable/Smart Monitoring/SLO are not supported, and passing it reports UnsupportTriggerFields. If non-empty, alias/operator/operands must be complete and valid. Allows null: False Example: {"alias": "Result", "operator": ">=", "operands": [60]}How to obtain or enter: Construct from actual query results and normal business thresholds. |
|
| jsonScript.checkerOpt.infoEventCondition.alias | string | Fill within a non-empty Info condition according to the structure; corresponds to the targets alias. Example: ResultHow to obtain or enter: Keep consistent with the actual query target and threshold. |
|
| jsonScript.checkerOpt.infoEventCondition.operator | string | Fill within a non-empty Info condition according to the structure; choose from the standard condition operators on this page. Example: >=How to obtain or enter: Keep consistent with the actual query target and threshold. |
|
| jsonScript.checkerOpt.infoEventCondition.operands | array | Fill within a non-empty Info condition according to the structure; comparison value array, elements are strings/numbers, do not pass objects. Example: [60]How to obtain or enter: Keep 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: percentHow to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current check type. |
|
| jsonScript.checkerOpt.direction | string | Type-specific parameter. Advanced mutation/range up/down/both; must be explicitly provided. Allowed values: ['up', 'down', 'both'] Example: bothHow to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current check type. |
|
| jsonScript.checkerOpt.eps | float | Type-specific parameter. Required for outlier, number 0..3.0; this algorithm does not use standard rules condition validation. Example: 0.5How to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current check type. |
|
| jsonScript.checkerOpt.threshold | json | Optional object; when provided, status/operator/value are all declared required; status=false disables the precondition check, value allows null but should be filled according to the algorithm's actual meaning. Allows null: False Example: {"status": false, "operator": ">", "value": 90}How to obtain or enter: The trigger precondition for advanced mutation, determined by actual business thresholds. |
|
| jsonScript.checkerOpt.threshold.status | boolean | Conditionally required | Required when the parent object exists; whether to enable the precondition. Example: falseHow to obtain or enter: Fill in according to the advanced mutation precondition definition. |
| jsonScript.checkerOpt.threshold.operator | string | Conditionally required | Required when parent exists; precondition comparison operator, e.g. >, according to the actual advanced check compatibility set. Example: >How to obtain or enter: Fill in according to the advanced mutation precondition definition. |
| jsonScript.checkerOpt.threshold.value | float | Conditionally required | Required when parent exists; precondition value; status=false allows null, status=true requires a number, otherwise IllegalMutationParameters; unit must match the query result. Allows null: True Example: 90How to obtain or enter: Fill in according to the advanced mutation precondition definition. |
| jsonScript.checkerOpt.combineExpr | string | Type-specific parameter. Combined member alias expression; required and non-empty for combined type; do not use Result in place of member aliases. Allows empty string: False Example: A && BHow to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current check type. |
|
| jsonScript.checkerOpt.ignoreNodata | boolean | Optional boolean. Only combined monitoring true ignores no data; default false. Example: falseHow to obtain or enter: Confirm this alert/event handling behavior with the business. |
|
| jsonScript.checkerOpt.confidenceInterval | integer | Type-specific parameter. Range V2 confidence interval 1..100, configure according to the actual algorithm. Example: 90How to obtain or enter: Check the specific algorithm meaning in the editor/original details according to the current check type. |
|
| jsonScript.checkerOpt.category | string | AI semantic only. AI semantic category metadata, optional string. Allows null: False Example: customHow to obtain or enter: Configure according to the AI semantic monitoring capabilities and business budget of this workspace; omit optional items to let the AI service use default policies. |
|
| jsonScript.checkerOpt.userPrompt | string | AI semantic only. Required non-empty for AI semantics, Python characters ≤20000; although an empty string is declared, business logic does not accept blank. Allows null: False Allows empty string: True Maximum length: 20000 Example: 分析最近5分钟生产服务错误率是否异常。How to obtain or enter: Configure according to the AI semantic monitoring capabilities and business budget of this workspace; omit optional items to let the AI service use default policies. |
|
| jsonScript.checkerOpt.systemPrompt | string | AI semantic only. Optional for AI semantics; if passed, non-empty, Python characters ≤20000. Allows null: False Allows empty string: True Maximum length: 20000 Example: 结合实际查询结果判断,不臆测缺失数据。How to obtain or enter: Configure according to the AI semantic monitoring capabilities and business budget of this workspace; omit optional items to let the AI service use default policies. |
|
| jsonScript.checkerOpt.mentions | array | AI semantic optional, default []; each item has type=dql, non-empty namespace/datasource, index optional but non-empty if passed; normalized JSON serialization total length ≤20000 characters. Does not replace data query authorization. Allows null: False Example: [{"type": "dql", "namespace": "logging", "index": "default", "datasource": "nginx"}]How to obtain or enter: Obtain reference metadata from the actual DQL namespace, log index, and source. |
|
| jsonScript.checkerOpt.mentions[*] | object | type/namespace/datasource required, index optional; only these four fields are declared. Example: {"type": "dql", "namespace": "logging", "index": "default", "datasource": "nginx"}How to obtain or enter: One DQL reference per item. |
|
| jsonScript.checkerOpt.mentions[*].type | string | Conditionally required | Within a reference item, fixed to dql. Allowed values: ['dql'] Example: dqlHow to obtain or enter: Select from actual data in the same target workspace. |
| jsonScript.checkerOpt.mentions[*].namespace | string | Conditionally required | Within a reference item, the actual DQL namespace, not the entity type. Allows empty string: False Example: loggingHow to obtain or enter: Select from actual data in the same target workspace. |
| jsonScript.checkerOpt.mentions[*].index | string | Within a reference item, fill in the actual index name/identifier for log references; other types may omit it. Allows empty string: False Example: defaultHow to obtain or enter: Select from actual data in the same target workspace. |
|
| jsonScript.checkerOpt.mentions[*].datasource | string | Conditionally required | Within a reference item, the actual data source name, e.g. log source/measurement, interpreted by namespace. Allows empty string: False Example: nginxHow to obtain or enter: Select from actual data in the same target workspace. |
| jsonScript.checkerOpt.model | string | AI semantic only. AI semantic optional model name; obtain from a model configuration supported by the site, and do not use the literal example in the documentation. Allows null: False Example: example-modelHow to obtain or enter: Configure according to the AI semantic monitoring capabilities and business budget of this workspace; omit optional items to let the AI service use default policies. |
|
| jsonScript.checkerOpt.contextWindowLimit | integer | AI semantic only. Positive integer token context limit, ≥1. Allows null: False $minValue: 1 Example: 8192How to obtain or enter: Configure according to the AI semantic monitoring capabilities and business budget of this workspace; omit optional items to let the AI service use default policies. |
|
| jsonScript.checkerOpt.maxChatRounds | integer | AI semantic only. Maximum conversation rounds, integer ≥1. Allows null: False $minValue: 1 Example: 3How to obtain or enter: Configure according to the AI semantic monitoring capabilities and business budget of this workspace; omit optional items to let the AI service use default policies. |
|
| jsonScript.checkerOpt.maxDQLQueries | integer | AI semantic only. Maximum DQL calls, integer ≥0. Allows null: False $minValue: 0 Example: 3How to obtain or enter: Configure according to the AI semantic monitoring capabilities and business budget of this workspace; omit optional items to let the AI service use default policies. |
|
| jsonScript.checkerOpt.creditSoftBudget | number | AI semantic only. Soft budget per Credit, finite number >0; it is not an API execution timeout. Allows null: False Example: 10How to obtain or enter: Configure according to the AI semantic monitoring capabilities and business budget of this workspace; omit optional items to let the AI service use default policies. |
|
| jsonScript.channels | array | Optional array, default []; channels are used to associate Incident, not as direct notification targets; the server may add a default channel/filter invalid channels. @external email is restricted in Free Plan; saving does not mean a notification has been sent. Allows null: False Example: ["chan_example"]How to obtain or enter: For channels, get the uuid from the Channel List; for @identities, get the account uuid or supported email from the Member List. |
|
| jsonScript.atAccounts | array | Optional array, default []; channels are used to associate Incident, not as direct notification targets; the server may add a default channel/filter invalid channels. @external email is restricted in Free Plan; saving does not mean a notification has been sent. Allows null: False Example: ["acnt_example"]How to obtain or enter: For channels, get the uuid from the Channel List; for @identities, get the account uuid or supported email from the Member List. |
|
| jsonScript.atNoDataAccounts | array | Optional array, default []; channels are used to associate Incident, not as direct notification targets; the server may add a default channel/filter invalid channels. @external email is restricted in Free Plan; saving does not mean a notification has been sent. Allows null: False Example: ["acnt_example"]How to obtain or enter: For channels, get the uuid from the Channel List; for @identities, get the account uuid or supported email from the Member List. |
|
| jsonScript.subUri | string | OuterEventChecker requires a new non-empty string; the public receive URL is a single path segment and cannot contain / (encoding %2F still returns 404); alphanumeric and hyphens are recommended. Multiple rules may share the same suffix; secret is responsible for uniqueness; do not fill for standard checks. Allows null: False Example: datakit-pushHow to obtain or enter: Choose a Webhook suffix for the current external event integration. |
|
| jsonScript.isChangeEvent | boolean | OuterEventChecker optional, default false; other types do not use it. Allows null: False Example: falseHow to obtain or enter: Set true when the external event is a Change Event. |
|
| jsonScript.disableCheckEndTime | boolean | Optional compatibility boolean, default false; actual support depends on check type. Allows null: False Example: falseHow to obtain or enter: Set true when the check end time limit needs to be removed. |
|
| jsonScript.eventChartEnable | boolean | Optional, default false; processed only by supported Doris log primary storage; successful save does not prove the chart has been generated. Allows null: False Example: falseHow to obtain or enter: Select when the data storage capability supports event charts. |
|
| jsonScript.eventCharts | array | Optional chart configuration array; provide together when enabling event charts; actual results are generated by the event processing chain and are not returned in the write response. Allows null: False Example: [{"dql": "M::cpu:(avg(usage_idle)) BY host"}]How to obtain or enter: Verify queries used for event display against actual data. |
|
| jsonScript.eventCharts[*] | object | Declares only the dql child field. Example: {"dql": "M::cpu:(avg(usage_idle)) BY host"}How to obtain or enter: A single verified chart query. |
|
| jsonScript.eventCharts[*].dql | string | Optional query text, not a chart UUID; saving does not execute the chart query. Allows null: False Example: M::cpu:(avg(usage_idle)) BY hostHow to obtain or enter: Write DQL from actual metrics/fields in a supported data source. |
|
| openPermissionSet | boolean | Optional, default false; omitting it on modification restores false. This permission only constrains resource operations and cannot replace API permissions or data query authorization. Allows null: False Example: falseHow to obtain or enter: Set true when operations need to be restricted to specified principals. |
|
| permissionSet | array | Optional, default [], omitting it on modification restores []; principals can be non-Owner roles, acnt_ members, group_ teams, used with openPermissionSet. Verify valid identities first; do not treat successful saving as proof that every principal actually has access. Allows null: False Example: ["wsAdmin"]How to obtain or enter: Obtain operation principal identifiers from role, member, and team management in this workspace. |
Additional Parameter Notes¶
Internal fields of V2 yamlConfig (submitted as a complete YAML string):
| YAML Field | Type | Values, Sources, and Omission Rules |
|---|---|---|
version |
integer |
Required, fixed at 1. |
name |
string |
Required and non-empty, ≤128 characters after trim; cannot be changed after being defined on creation. |
event.title / event.message |
string |
Both required and non-empty, ≤8000 characters; only public Scene. variables are allowed; Jinja control blocks/comments are not supported. |
rules |
array |
Required, 1..10 items, at least one with enabled=true. |
rules[].id |
string |
Required and unique; regex [a-z][a-z0-9_]{2,63}. |
rules[].name |
string |
Required and non-empty, ≤128 characters after trim. |
rules[].enabled |
boolean |
Optional, default true; current modifications do not allow changing the structural enable/disable state. |
rules[].query.dql |
string |
Required, actually authorizable DQL; the whole UTF8 content is still subject to the 256KiB total limit; modification is allowed. |
rules[].query.interval |
string |
Optional positive integer + s/m/h/d, ≤24h; seasonal defaults to 5m, others default to 1m. |
rules[].query.lookback |
string |
Optional auto (default) or positive integer + s/m/h/d; must not exceed the budget. |
rules[].scene_by |
array<string> |
Required, non-empty, and unique actual dimension fields after trimming whitespace. |
rules[].detect |
object |
Choose either threshold or algorithm, not both; the threshold branch does not include params. |
rules[].detect.threshold.operator |
string |
Required: >, >=, <, <=, ==, !=, between, outside. |
rules[].detect.threshold.operands |
array<number> |
For comparison, 1 finite number; between/outside require exactly 2, with lower bound ≤ upper bound. |
rules[].detect.threshold.consecutive |
integer |
Optional, default 1, 1..60. |
rules[].detect.algorithm |
string |
basic.robust_band@1, seasonal.robust_mad@2, seasonal.adaptive_mad@1, peer.robust_mad@1; seasonal.robust_mad@1 is compatible only with existing configurations. |
rules[].detect.params |
object or null |
Allowed keys depend on the 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; if omitted/empty, estimated by 1-day sampling points; old @1 requires 2..10080. |
rules[].detect.params.consecutive |
integer |
Only old seasonal@1 can use 1..60, default 1. |
rules[].detect.params.min_cycles |
integer |
Only old seasonal@1, default 3, 2..12. |
rules[].detect.params.peer_by |
array<string> |
Required for peer, may be empty, but each item must be unique after trimming and must be a subset of scene_by. |
rules[].no_data |
object or null |
Optional, default ignore/1; allowed keys action, consecutive. |
rules[].no_data.action |
string |
ignore/anomaly, default ignore. |
rules[].no_data.consecutive |
integer |
Default 1, 1..60. |
rules[].display.signal |
string |
Required and non-empty, ≤128 characters after trim. |
rules[].display.unit |
string or null |
Optional, ≤64 characters; the unit display does not modify the original query value. |
The 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, and problem_title. The sampling history budget must be ≤10000 points and ≤60 days at the same time; basic daily sampling is at most 61 days. Algorithm history/evidence/consecutive trigger requirements are counted together in the budget; an explicit lookback cannot bypass it. Modifications may only change DQL, existing threshold configuration, and algorithm.params; other execution structure/rule metadata must remain at their original values.
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/checker/add' \
-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":[],"type":"trigger"}'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.id | integer or null | Current monitor database record ID; use uuid for subsequent calls. This creation-phase snapshot may be null. |
| content.uuid | string | Current monitor rul_ UUID; use this identifier for details, modifications, and deletions. |
| 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; this differs from jsonScript.type check algorithm. |
| content.refKey | string | Compatibility business association key, usually an empty string. |
| content.secret | string or null | Shared field such as external event Webhook identifier; do not treat it as a general API Key; do not write sensitive real values to logs. |
| content.jsonScript | object | Saved check configuration, interpreted according to jsonScript.type and version. Reading does not execute a check. |
| content.crontabInfo | object | Scheduling configuration; fields vary by single/multiple workspace and algorithm, and 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 monitor without Cron); differs from input every. |
| content.crontabInfo.smartRelId | string | Attached schedule ID for some Smart Monitoring, may be omitted. |
| content.crontabInfo.multiWsCrontabInfo | array<object> |
Per-workspace scheduling data; historical data may exist; 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 it back in its entirety for modification. |
| content.extend.自定义字段 | JSON | Historical or type-specific saved value; refer to the current type details and the public creation API structure. |
| content.createdWay | string | manual/import/template or historical empty value. |
| content.isLocked | integer or boolean | Lock flag for the current monitor configuration; 1 is locked, 0 is unlocked; does not indicate a historical configuration version. |
| content.openPermissionSet | boolean | Custom operation permission switch; reading success cannot be used to infer modifiability. |
| content.permissionSet | array<string> |
Custom operation principal UUIDs. |
| content.permissionSet[] | string | Account/team/role identifier. |
| content.status | integer | 0 enabled, 2 disabled; non-deletion 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 standard 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 check types. |
| content.jsonScript.type | string | Check method type. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.windowDql | string | window dql. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.title | string | Title of the generated event. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.message | string | event content. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.recoverTitle | string | Output recovery event title template. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.recoverMessage | string | Output recovery event information template. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.noDataTitle | string | Output no-data event title template. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.noDataMessage | string | Output no-data event information template. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.openNotificationMessage | boolean | Whether to enable event notification content; default is disabled (use event content as notification content). This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.notificationMessage | string | Event notification content. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.openNoDataNotificationMessage | boolean | Whether to enable data gap event notification content; default is disabled (use data gap event content as notification content). This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.noDataNotificationMessage | string | Data gap event notification content. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.noDataRecoverTitle | string | Output no-data recovery upload event title template. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.noDataRecoverMessage | string | Output no-data recovery upload event information template. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.every | string | Check frequency. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.customCrontab | string | Custom check frequency. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.delaySeconds | integer | Standard monitor data wait window, in seconds; 0 means no wait; Smart Monitoring does not support this configuration. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.interval | integer | Query interval, i.e., the time range difference for one query. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.range | integer | range parameter for advanced checks and mutation checks, in seconds. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.range_2 | integer | range_2 parameter for advanced checks and mutation checks, in seconds. Special notes: -1 means period-over-period, 0 means use the periodBefore field. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.periodBefore | integer | Parameter for advanced checks and mutation checks (yesterday/one hour ago), in seconds. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, 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 saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.noDataInterval | integer | How long without data before a no-data event is generated; must be a positive integer number of seconds when noDataEventRepeat is used. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.noDataAction | string | No-data handling action. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkFuncs | array | Check function information list. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.groupBy | array | Trigger dimensions. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.targets | array | Check targets. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt | json | Check condition settings. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, 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 saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.yamlConfig | string | Complete V2 source YAML text, maximum 256KiB; not a JSON object and without Markdown fences. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.disableLargeScaleEventProtect | boolean | Whether to disable large-scale event protection; default false. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.script | string | Script content for programmable monitoring. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.rules | array | Trigger condition list. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.openOkConditions | boolean | Enable graded recovery; default disabled false. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.openMatchTimes | boolean | Enable consecutive trigger matching; default disabled false. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.infoEvent | boolean | Whether to generate an info event while continuously normal; default false. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.infoEventCondition | json | Info event generation conditions; supports thresholds for standard rule checks, logs, application/RUM metrics, availability, process, network, mutation, range, and compatible legacy types; does not support outlier, combined, liveness V2, change, programmable, Smart Monitoring, and SLO. An empty object means unconditional generation. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.infoEventCondition.alias | string | Judgment object alias. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.infoEventCondition.operator | string | Judgment operator. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.infoEventCondition.operands | array | Judgment operand list. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.diffMode | string | Difference mode for mutation checks in advanced checks; enum values: value, percent. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.direction | string | Trigger condition direction for mutation checks and range checks in advanced checks. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.eps | float | Distance parameter, range: 0 to 3.0. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.threshold | json | Precondition settings for mutation check triggering. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.threshold.status | boolean | Whether the trigger precondition is enabled for mutation checks. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.threshold.operator | string | Trigger precondition operator for mutation checks. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.threshold.value | float or null | Trigger precondition check value for mutation checks. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.combineExpr | string | Combined monitoring expression. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.ignoreNodata | boolean | Combined monitoring; whether to ignore no-data results (true means ignore). This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.confidenceInterval | integer | New parameter for Range Check V2; confidence interval range 1-100. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.category | string | AI monitoring category metadata. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.userPrompt | string | AI user prompt; must not be empty when passed; maximum 20000 characters. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.systemPrompt | string | AI system prompt; must not be empty when passed; maximum 20000 characters. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.mentions | array | DQL reference list; each item must contain type=dql, namespace, and datasource; index is optional and should be filled when selecting logs; maximum 20000 characters after serialization. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.mentions[] | object | Single object in the array, interpreted by its child fields. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.mentions[].type | string | Data source type. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.mentions[].namespace | string | DQL namespace. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.mentions[].index | string | DQL index; fill when selecting logs. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.mentions[].datasource | string | DQL data source. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.model | string | Model used for this check. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.contextWindowLimit | integer | Context window token limit; must be greater than 0. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.maxChatRounds | integer | Maximum conversation rounds; must be greater than or equal to 1. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.maxDQLQueries | integer | Maximum DQL query count; must be greater than or equal to 0. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.checkerOpt.creditSoftBudget | number | Soft Credit budget per check; must be greater than 0. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.channels | array | Channel UUID list. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.atAccounts | array | List of account UUIDs mentioned (@) under normal checks. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.atNoDataAccounts | array | List of account UUIDs mentioned (@) when there is no data. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.subUri | string | Webhook address suffix for OuterEventChecker; required on creation, uniqueness not required. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.isChangeEvent | boolean | Whether OuterEventChecker handles as a Change Event; default false; existing rules missing this field are treated as false. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.disableCheckEndTime | boolean | Whether to disable the end time limit. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.eventChartEnable | boolean | Whether to enable event charts; default disabled (note: only effective when the primary storage engine logging is doris). This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.eventCharts | array | Event chart list. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.eventCharts[] | object | Single object in the array, interpreted by its child fields. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.eventCharts[].dql | string | Query statement for the event chart. This is saved configuration; whether it actually takes effect depends on the check type. For how to write it, see Create Monitor. |
| content.jsonScript.targets[] | object | Single DQL/PromQL query target, or combined monitoring member. |
| content.jsonScript.targets[].dql | string | Actual executed query; qtype determines syntax. |
| content.jsonScript.targets[].qtype | string | Usually dql/promql; historically may be represented by queryType. |
| content.jsonScript.targets[].queryType | string | Historical query syntax marker. |
| content.jsonScript.targets[].alias | string | Standard common plugins usually require Result; combined monitoring uses member aliases. |
| content.jsonScript.targets[].monitorCheckerId | string | Only for combined monitoring member UUID. |
| content.jsonScript.targets[].groupBy | array<string> |
Additional trigger dimensions for combined member. |
| content.jsonScript.targets[].groupBy[] | string | Field name. |
| content.jsonScript.targetWorkspaceUUIDs | array<string> |
Target workspace UUID set that may be saved by historical/other entry points; not declared by public create/update, and not sent back in its entirety. |
| content.jsonScript.targetWorkspaceUUIDs[] | string | Single target workspace UUID. |
| content.jsonScript.targets[].extraOptions | object | get echoes saved values; list may supplement in place when cross-workspace authorization verification has parsing results, and may retain historical values when there is no result. Not a client-writable request or proof of current complete authorization. |
| content.jsonScript.targets[].extraOptions.workspace_uuids | array<string> |
Candidate execution workspaces saved or resolved during this list call; may contain historical values and does not guarantee that all are currently authorized. |
| content.jsonScript.targets[].extraOptions.workspace_uuids[] | string | Single saved or candidate workspace UUID; verify current authorization. |
| content.jsonScript.targets[].extraOptions.index_list | array<object> |
Data scope/index candidate range saved or resolved during this list call; may contain historical values and cannot serve as a guarantee of current complete 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; do not assume a uniform type. |
| content.jsonScript.groupBy[] | string | Trigger dimension field. |
| content.jsonScript.checkFuncs[] | object | Compatible check function data. |
| content.jsonScript.checkFuncs[].funcId | string | Function ID. |
| content.jsonScript.checkFuncs[].kwargs | object | Function-specific parameters, not general input for all algorithms. |
| content.jsonScript.checkFuncs[].kwargs.参数名 | JSON | Interpret according to the corresponding function documentation. |
| content.jsonScript.channels[] | string | Incident channel UUID. |
| content.jsonScript.atAccounts[] | string | Mentioned identity in notifications; historically may be an email. |
| content.jsonScript.atNoDataAccounts[] | string | No-data notification mention 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 according to check 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 check type. |
| content.jsonScript.checkerOpt.rules[].conditions[].operands | array | Comparison value array; preserve numeric/string types. |
| content.jsonScript.checkerOpt.rules[].conditions[].operands[] | string / number | 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 check type. |
| content.jsonScript.checkerOpt.rules[].okConditions[].operands | array | Comparison value array; preserve numeric/string types. |
| content.jsonScript.checkerOpt.rules[].okConditions[].operands[] | string / number | Single comparison value. |
| content.extend.isNeedCreateIssue | boolean | Whether to create an Issue based on an anomaly. |
| content.extend.issueLevelUUID | string | Historical 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 | Target identifier such as member/team. |
| content.extend.incidentsTags | array<string> |
Incident association tag names. |
| content.extend.incidentsTags[] | string | Single tag name. |
| content.extend.faultMappingMode | string | custom/existing; current Issue 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 | 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 | Single scope. |
| content.monitorName | string | Current group display name; returned conditionally. |
| content.dashboardUUID | string | Returned when a valid association is explicitly added/modified; may be omitted. |
| content.alertPolicyUUIDs | array<string> |
Policy UUIDs returned only when a non-empty association is created; not automatically expanded in modification responses. |
| content.alertPolicyUUIDs[] | string | Policy UUID. |
| content.__operation_info | object | Additional operation summary for normal creation. |
| content.__operation_info.uuid | string | UUID of this rule. |
| content.declaration | object | Common declaration. |
| content.extend.rules | array<object> | Condition echo after simpleCheck rule normalization; other check types may have different structures. |
| content.extend.rules[].status | string | Triggered event level. |
| content.extend.rules[].conditionLogic | string | Same-group condition logic, and or or. |
| content.extend.rules[].conditions | array<object> | Threshold conditions for this rule. |
| content.extend.rules[].conditions[].alias | string | Result alias corresponding to the 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 | One comparison value; type depends on condition. |
| content.extend.querylist | array<object> | Editor query echo array, not the result of this query execution. |
| content.extend.querylist[].uuid | string | Generated identifier for this query echo item; 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": null,
"uuid": "rul_checker_example",
"workspaceUUID": "wksp_example",
"monitorUUID": "monitor_example",
"type": "trigger",
"refKey": "",
"secret": "",
"jsonScript": {
"type": "simpleCheck",
"title": "生产CPU阈值",
"name": "生产CPU阈值",
"every": "1m",
"interval": 300,
"groupBy": [
"host"
],
"targets": [
{
"dql": "M::cpu:(avg(usage_idle)) BY host",
"alias": "Result",
"qtype": "dql"
}
],
"checkerOpt": {
"rules": [
{
"status": "warning",
"conditionLogic": "and",
"conditions": [
{
"alias": "Result",
"operator": "<",
"operands": [
10
]
}
]
}
]
}
},
"extend": {
"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": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"monitorName": "default",
"tagInfo": [],
"__operation_info": {
"uuid": "rul_checker_example"
},
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field missing, or field value violates declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Request JSON syntax invalid | Request JSON format error | Fix the JSON according to content.reason, line, and 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 check 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; this field is not used 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 the check DQL, the calling identity lacks query permission for the corresponding namespace | You do not have permission for {} | Configure the required data scope 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 failed to parse: {} | 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 a checkers or event array. |
| 400 | ft.repeatCheckerSecret | External event secret already used by any rule, including other workspaces/historical records | External event monitor secret already exists | Use a globally unique random secret; when modifying, verify your original secret first. |
| 406 | ft.ParameterCheckFailed | Workspace does not allow left wildcard and preceding DQL analysis finds a high-cost query, or analysis fails | Fuzzy matching in query configurations does not currently support left * matching | Fix the DQL according to the query analysis in content, avoid left * scans, and verify the authorization source first. |
| 400 | ft.ParamsValidateError | Business parameters such as queryType, data wait, AI prompt/reference/budget fields are invalid | Parameter validation failed: {} | Fix according to the specific message field path; do not leave AI prompts blank. |
| 406 | ft.InvalidParameter | Event message/noDataMessage is not a string, or business fields such as anomaly level mapping do not match | Parameter {} is invalid |
Check the specific field and valid source. |
| 406 | ft.InvalidParameterV2 | Checked event template Jinja syntax invalid | The value {} of parameter {} is invalid |
Fix according to content.field/line/reason; this does not mean unknown template variables are necessarily valid. |
| 400 | ft.CheckerRepeatNames | The corresponding category group in the same workspace already has a non-deleted rule with the same name | Monitor name already exists | Change the name or modify the existing UUID; standard monitors and self-built inspections share a 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 full set of valid UUIDs from the policy list. |
| 400 | ft.UnsupportExternalEmail | @ target in Free Plan contains an external email | In Free Plan workspaces, external email notification targets are not supported | Use a valid identity in this workspace or confirm the plan supports it. |
| 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 | Check plugin type not supported | Unsupported rule type: {} |
Use a supported type and corresponding structure on this page. |
| 406 | ft.UnsupportCheckUnit | Check frequency every unit not supported | Invalid check frequency unit. Supported units: {} |
Use a positive integer + s/m/h. |
| 406 | ft.CheckFrequencyExceedsMaximum | Standard check frequency exceeds 24h | Check frequency exceeds the maximum value | Shorten the frequency; V2 uses a fixed 10m. |
| 406 | ft.MissingCheckFreqFixedCrontab | Standard check has no every/customCrontab | No check frequency specified / fixedCrontab not specified | Explicitly provide one valid frequency. |
| 400 | ft.CrontabCheckError | Custom Cron syntax or seconds field invalid | Crontab validation failed | Correct the complete 5/6-segment expression. |
| 400 | ft.CrontabCheckRangeError | Custom Cron second step below 20 seconds | The time must be greater than or equal to {} seconds | Use a step of at least 20 seconds or an appropriate minute frequency. |
| 406 | ft.InvalidInterval | Standard check with targets has interval not an integer or not in 1..2592000 seconds | Invalid interval | Provide a valid window in seconds. |
| 406 | ft.CheckObjectTargetAliasError | Standard plugin target non-empty alias is not Result | The alias of the DQL check target is invalid | Use Result; combined members follow the combined protocol separately. |
| 406 | ft.CheckObjectNameRepeat | Target alias duplicated | Duplicate alias for check targets | Use an applicable and unique alias for each target. |
| 400 | ft.UnsupportTriggerFields | Corresponding type does not support trigger fields such as Info event conditions | Unsupported trigger fields: {} | Remove inapplicable fields and configure only for supported types. |
| 400 | ft.ErrorCombinedCheckers | Combined member contains incompatible custom Cron | A monitor uses a custom frequency; combined monitors do not support custom frequencies | Adjust member frequencies or split the combination first. |
| 400 | ft.ErrorCombinedCrontab | A rule referenced by a combination is changed to an incompatible custom Cron | There is an associated combined monitor; monitors in a combined monitor do not support custom frequencies | Check the combined references and choose a compatible frequency. |
| 400 | ft.ErrorFieldCheck | Combination lacks conditionally required fields such as combineExpr | Validation failed for field {} | Complete 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, and keep traceId for troubleshooting. |
| 400 | ft.OuterFuncFailed | Scheduling service returned a business failure | External function call failed | Check the configuration and existing schedules, then retry. |
| 400 | ft.SameSetTraggerExists | Scheduling service considers an identical schedule already exists | A trigger with the same configuration already exists | Check existing rules and do not create duplicates. |
| 500 | ft.InternalServerError | Uncaught exceptions such as ordinary exceptions in advanced conditions, invalid field shapes, downstream connection/timeout/invalid JSON, or database or post-submit cache/task dispatch failures | Internal error | First read back the rule, status, and associations; a partial commit may already exist; keep traceId and handle the failure stage. |
| 400 | ft.ErrorRecoveryConditionOperator | Graded recovery trigger condition is not a supported one-sided compare using >/>=/</<= |
Recovery condition operators only support >,<,>=,'<=' |
Modify okConditions with the opposite direction of the trigger and a valid numeric boundary. |
| 406 | ft.ErrorLessThanOrEqualOperator | Trigger is > but recovery does not satisfy ≤ with a valid boundary | The recovery condition value must be less than or equal to the trigger condition value | Modify okConditions with the opposite direction of the trigger and a valid numeric boundary. |
| 406 | ft.ErrorGreaterThanOrEqualOperator | Trigger is < but recovery does not satisfy ≥ with a valid boundary | The recovery condition value must be greater than or equal to the trigger condition value | Modify okConditions with the opposite direction of the trigger and a valid numeric boundary. |
| 406 | ft.ErrorLessThanOperator | Trigger is ≥ but recovery does not satisfy < with a valid boundary | The recovery condition value must be less than the trigger condition value | Modify okConditions with the opposite direction of the trigger and a valid numeric boundary. |
| 406 | ft.ErrorGreaterThanOperator | Trigger is ≤ but recovery does not satisfy > with a valid boundary | The recovery condition value must be greater than the trigger condition value | Modify okConditions with the opposite direction of the trigger and a valid numeric boundary. |
| 404 | ft.NotFoundView | Newly specified dashboardUUID does not exist or is invalid in this workspace | The specified view was not found | Get a valid UUID from the current workspace dashboard list. |
| 403 | ft.ForbiddenFreeEditionWorkspace | Current workspace plan does not support this check type/configuration | Free Plan workspaces do not support this feature. Upgrade to a Commercial Plan to unlock it | Confirm the workspace plan supports it. |
| 403 | ft.ForbiddenFreeEditionLimit | Current plan resource count exceeds the limit | Free Plan workspace {} has reached the limit ({}), and cannot create more. Upgrade to a Commercial Plan to unlock it | Check the monitor quota and existing non-deleted records. |