Authorization: Bearer ********************{
"config": null,
"enable": true,
"name": "测试检测任务",
"task": {
"cron_expr": "0 0 * * *",
"log_level": "info",
"log_write_file": true,
"notify": true,
"notify_channel": 1,
"sub_id": [
1
],
"sub_id_exclude": false,
"timeout": 60,
"type": "test"
}
}curl --location --request PUT 'http://localhost:8080/api/v1/check/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"config": null,
"enable": true,
"name": "测试检测任务",
"task": {
"cron_expr": "0 0 * * *",
"log_level": "info",
"log_write_file": true,
"notify": true,
"notify_channel": 1,
"sub_id": [
1
],
"sub_id_exclude": false,
"timeout": 60,
"type": "test"
}
}'{
"code": 200,
"data": {
"config": null,
"enable": true,
"id": 0,
"name": "string",
"result": {
"duration": 0,
"extra": null,
"last_run": "string",
"msg": "string"
},
"status": "string",
"task": {
"cron_expr": "0 0 * * *",
"log_level": "info",
"log_write_file": true,
"notify": true,
"notify_channel": 1,
"sub_id": [
1
],
"sub_id_exclude": false,
"timeout": 60,
"type": "test"
}
},
"message": "success"
}