Skip to content

Export



POST /api/v1/checker/export

Overview

Export monitors and their direct composite members as migratable template JSON.

Before Calling and Usage Steps

Returns the unified JSON content.checkers array, not a zip file download or an asynchronous task. Only non-deleted matching objects in the current workspace are read; even if all are missed, the request may still succeed with an empty array; empty input succeeds with an empty array. Shared queries do not restrict the Rule category and use only monitor list UUIDs. Exporting a composite monitor additionally includes its directly referenced members and rewrites composite references using signId; it does not guarantee recursive completion of arbitrary multi-level dependencies.

Export associates groups/alert policies/dashboards and tags by name; it does not export their complete resource configurations or custom operation permissions, and does not retain all history. For OuterEventChecker, secret is removed, and a new Webhook is generated after import. When isNeedCreateIssue is not enabled, the template clears Issue association fields such as channels/levels/owners/tags and converts some legacy no-data period protocols. Back up the original details before migration, and verify the target data sources, authorization, and notification targets.

Request Headers

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

Body Request Parameters

Parameter Name Type Required Description
checkers[*] string Do not mix other Rule resource types; the method itself does not additionally restrict type.
Example: rul_checker_example
How to obtain or enter: UUID of a single monitor in the current workspace.
checkers array Y Required UUID array; an empty array succeeds with content.checkers=[]; only non-deleted matching items are exported.
Allow null: False
Example: ["rul_checker_example"]
How to obtain or enter: From the monitor list, select current workspace UUIDs item by item by entity type.

Additional Parameter Notes

Related API: Import One or More Monitors

The checkers parameter in the import monitors API is the content.checkers content in a successful export monitors response. OuterEventChecker export retains subUri/isChangeEvent and does not export a reusable secret.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/checker/export' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"checkers":["rul_checker_example"]}'

Response

HTTP 200, application/json. content.checkers is the array of currently exportable monitor templates; only existing configurations are returned; for how to migrate and overwrite, see Import Monitors and Replace Monitors respectively.

Field Type Description
content.checkers array<object> Exported template array.
content.checkers[].type string Type identifier of the currently exported monitor, e.g. trigger or smartMonitor.
content.checkers[].signId string Exported as a digest of the original UUID, not an authentication credential; import uses it to preallocate UUIDs and rewrite composite member references; it must be unique within the same batch and must not be reused across files. replace does not use it to change the target UUID.
content.checkers[].jsonScript json Currently saved detection script and type-specific configuration; this API only exports and does not execute or replace the target monitor.
content.checkers[].extend json Currently exported extended configuration, including detection-type-related echo fields and Issue/Incident association settings; import or replace defaults are not applied during export.
content.checkers[].is_disable boolean Disabled status at export time; true means disabled, false means enabled.
content.checkers[].tagInfo array Array of exported associated tag summaries.
content.checkers[].tagInfo[] json One associated tag summary.
content.checkers[].tagInfo[].name string Name of the tag associated with this export item.
content.checkers[].secret string For non-OuterEventChecker export items, a string is returned, empty when the value is missing; this field is omitted for OuterEventChecker export items.
content.checkers[].monitorName string Name of the monitor group to which this export item belongs.
content.checkers[].alertPolicyNames array Array of alert notification policy names associated with this export item.
content.checkers[].alertPolicyNames[] string One associated policy name, not a policy UUID.
content.checkers[].dashboardName string Returned when there is an associated dashboard and a non-empty name is resolved; omitted when not associated or the name is not found.
content.checkers[].jsonScript.atAccounts array Optional array, default []; channels are used to associate Incidents, not direct notification targets; the server may add default channels/filter invalid channels. @external email is restricted in Free/Free Plan versions; saving does not mean the notification has been sent. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.atNoDataAccounts array Optional array, default []; channels are used to associate Incidents, not direct notification targets; the server may add default channels/filter invalid channels. @external email is restricted in Free/Free Plan versions; saving does not mean the notification has been sent. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.channels array Optional array, default []; channels are used to associate Incidents, not direct notification targets; the server may add default channels/filter invalid channels. @external email is restricted in Free/Free Plan versions; saving does not mean the notification has been sent. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkFuncs array Optional; not required for regular thresholds; seniorCheck uses the first item's funcId/kwargs and does not treat all functions as generic parameters. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt json Ordinary rules commonly use rules; advanced types are filled in according to the corresponding algorithm; V2 uses yamlConfig; AI semantics uses userPrompt, etc.; undeclared subfields are rejected by public validation; you cannot copy the entire internal SDK parameters. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.category string Only for AI semantics. AI semantic category metadata, optional string. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.combineExpr string Type-specific parameter. Composite member alias expression; required and non-empty for composite types; do not use Result in place of member aliases. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.confidenceInterval integer Type-specific parameter. Interval V2 confidence interval 1..100, configured according to the actual algorithm. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.contextWindowLimit integer Only for AI semantics. Positive integer Token context limit, ≥1. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.creditSoftBudget number Only for AI semantics. Soft budget per single Credit, finite number >0; not an API execution timeout. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.diffMode string Type-specific parameter. Advanced mutation value for difference/percent for percentage; must be explicitly provided. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.direction string Type-specific parameter. Advanced mutation/interval up/down/both; must be explicitly provided. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.disableLargeScaleEventProtect boolean Optional boolean. true disables large-scale event protection; default false retains protection. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.enableStreamingAggregation boolean or null Optional tri-state. Only controls streaming aggregation acceleration for supported types; it does not equal starting/stopping the monitor or change the meaning of DQL. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.eps float Type-specific parameter. Required for outlier; numeric 0..3.0; this algorithm does not use regular rules condition validation. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.ignoreNodata boolean Optional boolean. Only composite monitors: true ignores no data; default false. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.infoEvent boolean Optional boolean. true generates info when continuously normal; default false; infoEventCondition controls conditions by type. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.infoEventCondition json Optional; {} means unconditional Info. Only applicable to supported types such as regular threshold/log/application and access metrics/synthetic/process/network/mutation/interval; outlier/composite/liveness V2/change/programmable/smart/SLO are not supported, and passing it reports UnsupportTriggerFields. If non-empty, alias/operator/operands must be complete and valid. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.infoEventCondition.alias string Fill in according to the structure within a non-empty Info condition; corresponds to the targets alias. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.infoEventCondition.operands array Fill in according to the structure within a non-empty Info condition; comparison value array, with string/number elements; do not pass objects. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.infoEventCondition.operator string Fill in according to the structure within a non-empty Info condition; select from the regular condition operators on this page. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.maxChatRounds integer Only for AI semantics. Maximum number of conversation rounds, integer ≥1. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.maxDQLQueries integer Only for AI semantics. Maximum number of DQL calls, integer ≥0. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.mentions array AI semantics optional, default []; each item has type=dql and non-empty namespace/datasource; index is optional and must be non-empty when passed; normalized JSON serialization total length ≤20000 characters. Does not replace data query authorization. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.mentions[] object type/namespace/datasource are required, index is optional; declare only these four fields. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.mentions[].datasource string Actual data source name within the reference item, e.g. log source/measurement, interpreted by namespace. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.mentions[].index string Within the reference item, for log references fill in the actual index name/identifier; other types may omit. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.mentions[].namespace string Actual DQL namespace within the reference item, not an entity type. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.mentions[].type string Fixed as dql within the reference item. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.model string Only for AI semantics. AI semantics optional model name; should be obtained from the model configuration supported by the site; must not use the literal value in the documentation example. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.openMatchTimes boolean Optional boolean. true enables continuous trigger matching; default false; used with rules[].matchTimes. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.openOkConditions boolean Optional boolean. true enables graded recovery; default false; okConditions must satisfy trigger and recovery boundaries. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.rules array Regular rule condition array; each item has status/conditionLogic/conditions, and okConditions is used for recovery. Invalid members/operation shapes may throw regular exceptions and ultimately 500, not always 406. Conditions with empty operands are filtered before constructing the schedule; do not use them to express "all". This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.script string Type-specific parameter. Programmable detection script text, using syntax supported by this type; this API does not execute a script test. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.systemPrompt string Only for AI semantics. AI semantics optional; when passed, non-empty, Python characters ≤20000. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.threshold json Optional object; when provided, status/operator/value are all declared required; status=false disables prerequisite judgment; value may be null but should be filled according to the actual meaning of the algorithm. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.threshold.operator string Required when the parent object exists; prerequisite comparison operator, e.g. >, according to the actual advanced detection compatibility set. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.threshold.status boolean Required when the parent object exists; whether to enable the prerequisite condition. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.threshold.value float or null Required when the parent object exists; prerequisite value; null is allowed when status=false, and a number is required when status=true, otherwise IllegalMutationParameters; the unit must be consistent with the query result. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.userPrompt string Only for AI semantics. Required and non-empty for AI semantic conditions, Python characters ≤20000; although an empty string is declared allowed, the business logic does not accept blank. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.checkerOpt.yamlConfig string Required only for V2; non-empty UTF-8 YAML text ≤256KiB, not a JSON object or Markdown fence; for structure, see the YAML table on this page. Anchors/aliases/explicit tags/duplicate keys are prohibited. Modifications may only change existing DQL, threshold configuration, and algorithm params; rule sets/names/execution structures cannot be changed; on save, the protocol/budget is validated and permissions for the check query data domain are parsed; DQL is not executed and data existence/source authorization is not guaranteed to have been fully reviewed. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.customCrontab string Optional; when non-empty, takes precedence over every; supports 5 segments or 6 segments with seconds; the seconds step form must not be less than 20. Composite monitors and their composite members have custom frequency conflict restrictions; prohibited for V2. The detection time zone follows the current workspace/service configuration; do not use a time zone name in the string in place of the field. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.delaySeconds integer Optional data wait window for regular monitors, in seconds; 0 means no waiting; default 0; booleans are not treated as integers. Smart/AI does not use the regular wait configuration; you cannot use it to adjust smart execution delay. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.disableCheckEndTime boolean Optional compatibility boolean, default false; actual support depends on the detection type. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.eventChartEnable boolean Optional, default false; processed only by supported Doris log primary storage; a successful save does not prove that the chart has been generated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.eventCharts array Optional chart configuration array; provide it together when enabling event charts; the specific result is generated by the event processing chain and is not returned in the write response. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.eventCharts[] object Declares only the dql subfield. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.eventCharts[].dql string Optional query text, not a chart UUID; saving does not execute the chart query. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.every string Regular common plugins require every or customCrontab; maximum 24h, recommended minimum 20s. Use a valid positive integer format; do not use 0/negative values or d/w; some format issues may cause 500. V2 is fixed at 10m, and the server overrides every; AI semantics uses its own detection frequency. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.groupBy array Optional dimension name array; usually [] means no grouping by additional dimensions; not tag values. Composite monitor member dimensions need to be compatible. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.interval integer For regular monitors with targets, requires 1..2592000 seconds (30 days); different from the every detection frequency. Composite monitors skip this generic check; V2 uses YAML query.interval/lookback instead. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.isChangeEvent boolean OuterEventChecker optional default false; not used by other types. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.message string Event content; select as needed according to the corresponding check type; modification cannot treat omission as retention, and the entire configuration needs to be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text as the main sources; legacy recover-specific fields are not guaranteed to be separately covered for each detection. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.noDataAction string Optional none/checkAs0/noDataEvent/noDataEventRepeat/fatalEvent/criticalEvent/errorEvent/warningEvent/okEvent/noData/recover. noDataEventRepeat only supports its applicable types and requires a positive integer noDataInterval; omission/empty compatibility values and positive continuous duration have special historical handling and do not rely on the default implementation for repeated alerts. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.noDataInterval integer Select as needed by type. No-data continuous duration in seconds; regular frequency is rounded up to the whole detection period, custom frequency uses seconds directly; repeat no-data must be a positive integer. Modifications should fully retain applicable settings and not mix units. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.noDataMessage string Output no-data event information template; select as needed according to the corresponding check type; modification cannot treat omission as retention, and the entire configuration needs to be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text as the main sources; legacy recover-specific fields are not guaranteed to be separately covered for each detection. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.noDataNotificationMessage string Data gap event notification content; select as needed by corresponding check type; modification cannot treat omission as retention, and the entire configuration needs to be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text as the main sources; legacy recover-specific fields are not guaranteed to be separately covered for each detection. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.noDataRecoverMessage string Output no-data recovery upload event information template; select as needed according to the corresponding check type; modification cannot treat omission as retention, and the entire configuration needs to be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text as the main sources; legacy recover-specific fields are not guaranteed to be separately covered for each detection. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.noDataRecoverTitle string Output no-data recovery upload event title template; select as needed according to the corresponding check type; modification cannot treat omission as retention, and the entire configuration needs to be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text as the main sources; legacy recover-specific fields are not guaranteed to be separately covered for each detection. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.noDataTitle string Output no-data event title template; select as needed according to the corresponding check type; modification cannot treat omission as retention, and the entire configuration needs to be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text as the main sources; legacy recover-specific fields are not guaranteed to be separately covered for each detection. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.notificationMessage string Event notification content; select as needed according to the corresponding check type; modification cannot treat omission as retention, and the entire configuration needs to be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text as the main sources; legacy recover-specific fields are not guaranteed to be separately covered for each detection. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.openNoDataNotificationMessage boolean Optional, default false; when disabled, uses the corresponding event content; when enabled, also provide the corresponding notificationMessage/noDataNotificationMessage. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.openNotificationMessage boolean Optional, default false; when disabled, uses the corresponding event content; when enabled, also provide the corresponding notificationMessage/noDataNotificationMessage. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.periodBefore integer Select as needed by type. Comparison offset seconds for advanced mutation, e.g. 86400 for yesterday; fill in completely together with range/range_2. Modifications should fully retain applicable settings and not mix units. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.range integer Select as needed by type. Current comparison window for advanced mutation, positive integer seconds. Modifications should fully retain applicable settings and not mix units. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.range_2 integer Select as needed by type. Advanced mutation comparison window setting; -1 for period-over-period, 0 for periodBefore, others according to the second window defined by the corresponding advanced detection. Modifications should fully retain applicable settings and not mix units. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.recoverMessage string Output recovery event information template; select as needed according to the corresponding check type; modification cannot treat omission as retention, and the entire configuration needs to be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text as the main sources; legacy recover-specific fields are not guaranteed to be separately covered for each detection. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.recoverNeedPeriodCount integer Select as needed by type. For regular frequency, it is the number of consecutive recovery periods; for customCrontab, it is the recovery duration in seconds directly; default 0. Modifications should fully retain applicable settings and not mix units. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.recoverTitle string Output recovery event title template; select as needed according to the corresponding check type; modification cannot treat omission as retention, and the entire configuration needs to be filled back. Optional; if omitted, no separate text is provided; the current common construction mainly uses title/message and no-data text as the main sources; legacy recover-specific fields are not guaranteed to be separately covered for each detection. message and noDataMessage for supported types are first parsed for Jinja syntax; runtime values of unknown variables are not validated. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.subUri string OuterEventChecker new required non-empty string; the publicly received URL is a single path segment and cannot contain / (encoding %2F still results in 404); alphanumeric and hyphens are recommended. Multiple rules may have the same suffix; secret is responsible for uniqueness; regular detection does not fill it. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.targetWorkspaceUUID string Optional, default current workspace. Applicable to cross-workspace query consumption for simpleCheck, seniorMutationsCheck, seniorRangeCheck, seniorRangeV2Check, and outlierCheck; writing only generates candidate index_list and validates the data domain permissions of the calling identity; a successful save does not mean source authorization has been fully reviewed or data can be queried; before calling, confirm the actual target authorization. Prohibited for V2; use YAML queries within the authorized workspace. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.targets array Regular query target array; actual DQL/PromQL execution statements go in dql; for regular common plugins, alias only accepts Result or empty, and alias uniqueness is checked; a single target Result is recommended. Composite monitors use monitorCheckerId/alias to associate members; V2 prohibits targets, put everything in YAML. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.title string 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; regular/self-built inspections share the duplicate-name group, while smart/AI are grouped separately. Whether variables exist at template runtime requires acceptance with real events. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.type string Required plugin identifier; historical compatibility such as mutationsCheck/rangeCheck/seniorCheck and legacy smart* still need to be maintained according to the original configuration and cannot be replaced by the entity type. Specific fields apply only to their type and cannot be mixed. V2 and legacy versions cannot be switched between each other. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.windowDql string Optional compatibility window query text; passes through extra event information and does not replace the actual detection query in targets; omitted means not provided. This is the saved configuration; whether it actually takes effect depends on the check type; for write operations, see Create Monitor.
content.checkers[].jsonScript.targets[] object A single DQL/PromQL query target, or a composite monitor member.
content.checkers[].jsonScript.targets[].dql string Actual execution query; qtype determines the syntax.
content.checkers[].jsonScript.targets[].qtype string Usually dql/promql; historically may be represented by queryType.
content.checkers[].jsonScript.targets[].queryType string Historical query syntax marker.
content.checkers[].jsonScript.targets[].alias string Regular common plugins usually require Result; composite monitors use member aliases.
content.checkers[].jsonScript.targets[].monitorCheckerId string Composite monitor associated member UUID only.
content.checkers[].jsonScript.targets[].groupBy array<string> Additional trigger dimensions for composite members.
content.checkers[].jsonScript.targets[].groupBy[] string Field name.
content.checkers[].jsonScript.targetWorkspaceUUIDs array<string> Collection of multiple-source inputs saved with template support; non-empty takes precedence over the singular; the actual created execution workspace is subject to crontabInfo.multiWsCrontabInfo and may be reduced due to authorization failures.
content.checkers[].jsonScript.targetWorkspaceUUIDs[] string Single target workspace UUID.
content.checkers[].jsonScript.targets[].extraOptions object Query options saved or constructed at runtime; not a complete guarantee of current authorization, and the list echo cannot be directly treated as new query authorization.
content.checkers[].jsonScript.targets[].extraOptions.workspace_uuids array<string> Candidate execution workspaces saved or resolved in this list; may contain historical values and does not guarantee that all are currently authorized.
content.checkers[].jsonScript.targets[].extraOptions.workspace_uuids[] string Single saved or candidate workspace UUID; verify current authorization.
content.checkers[].jsonScript.targets[].extraOptions.index_list array<object> Data domain/index candidate range saved or resolved in this list; may be historical values and cannot serve as a complete guarantee of current authorization.
content.checkers[].jsonScript.targets[].extraOptions.index_list[].workspace_uuid string Source workspace UUID.
content.checkers[].jsonScript.targets[].extraOptions.index_list[].namespace string Query namespace.
content.checkers[].jsonScript.targets[].extraOptions.index_list[].index_name string Allowed index name; may be default for non-log data.
content.checkers[].jsonScript.targets[].extraOptions.index_list[].expr_name string Expression subquery name, may be omitted.
content.checkers[].jsonScript.targets[].conditions object or string Additional query filter; read according to the saved structure; do not assume a uniform type.
content.checkers[].jsonScript.groupBy[] string Trigger dimension field.
content.checkers[].jsonScript.checkFuncs[] object Compatibility detection function information.
content.checkers[].jsonScript.checkFuncs[].funcId string Function ID.
content.checkers[].jsonScript.checkFuncs[].kwargs object Function-specific parameters, not generic input for all algorithms.
content.checkers[].jsonScript.checkFuncs[].kwargs.parameterName JSON Interpret according to the corresponding function documentation.
content.checkers[].jsonScript.channels[] string Incident channel UUID.
content.checkers[].jsonScript.atAccounts[] string Identity identifier @-mentioned in notifications; historically may be an email.
content.checkers[].jsonScript.atNoDataAccounts[] string @ target for no-data notifications.
content.checkers[].jsonScript.checkerOpt.rules[] object Set trigger and recovery conditions by level.
content.checkers[].jsonScript.checkerOpt.rules[].status string fatal/critical/error/warning/info/ok/ALL etc., interpreted by detection type.
content.checkers[].jsonScript.checkerOpt.rules[].conditionLogic string and/or, combination of multiple conditions.
content.checkers[].jsonScript.checkerOpt.rules[].matchTimes integer Number of consecutive matches; use with openMatchTimes.
content.checkers[].jsonScript.checkerOpt.rules[].conditions array<object> Trigger conditions.
content.checkers[].jsonScript.checkerOpt.rules[].okConditions array<object> Graded recovery conditions, may be omitted.
content.checkers[].jsonScript.checkerOpt.rules[].conditions[].alias string Corresponding query target alias.
content.checkers[].jsonScript.checkerOpt.rules[].conditions[].operator string Condition operator; supported set depends on detection type.
content.checkers[].jsonScript.checkerOpt.rules[].conditions[].operands array Comparison value array; preserve numeric/string types.
content.checkers[].jsonScript.checkerOpt.rules[].conditions[].operands[] string / number Single comparison value.
content.checkers[].jsonScript.checkerOpt.rules[].okConditions[].alias string Corresponding query target alias.
content.checkers[].jsonScript.checkerOpt.rules[].okConditions[].operator string Condition operator; supported set depends on detection type.
content.checkers[].jsonScript.checkerOpt.rules[].okConditions[].operands array Comparison value array; preserve numeric/string types.
content.checkers[].jsonScript.checkerOpt.rules[].okConditions[].operands[] string / number Single comparison value.
content.checkers[].jsonScript.name string Compatibility name; a non-empty title copies/overwrites it; when title is missing, used as import name fallback.
content.checkers[].jsonScript.fixedCrontab string Retained compatibility fixed Cron; actual execution is subject to crontabInfo; do not conflict with every/customCrontab.
content.checkers[].extend.isNeedCreateIssue boolean Whether to create an Issue based on an anomaly.
content.checkers[].extend.issueLevelUUID string Historical Issue level identifier, may be invalid.
content.checkers[].extend.issueDfStatus array<string> Anomaly statuses that trigger an Issue.
content.checkers[].extend.issueDfStatus[] string fatal/critical/error/warning/nodata.
content.checkers[].extend.manager array<string> Resolved owner targets.
content.checkers[].extend.manager[] string Member/team and other target identifiers.
content.checkers[].extend.incidentsTags array<string> Incident-associated tag names.
content.checkers[].extend.incidentsTags[] string Single tag name.
content.checkers[].extend.faultMappingMode string custom/existing, current incident level mapping mode.
content.checkers[].extend.levelMappingUUID string Level mapping UUID when existing.
content.checkers[].extend.bindIncidentsInfo array<object> Custom level mapping rows.
content.checkers[].extend.bindIncidentsInfo[].incidentsLevelUUID string Mapped Issue level UUID.
content.checkers[].extend.bindIncidentsInfo[].incidentsDfStatus array<string> Mapped anomaly status array.
content.checkers[].extend.bindIncidentsInfo[].incidentsDfStatus[] string Single anomaly status.
content.checkers[].extend.smartMonitor object V2 source and current version metadata.
content.checkers[].extend.smartMonitor.source string ai/builtin source.
content.checkers[].extend.smartMonitor.engineVersion integer V2 usually 2.
content.checkers[].extend.smartMonitor.configVersion integer V2 configuration version.
content.checkers[].extend.smartMonitor.category string Smart Monitoring category.
content.checkers[].extend.smartMonitor.prompt string AI generation prompt.
content.checkers[].extend.smartMonitor.templateId string Built-in template identifier.
content.checkers[].extend.smartMonitor.templateVersion string Built-in template version.
content.checkers[].extend.smartMonitor.generationRunId string Generation process tracking identifier, may be omitted.
content.declaration object Public declaration; import only takes checkers.
content.checkers[].extend.needRecoverIssue boolean In the export branch that does not create an Issue, this recovery option is normalized to false.
{
  "code": 200,
  "content": {
    "checkers": [
      {
        "type": "trigger",
        "signId": "a7182d65718158a0053d90ba5b15554f",
        "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
                    ]
                  }
                ]
              }
            ]
          },
          "channels": []
        },
        "extend": {
          "needRecoverIssue": false,
          "issueLevelUUID": "",
          "issueDfStatus": [],
          "bindIncidentsInfo": [],
          "incidentsTags": [],
          "manager": []
        },
        "is_disable": false,
        "tagInfo": [
          {
            "name": "production"
          }
        ],
        "secret": "",
        "monitorName": "default",
        "alertPolicyNames": [
          "生产告警"
        ]
      }
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

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

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Request field missing, or field value violates the declared validation conditions Parameter parsing failed Check 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.
400 ft.JsonFormatError Body top level is not a JSON object Format error in some JSON files Submit an object containing the checkers array according to the example.
500 ft.InternalServerError Saving JSON/composite references/legacy period data or reading/formatting associated information failed Internal error First narrow the export scope by a single UUID, verify the original configuration, and provide the traceId if it continues to fail.

Feedback

Is this page helpful?