ขอแม่แบบ:
http: // {โฮสต์} / ts / json_api; jsessionid = <sid>? cmd = รายงาน / get_all_obj_summary_by_interval & params = {"begin_dt": "<begin_dt>", "end_dt": "<end_dt>", "lang": " <lang> "}
ขอพารามิเตอร์:
ซิด
ตัวระบุเซสชันที่ไม่ซ้ำ
start_dt
end_dt
ขอเทมเพลตการตอบกลับ:
{"count": <count>, "all_obj_summary": <all_obj_summary>}
ขอพารามิเตอร์การตอบสนอง:
all_obj_summary
อาร์เรย์ของสตริง
คำอธิบายของช่องตอบกลับคำขอ:
obj_id
obj_name
ระยะทาง
mileage_by_trip
ระยะทาง (ระหว่างการเดินทาง), km
avg_speed_in_kph
max_speed_in_kph
total_time_in_trips_str
total_time_in_parkings_str
motohours_str
dart_spent
dut_spent
ใช้จ่าย_by_norm
ใช้จ่ายไป_by_norm_by_trip
ใช้จ่าย_by_calc
dart_avg
dut_avg
dut_begin_level
dut_end_level
เติมเชื้อเพลิง_cnt
defuel_cnt
เติมน้ำมัน
last_message_dt
last_message_coordinates_str
last_message_sensors
last_message_move_state_tooltip
motohour_counter_val
mileage_counter_val
ตัวอย่างคำขอ:
http:// justrac.com /ts/json_api;jsessionid=0ABDEF9131EBF68D1418589584CA984D?cmd=reports/get_all_obj_summary_by_interval¶ms={"begin_dt":"27.08.2021T00:00:00","end_dt":"27.5908.2021"T23:27.5908.2021"T23:: ,"lang":"en"}
ตัวอย่างของการตอบสนองต่อคำขอ:
{"count": 8, "all_obj_summary": [{"refueled": 0, "dut_begin_level": 0, "total_time_in_trips": 0, "last_message_sensors": "", "obj_name": "ADMINTELECOM", "mileage_by_trip": 0, "max_speed_in_kph": 0, "total_time_in_parkings_str": "0sec.", "Dut_end_level": 0, "spent_by_norm_by_trip": 0, "refuel_cnt": 0, "total_time_in_trips_str": "gr:" 0 ก.ย. " , "total_time_in_parkings": 0, "spent_by_calc": 0, "last_message_move_state_tooltip": "", "dart_avg": 0, "last_message_dt": "", "mileage": 0, "motohours": 0, "motohour "_counter "," obj_id ": 26377," spend_by_norm ": 0," avg_speed_in_kph ": 0," mileage_counter_val ":" "," defueled ": 0," dut_spent ": 0," dart_spent ": 0," dut_avg ": 0 , "last_message_coordinates_str": "", "motohours_str": "0sec.", "defuel_cnt": 0, "is_total_row": false}, {"refueled": 0, "dut_begin_level": 0, "total_time_in_trips": 0, " last_message_sensors ":" "," obj_name ":" asuto "," mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_parkings_str ":" 0sec. "," dut_end_level ": 0," ใช้แล้ว_by_norm_by_by_nt " : 0, in "totals" : "0sec.", "Grp_t xt ":" "," total_time_in_parkings ": 0," ใช้แล้ว_by_calc ": 0," last_message_move_state_tooltip ":" "," dart_avg ": 0," last_message_dt ":" "," ไมล์สะสม ": 0," motohours ": 0, "motohour_counter_val": "", "obj_id": 26336, "spent_by_norm": 0, "avg_speed_in_kph" : 0, "mileage_counter_val": "", "defueled": 0, "dut_spent": 0, "dart_spent": 0, "dut_avg": 0, "last_message_coordinates_str": "", "motohours_str": "0sec.", "defuel_cnt": 0, "is_total_row": false}, {"refueled": 0, "dut_begin_level": 0_trips ": 0," last_message_sensors ":" "," obj_name ":" h, kh "," mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_parkings_str ":" 0 วินาที "," Dut_end_level_bytrip_by_by_norm_by_by_norm_by_ ": 0," refuel_cnt ": 0," total_time_in_trips_str ":" 0 วินาที "," Grp_txt ":" "," total_time_in_parkings ": 0," ใช้แล้ว_by_calc ": 0," last_message_move_state_tooltip ":" "": dart , "last_message_dt": "", "mileage": 0, "motohours": 0, "motohour_counter_val": "", "obj_id": 26725, "spent_by_norm": 0, "avg_speed_in_kph": 0, "mileage_counter_val": " "," defueled ": 0," dut_spent ": 0," dart_spent ": 0, " dut_avg ": 0," last_mess age_coordinates_str ":" "," motohours_str ":" 0sec. "," defuel_cnt ": 0," is_total_row ": false}, {" เติมน้ำมัน ": 0," dut_begin_level ": 0," รวม 0sec.", "Dut_end_level" : 0, "spent_by_norm_by_trip": 0, "refuel_cnt": 0, "total_time_in_trips_str": "0sec.", "Grp_txt": "", "total_time_in_parkings": 0, "spent_by_calc": 0, "last_message_tooltip_str" เป็นเวลา 48 วินาที "," dart_avg ": 0," last_message_dt ":" 08/26/2021T16: 28: 27 "," ไมล์สะสม " : 0," motohours ": 0," motohour_counter_val ":" 0 ชม. "," obj_id " : 10302, "spent_by_norm": 0, "avg_speed_in_kph": 0, "mileage_counter_val": "0 km", "defueled": 0, "dut_spent": 0, "dart_spent": 0, "dut_avg" : 0, "last_messr_coordinates_coordinates ":" 51.99572, 70.933643 (10) "," motohours_str ":" 0sec. "," Defuel_cnt ": 0," is_total_row ": false}, {" เติมเชื้อเพลิง ": 0," dut_begin_level ": 0," total_time_in_trips ": 0, "last_message_sensors": "", "obj_name": "Mersede s-Benz 140 "," mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_parkings_str ":" 0 วินาที "," dut_end_level ": 0," ใช้แล้ว_by_norm_by_trip ": 0," refuel_cnt ": 0," total_time_str " 0sec. "," Grp_txt ":" "," total_time_in_parkings ": 0," ใช้แล้ว_by_calc ": 0," last_message_move_state_tooltip ": " Last state: ย่อมาจาก 3h., 15min., 11sec. "," Dart_avg ": 0," last_message_dt ":" 08/26/2021T16: 29:04 "," mileage ": 0," motohours ": 0, " motohour_counter_val ":" 0 h. "," obj_id ": 10305," spend_by_norm ": 0," avg_speed_in_kph " : 0, "mileage_counter_val": "0 km", "defueled": 0, "dut_spent": 0, " dart_spent": 0, "dut_avg": 0, "last_message_coordinates_str": "43.360428, 77.016322 (16)", " motohours_str ":" 0sec. "," defuel_cnt ": 0," is_total_row ": false}, {" เติมน้ำมัน " : 0," dut_begin_level ": 0," total_time_in_trips ": 0," last_message_sensors ":" แรงดันไฟฟ้าออนบอร์ด = 13426.0 V เซ็นเซอร์จุดระเบิด = ปิด "," obj_name ":" Subaru 157 "," mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_parkings_str ":" 0sec. "," Dut_end_level ": 0," ใช้แล้ว_by_norm_ , "refuel_cnt": 0, "total_time_in _trips_ str ":" 0 วินาที "," grp_txt ":" "," total_time_in_parkings ": 0," spend_by_calc ": 0," last_message_move_state_tooltip ":" Object ย่อมาจาก 51sec. "," dart_avg ": 0," last_ "" 08/26/2021T16: 28: 24 "," ไมล์สะสม ": 0," motohours ": 0," motohour_counter_val ":" 0 ชม. "," Obj_id ": 10304," ใช้แล้ว ": 0," avg_speed_in_kph ": 0," mileage_counter_val ":" 0 km "," defueled ": 0," dut_spent ": 0," dart_spent ": 0," dut_avg " : 0," last_message_coordinates_str ":" 49.97726, 82.586107 (16) "," motohours_str ":" 0sec. "," Defuel_cnt ": 0," is_total_row ": false}, {" เติมน้ำมัน ": 0," dut_begin_level ": 0," total_time_in_trips ": 0," last_message_sensors ":" "," obj_name ":" Aygyr " , " ไมล์สะสม ": 0," spend_by_calc ": 0," last_message_move_state_tooltip ":" "," dart_avg ": 0," last_message_dt ":" "," ไมล์สะสม ": 0," motohours ": 0, "motohour_counter_val": "", " obj_id": 26379, "spent_by_norm": 0, "avg_speed_in_k ph ": 0," mileage_counter_val ":" "," defueled ": 0," dut_spent ": 0," dart_spent ": 0," dut_avg ": 0," last_message_coordinates_str ":" "," motohours_str ":" 0sec. "," defuel_cnt ": 0," is_total_row ": false}, {" เติมน้ำมัน ": 0," dut_begin_level ": 0," total_time_in_trips ": 0," last_message_sensors " :" "," obj_name ":" Gazelle "," mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_ Parkings_str ":" 0 วินาที "," dut_end_level ": 0," ใช้แล้ว_by_norm_by_trip ": 0," refuel_cnt ": 0," total_time_ grin_trisepxt. : "", "total_time_in_parkings": 0, "spent_by_calc": 0, "last_message_move_state_tooltip": "Last state: ย่อมาจาก 3 d., 11h., 36min., 42sec.", "dart_avg": 0, "last_message_dt": "08/26/2021T16: 28: 54", "ระยะทาง": 0, "motohours": 0, "motohour_counter_val": "0 h.", "Obj_id": 100303, "spent_by_norm": 0, "avg_speed_in_kph": 0, "mileage_counter_val": "0 km", "defueled": 0, "dut_spent": 0, "dart_spent": 0, "dut_avg": 0, "last_message_coordinates_str": "43.232315, 76.922308 (14)", "motohours_str ": "0sec.", "Defuel_cnt": 0, "is_total_row": false}]}