新增badcase
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param | AddNewBadCaseDTO | 必须 | 参数对象 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
response_data | Number | 12345678 | 添加的badcaseid |
msg_info | String | badcase添加成功 | 接口调用结果信息 |
msg_code | String | SUCCESS | 接口调用返回code信息 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAutocarBadcaseAddRequest req = new AlibabaAutocarBadcaseAddRequest(); AlibabaAutocarBadcaseAddRequest.AddNewBadCaseDTO obj1 = new AlibabaAutocarBadcaseAddRequest.AddNewBadCaseDTO(); obj1.setDisengageType( "EVENT_GUARD_PARALLEL_INTERPOSE" ); obj1.setCreator( "张三" ); obj1.setShotOssUrl( "auto-car-data/adctest/case/viewer_shot/61d947059069-a8cc85b169d6.jpg" ); obj1.setLabelInfo( "{\"duration\":120,\"taskType\":\"小GCase\",\"takeover\":\"TakeOver\",\"label\":{\"待分派\":{\"extend\":{\"行驶路网\":{\"仓溢东苑\":\"cydy-xg\"},\"问题类型\":{\"无效接管\":\"无效接管\"}},\"不智能表现\":[],\"行驶路网\":\"仓溢东苑\",\"问题类型\":\"无效接管\",\"道路拓扑结构\":\"直路\"}},\"projectName\":\"小G\",\"version\":{\"integration\":\"v4.3.2.60\",\"conf\":\"3.2.2_20200903-203211-9f01d8a\",\"map\":\"loc.20200619181748.1032\"}}" ); obj1.setCaseLabelType( "标注类型" ); obj1.setCaseId(98783920L); obj1.setModule( "待分派" ); obj1.setDescription( "守护线上干预" ); obj1.setLabel( "{\"待分派\":{\"extend\":{\"行驶路网\":{\"仓溢东苑\":\"cydy-xg\"},\"问题类型\":{\"无效接管\":\"无效接管\"}},\"不智能表现\":[],\"行驶路网\":\"仓溢东苑\",\"问题类型\":\"无效接管\",\"道路拓扑结构\":\"直路\"}}" ); obj1.setTimeConfig( "{\"simTime\": 1602324784000000, \"exitTime\": 1602324814000000, \"entryTime\": 1602324774000000}" ); obj1.setTimestamp(1602324794000000L); obj1.setDeviceId( "A1-001" ); obj1.setStartTime(StringUtils.parseDateTime( "2024-10-25 17:33:17" )); obj1.setEndTime(StringUtils.parseDateTime( "2024-10-25 17:33:17" )); req.setParam(obj1); AlibabaAutocarBadcaseAddResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 | < alibaba_autocar_badcase_add_response > < response_data >12345678</ response_data > < msg_info >badcase添加成功</ msg_info > < msg_code >SUCCESS</ msg_code > </ alibaba_autocar_badcase_add_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|