任务详情
<基本信息>
Path: /apiapi/task/info
Method: GET
请求参数类型: URL路径参数
响应参数类型:JSON
<请求参数>
Query
参数名称 | 是否必须 | 参数类型 | 默认值 | 示例 | 备注 |
task_id | 否 | int | 无 | 任务ID |
请求示例
curl -H "token:a3af84f7c1d0d935024ba58b5da78aaa" https://v6-api.jiankongbao.com/apiapi/task/info?task_id=9097
<返回数据>
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
task_id | number | 非必须 | 任务id | 备注: 任务id | |
task_name | string | 非必须 | 任务名 | 备注: 任务名 | |
class_id | number | 非必须 | 分类id | 备注: 分类id | |
frequency | number | 非必须 | 任务频率 | 备注: 任务频率 | |
alert_retry_num | string | 非必须 | 重试次数 | 备注: 重试次数 | |
alert_frequency | string | 非必须 | 连续告警频率,0表示不开启 | 备注: 连续告警频率,0表示不开启 | |
monitor | number | 非必须 | 监测点 | 备注: 监测点 item 类型: number | |
api_request_info | object | 非必须 | 请求信息 | 备注: 请求信息 item 类型: object | |
request_id | number | 非必须 | 唯一id | 备注: 唯一id | |
order_id | integer | 必须 | 事务id | 备注: 事务id | |
request_name | string | 非必须 | 请求名 | 备注: 请求名 | |
https_sslv | number | 非必须 | ssl版本,HTTPS ssl证书版本枚举 0:默认 TSL 1:SSLv3 2:TLSv1 3:TLSv1.1 4:TLSv1.2 | 备注: ssl版本,HTTPS ssl证书版本枚举 0:默认 TSL 1:SSLv3 2:TLSv1 3:TLSv1.1 4:TLSv1.2 | |
ssl_verify | number | 非必须 | ssl校验开关,0关,1开 | 备注: ssl校验开关,0关,1开 | |
request_method | string | 非必须 | 请求方式 | 备注: 请求方式 | |
url | string | 非必须 | 请求url | 备注: 请求url | |
target_url | object | 非必须 | |||
http_header | object | 非必须 | 请求header | 备注: 请求header item 类型: object | |
aver_num | number | 非必须 | |||
match_result | object | 非必须 | 响应匹配 | ||
exception_list | string | 非必须 | 出错信息列表 | 备注: 出错信息列表 item 类型: string | |
exception_num | number | 非必须 | 出错数 | 备注: 出错数 | |
variable_num | number | 非必须 | 变量数 | 备注: 变量数 | |
request_num | integer | 非必须 | 请求数 | 备注: 请求数 | |
max_request_id | integer | 非必须 | 最大请求id | 备注: 最大请求id | |
init_var_info | string | 非必须 | 初始化变量 | 备注: 初始化变量 item 类型: string | |
alert_threshold | object | 非必须 | 告警线信息 | 备注: 告警线信息 item 类型: object | |
target_type | string | 非必须 | 告警类型 | 备注: 告警类型 | |
requirement | string | 非必须 | 判断方式 | 备注: 判断方式 | |
threshold_value | string | 非必须 | 阀值 | 备注: 阀值 | |
alert_num | integer | 非必须 | 连续触发几次告警 | 备注: 连续触发几次告警 | |
unit | string | 非必须 | 单位 | 备注: 单位 | |
monitor_type | string | 非必须 | 监控点判断类型 | 备注: 监控点判断类型 | |
monitor_value | string | 非必须 | 监控点值 | 备注: 监控点值 | |
custom_switch | integer | 非必须 | 告警线开关,1开,0关 | 备注: 告警线开关,1开,0关 | |
status | number | 非必须 | 任务状态,1-开启,3-暂停 | 备注: 任务状态,1-开启,3-暂停 | |
current_status | number | 非必须 | 告警线状态[0,1],1正常,0提醒 | 备注: 告警线状态[0,1],1正常,0提醒 | |
create_time | string | 非必须 | 创建时间 | 备注: 创建时间 | |
update_time | string | 非必须 | 修改时间 | 备注: 修改时间 | |
group_id | number | 非必须 | 分组id | 备注: 分组id |
响应示例
{
"task_id": 10549,
"task_name": "用户自定义名称",
"task_user_id": 400805,
"class_id": 0,
"frequency": 2,
"alert_retry_num": "1",
"alert_frequency": "1",
"monitor": [
1,
2
],
"api_request_info": [
{
"request_id": 1,
"order_id": 1,
"request_name": "",
"https_sslv": 0,
"ssl_verify": 0,
"request_method": "GET",
"url": "http://www.demo.com/api",
"target_url": {
"method": "GET",
"request_url": "http://www.demo.com/api"
},
"aver_num": 0,
"exception_list": [],
"exception_num": 0,
"variable_num": 0
}
],
"request_num": 1,
"max_request_id": 1,
"init_var_info": [],
"alert_threshold": [
{
"target_type": "pc_respose_time",
"requirement": "gt",
"threshold_value": "2000",
"alert_num": 2,
"unit": "ms",
"monitor_type": "radom",
"monitor_value": 1,
"custom_switch": 0
},
{
"target_type": "pc_availability",
"requirement": "lt",
"threshold_value": "1",
"alert_num": 2,
"unit": "%",
"monitor_type": "null",
"monitor_value": "null",
"custom_switch": 1
},
{
"target_type": "pc_correctness",
"requirement": "lt",
"threshold_value": "100",
"alert_num": 2,
"unit": "%",
"monitor_type": "null",
"monitor_value": "null",
"custom_switch": 0
},
{
"target_type": "pc_availability_ness",
"requirement": "eq",
"threshold_value": "0",
"alert_num": 2,
"unit": "",
"monitor_type": "all",
"monitor_value": "0",
"custom_switch": 0
},
{
"target_type": "pc_correctness_ness",
"requirement": "eq",
"threshold_value": "0",
"alert_num": 2,
"unit": "",
"monitor_type": "all",
"monitor_value": "0",
"custom_switch": 0
}
],
"status": 3,
"current_status": 0,
"create_time": "1659348434",
"update_time": "1659348434",
"group_id": 0
}
