- OASIS SIM(废弃)
- sensors
- dynamics
- cars
- car_models
- jobs
- tasks
- scenarios
- scenario_groups
- scenario_elements
- maps
- test_cases
- scores
- traffic_flows
- controllers
- weathers
- lights
- logs(废弃)
- emails
- users
- evaluates
- file_operator
- trashes(已废弃)
- configs
- licenses
- 查询tokenGET
获取任务列表
GET
/tasks
type:任务类型:1=simulate,2=replay
status:finish,timeout,waiting,inqueue
ret_status:failure,exception,timeout,pass
请求参数
Query 参数
pagenum
integer
可选
示例值:
1
pagesize
integer
可选
示例值:
10
asc
integer
可选
示例值:
-1
content
string
可选
status
string
作业状态,非必填
示例值:
finish,timeout,waiting,inqueue,exception
ret_status
string
可选
示例值:
failure,exception,timeout,pass
type
string
可选
示例值:
1,2
created_at_start
string
可选
示例值:
2024-06-18 00:00:00
created_at_end
string
可选
示例值:
2024-08-30 23:59:59
Header 参数
Authorization
string
必需
示例值:
bearer {{token}}
Content-Type
string
必需
示例值:
application/json
User-Agent
string
必需
示例值:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/tasks' \
--header 'Authorization: bearer {{token}}' \
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \
--header 'Content-Type: application/json'
返回响应
🟢200成功
application/json
Body
code
integer
必需
result
object
必需
pageinfo
object
必需
datas
array [object {22}]
必需
message
string
必需
示例
{ "code": 200, "result": { "pageinfo": { "total_num": 9, "total_page_num": 1 }, "datas": [ { "id": 217, "name": "scenario_20240724_226", "desc": "", "scenario_id": 9248, "type": 1, "job_id": 106, "job_name": "job_20240724_qTCkO", "status": "finish", "result": { "summary": { "level": "medium", "score": 60, "success": false, "end_time": "2024-07-24 16:10:22", "start_time": "2024-07-24 16:08:56", "criteria_count": 7, "ratio_system_game": 1.63, "game_time_duration": 139.55, "system_time_duration": 85.47, "criteria_success_count": 6 }, "criteria": [ { "name": "CollisionTest", "actor": "synkrotron.democar-804", "level": "good", "score": 100, "units": "times", "weight": 0.2, "success": true, "fail_all": false, "actual_value": 0, "ego_event_list": [], "comparison_operator": "equalTo", "expected_value_success": 0 }, { "name": "RunRedLightTest", "actor": "synkrotron.democar-804", "level": "poor", "score": 0, "units": "times", "weight": 0.2, "success": false, "fail_all": false, "actual_value": 1, "ego_event_list": [ { "location": { "x": 94.99, "y": 70.41, "z": 0.1 }, "game_time": 105.4, "object_id": 603 } ], "comparison_operator": "equalTo", "expected_value_success": 0 }, { "name": "RoadSpeedLimitTest", "actor": "synkrotron.democar-804", "level": "good", "score": 100, "units": "times", "weight": 0.2, "success": true, "fail_all": false, "actual_value": 0, "ego_event_list": [], "comparison_operator": "", "expected_value_success": 0 }, { "name": "OnRoadTest", "actor": "synkrotron.democar-804", "level": "good", "score": 100, "units": "m", "weight": 0.2, "success": true, "fail_all": false, "actual_value": 0, "ego_event_list": [], "comparison_operator": "equalTo", "expected_value_success": 0 }, { "name": "OntoSolidLineTest", "actor": "synkrotron.democar-804", "level": "good", "score": 100, "units": "times", "weight": 0.2, "success": true, "fail_all": false, "actual_value": 0, "ego_event_list": [], "comparison_operator": "equalTo", "expected_value_success": 0 }, { "name": "ReverseDirectionDrivingTest", "actor": "synkrotron.democar-804", "level": "good", "sco
修改于 2024-11-07 07:54:14