List¶
GET /api/v1/self_built_checker/list
Overview¶
List the current Workspace's self-built inspection configurations and associated Alert Policies by page.
Before Calling and Usage Steps¶
Only self_built_trigger items that are not deleted are included, including disabled ones, sorted by Rule.id in descending order. The current OpenAPI does not retrieve the Front's latest event status, does not return lastEventInfo, and does not accept internal scriptType or extension filters. When a page is empty or filtering ends early, content.data=[] and pageInfo={}; do not rely on a fixed totalCount to determine whether the Workspace has rules.
The API registers/modifies inspection metadata and Alert Policy associations. It does not execute the associated function, produce an inspection result, or create periodic trigger tasks for self-built inspections; actual scheduling and event generation are handled by the business integration/function side. After success, use list/get to verify the configuration and status.
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 operation permissions from API Key management in the target Workspace. |
Query Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| monitorUUID | commaArray | Optional; multiple values separated by English commas; public create does not support creating groups. Allows null: False Example: monitor_exampleHow to obtain or enter: Obtain from the actual monitor group list or monitorUUID in an old record. |
|
| alertPolicyUUID | commaArray | Optional; multiple values separated by commas; ANDed with other filters; returns empty if there is no association. Allows null: False Example: altpl_exampleHow to obtain or enter: Get the uuid from the Alert Policy list. |
|
| checkerUUID | commaArray | Optional; multiple values separated by commas; not a function ID. Allows null: False Example: rul_self_exampleHow to obtain or enter: Get the self-built rule uuid from this module's list. |
|
| refKey | commaArray | Optional; multiple values separated by English commas; matches by exact full key. Allows null: False Example: custom-healthcheck-productionHow to obtain or enter: The business key saved at creation. |
|
| search | string | Optional; actually matches only jsonScript.refFuncInfo.title, not the root title/name; the current public refFuncInfo does not declare title, so new items should not rely on name-based search; checkerUUID/refKey are recommended. Allows null: False Example: 健康检查How to obtain or enter: Only for keywords in refFuncInfo.title of historical records. |
|
| pageIndex | integer | Optional, default 1, minimum 1. Allows null: False $minValue: 1 Example: 1How to obtain or enter: Advance from 1 according to pageInfo. |
|
| pageSize | integer | Optional, default 100, maximum 100. Allows null: False $minValue: 1 $maxValue: 100 Example: 100How to obtain or enter: 1..100 per page. |
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/self_built_checker/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=100
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.data | array<object> |
Self-built inspections on this page. |
| content.data[].id | integer or null | Record ID; the snapshot before creation submission may be null, so use uuid for operations. |
| content.data[].uuid | string | rul_ rule UUID. |
| content.data[].workspaceUUID | string | Owning Workspace. |
| content.data[].monitorUUID | string | Associated monitor group UUID; not declared for public creation and usually an empty string. |
| content.data[].type | string | Fixed to self_built_trigger for self-built inspections; get does not further restrict the type and uses only UUIDs from this module's list. |
| content.data[].refKey | string | Fixed business association key. |
| content.data[].secret | string or null | Compatibility field for shared entities; usually empty for self-built inspections; may be null in creation snapshots; not used as a calling credential. |
| content.data[].jsonScript | object | Saved self-built inspection definition, distinct from Rule.type. |
| content.data[].jsonScript.type | string | Fixed to selfBuiltCheck. |
| content.data[].jsonScript.title | string | Root business title. |
| content.data[].jsonScript.name | string | Optional. Not generated when title is empty on creation; a non-empty title is copied to name; setting title to empty on modification retains the historical name. |
| content.data[].jsonScript.refFuncInfo | object | Associated function information. |
| content.data[].jsonScript.refFuncInfo.funcId | string | Required only on creation and not declared on modification; server-side registration does not guarantee that the function exists or is callable. |
| content.data[].jsonScript.refFuncInfo.description | string | Optional string; may be empty; an explicit empty string on modification clears it. |
| content.data[].jsonScript.refFuncInfo.definition | string | Optional signature display string; not the source code executed by this API. |
| content.data[].jsonScript.refFuncInfo.category | string | Optional metadata; not a fixed enum and does not change Rule.type. |
| content.data[].jsonScript.refFuncInfo.args | array | Optional array, stored according to the original metadata conventions of the function platform; the server does not perform parameter binding or validate function signatures; modification replaces the entire array. |
| content.data[].jsonScript.refFuncInfo.kwargs | json | Optional dynamic JSON metadata; child values are interpreted according to the function definition; not a top-level callKwargs parameter available in this API and does not immediately call the function. Modification replaces the entire kwargs. |
| content.data[].jsonScript.refFuncInfo.args[] | JSON | Arbitrary JSON parameter metadata; the server does not provide a unified schema for child items; preserve the original definition. |
| content.data[].jsonScript.refFuncInfo.kwargs.parameterName | any | Dynamic key-value; there are no required parameters common to all functions; do not pass credentials into examples/logs. |
| content.data[].jsonScript.callKwargs | object | Execution parameters that may be saved by historical/other entry points; public create/modify do not declare them, and new ones cannot be passed back. |
| content.data[].jsonScript.callKwargs.parameterName | JSON | Specific execution parameters are interpreted according to the original function definition and are not guaranteed to exist. |
| content.data[].crontabInfo | object | Periodic trigger configurations for self-built inspections are not created through this entry point; usually {}. |
| content.data[].crontabInfo.historicalField | JSON | Historical records may retain scheduling data; this is not a writable configuration for this API. |
| content.data[].extend | object | Extended metadata; not declared in the public Body; usually {} on creation. |
| content.data[].extend.historicalField | JSON | Historically saved extended fields; this entry point does not support passing them back for modification. |
| content.data[].createdWay | string | Usually manual; may also be historical import/template/empty. |
| content.data[].isLocked | integer or boolean | Lock flag. |
| content.data[].openPermissionSet | boolean | Custom operation permission switch; false on creation; updating a shared task via modify resets it to false. |
| content.data[].permissionSet | array<string> |
Operation permission subjects; [] on creation; shared updates via modify reset it to []. |
| content.data[].permissionSet[] | string | Historical account/team/role identifiers. |
| content.data[].status | integer | 0 enabled, 2 disabled, 3 deleted; not equal to the latest inspection result. |
| content.data[].creator | string | Creator identity. |
| content.data[].updator | string | Updater identity; may be empty initially. |
| content.data[].createAt | integer | Creation Unix seconds. |
| content.data[].updateAt | integer | Update Unix seconds; -1 if not updated. |
| content.data[].deleteAt | integer | Deletion Unix seconds; -1 if not deleted. |
| content.data[].creatorInfo | object | Identity summary; {} if not found. |
| content.data[].creatorInfo.uuid | string | Identity UUID; optional. |
| content.data[].creatorInfo.status | integer | Account status; optional. |
| content.data[].creatorInfo.wsAccountStatus | integer | Workspace member status; optional. |
| content.data[].creatorInfo.name | string | Display name. |
| content.data[].creatorInfo.username | string | Login name. |
| content.data[].creatorInfo.email | string | Email or system identity identifier. |
| content.data[].creatorInfo.mobile | string | Mobile number; may be empty. |
| content.data[].creatorInfo.countryCode | string | Country/region code; optional. |
| content.data[].creatorInfo.iconUrl | string | Avatar; optional. |
| content.data[].creatorInfo.acntWsNickname | string | Workspace nickname; optional. |
| content.data[].updatorInfo | object | Identity summary; {} if not found. |
| content.data[].updatorInfo.uuid | string | Identity UUID; optional. |
| content.data[].updatorInfo.status | integer | Account status; optional. |
| content.data[].updatorInfo.wsAccountStatus | integer | Workspace member status; optional. |
| content.data[].updatorInfo.name | string | Display name. |
| content.data[].updatorInfo.username | string | Login name. |
| content.data[].updatorInfo.email | string | Email or system identity identifier. |
| content.data[].updatorInfo.mobile | string | Mobile number; may be empty. |
| content.data[].updatorInfo.countryCode | string | Country/region code; optional. |
| content.data[].updatorInfo.iconUrl | string | Avatar; optional. |
| content.data[].updatorInfo.acntWsNickname | string | Workspace nickname; optional. |
| content.data[].monitorName | string | Display name of the currently associated group; empty if none. |
| content.data[].alertPolicyInfos | array<object> |
Summary of effectively associated Alert Policies. |
| content.data[].alertPolicyInfos[].uuid | string | Policy UUID. |
| content.data[].alertPolicyInfos[].name | string | Policy name. |
| content.declaration | object | Common declaration. |
| pageInfo | object | Non-empty pages have pagination; empty pages may be {}. |
| pageInfo.pageIndex | integer | Current page; optional. |
| pageInfo.pageSize | integer | Number of items per page; optional. |
| pageInfo.count | integer | Number of items on this page; optional. |
| pageInfo.totalCount | integer | Total matched count; optional. |
{
"code": 200,
"content": {
"data": [
{
"id": 100,
"uuid": "rul_self_example",
"workspaceUUID": "wksp_example",
"monitorUUID": "",
"type": "self_built_trigger",
"refKey": "custom-healthcheck-production",
"secret": "",
"jsonScript": {
"type": "selfBuiltCheck",
"title": "生产服务健康检查",
"name": "生产服务健康检查",
"refFuncInfo": {
"funcId": "healthcheck.main",
"description": "生产服务健康检查函数。",
"definition": "main(service)",
"category": "custom",
"args": [
"service"
],
"kwargs": {
"service": "production"
}
}
},
"crontabInfo": {},
"extend": {},
"createdWay": "manual",
"isLocked": 0,
"openPermissionSet": false,
"permissionSet": [],
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"monitorName": "",
"alertPolicyInfos": [
{
"uuid": "altpl_example",
"name": "生产告警"
}
],
"creatorInfo": {},
"updatorInfo": {}
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"pageIndex": 1,
"pageSize": 100,
"count": 1,
"totalCount": 1
}
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Using an undeclared Query parameter or a parameter that violates the rules | Parameter parsing failed | Check the Query parameter table and examples. |
| 500 | ft.InternalServerError | Failed to read or format rules, references, or identity profiles | Internal error | Verify the Workspace and valid identifiers, then retry. If the failure persists, provide the traceId. |