-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7514 from normal-wls/hb_merge_master_20240625
hb merge master 20240625
- Loading branch information
Showing
32 changed files
with
939 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
### Functional description | ||
|
||
Get tasks count for a business, support task name keyword searching | ||
|
||
#### Interface Parameters | ||
|
||
| Field | Type | Required | Description | | ||
|-----------------|-------------|----|------------------| | ||
| bk_biz_id | string | YES | the business ID | | ||
| scope | string | NO | id scope, can be "cmdb_biz" or "project". if scope is "cmdb_biz" then bk_biz_id represent cmdb business ID, otherwise bk_biz_id represent proejct id. default is "cmdb_biz" | | ||
| keyword | string | NO | keyword to filter the task count based on the task name. default is no filter | | ||
| is_started | bool | NO | task status to filter the task count based on the start status. default is no filter | | ||
| is_finished | bool | NO | task status to filter the task count based on the finish status. default is no filter | | ||
| executor | string | NO | task executor to filter the task count. default is no filter | | ||
|
||
### Request Parameters Example | ||
|
||
``` | ||
{ | ||
"bk_app_code": "esb_test", | ||
"bk_app_secret": "xxx", | ||
"bk_token": "xxx", | ||
"bk_username": "xxx", | ||
"bk_biz_id": "2", | ||
"keyword": "定时", | ||
"is_started": true, | ||
"is_finished": "false", | ||
"scope":"cmdb_biz" | ||
} | ||
``` | ||
|
||
### 返回结果示例 | ||
|
||
``` | ||
{ | ||
"result": true, | ||
"data": 1, | ||
"trace_id": "xxx" | ||
} | ||
``` | ||
|
||
### Return Result Description | ||
|
||
| Field | Type | Description | | ||
|-----------|----------|-----------| | ||
| result | bool | true or false, indicate success or failure | | ||
| data | dict | data returned when result is true, details are described below | | ||
| message | string | error message returned when result is false | | ||
| trace_id | string | open telemetry trace_id | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
### 功能描述 | ||
|
||
获取某个业务下的任务列表,支持任务名关键词搜索 | ||
|
||
#### 接口参数 | ||
|
||
| 字段 | 类型 | 必选 | 描述 | | ||
|-------------|--|---------|------------------| | ||
| bk_biz_id | string | 是 | 项目唯一 ID,项目 ID 或 CMDB 业务 ID | | ||
| scope | string | 否 | 唯一 ID 的范围,取值为 cmdb_biz 或 project,为 cmdb_biz 时 bk_biz_id 代表业务 ID,反之代表项目 ID,不传时默认为 cmdb_biz | | ||
| keyword | string | 否 | 根据任务名关键词过滤任务列表,默认不过滤 | | ||
| is_started | bool | 否 | 根据任务是否已开始过滤任务列表,默认不过滤 | | ||
| is_finished | bool | 否 | 根据任务是否已结束过滤任务列表,默认不过滤 | | ||
| executor | string | 否 | 根据任务执行人过滤任务列表,默认不过滤 | | ||
|
||
### 请求参数示例 | ||
|
||
``` | ||
{ | ||
"bk_app_code": "esb_test", | ||
"bk_app_secret": "xxx", | ||
"bk_token": "xxx", | ||
"bk_username": "xxx", | ||
"bk_biz_id": "2", | ||
"keyword": "定时", | ||
"is_started": true, | ||
"is_finished": "false", | ||
"scope":"cmdb_biz" | ||
} | ||
``` | ||
|
||
### 返回结果示例 | ||
|
||
``` | ||
{ | ||
"result": true, | ||
"data": 5 | ||
"trace_id": "xxx" | ||
} | ||
``` | ||
|
||
### 返回结果说明 | ||
|
||
| 名称 | 类型 | 说明 | | ||
| ------------ | ---------- | ------------------------------ | | ||
| result | bool | true/false 操作是否成功 | | ||
| data | dict | result=true 时成功数据,详细信息请见下面说明 | | ||
| message | string | result=false 时错误信息 | | ||
| trace_id | string | open telemetry trace_id | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.