Шаблон запроса:
http://{host}/ts/json_api;jsessionid=<sid>?cmd=reports/get_all_obj_summary_by_interval¶ms={"begin_dt":"<begin_dt>","end_dt":"<end_dt>","lang":"<lang>"}
Параметры запроса:
sid
уникальный идентификатор сессии
begin_dt
end_dt
Шаблон ответа на запрос:
{"count":<count>,"all_obj_summary":<all_obj_summary>}
Параметры ответа на запрос:
all_obj_summary
массив строк
Описание полей ответа на запрос:
obj_id
obj_name
mileage
mileage_by_trip
Пробег (по поездкам), км
avg_speed_in_kph
max_speed_in_kph
total_time_in_trips_str
total_time_in_parkings_str
motohours_str
dart_spent
dut_spent
spent_by_norm
spent_by_norm_by_trip
spent_by_calc
dart_avg
dut_avg
dut_begin_level
dut_end_level
refuel_cnt
defuel_cnt
defueled
last_message_dt
last_message_coordinates_str
last_message_sensors
last_message_move_state_tooltip
motohour_counter_val
mileage_counter_val
Пример запроса:
http://morseti.barkuan8.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.08.2021T23:59:59","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":"0sec.","grp_txt":"","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_val":"","obj_id":26377,"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,"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,"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_move_state_tooltip":"","dart_avg":0,"last_message_dt":"","mileage":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,"total_time_in_trips":0,"last_message_sensors":"","obj_name":"h,kh","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":"0sec.","grp_txt":"","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_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_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":"On-board voltage=290.0 V, Battery voltage=733.0 V","obj_name":"Honda A145","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":"0sec.","grp_txt":"","total_time_in_parkings":0,"spent_by_calc":0,"last_message_move_state_tooltip":"Object stands for 48sec.","dart_avg":0,"last_message_dt":"26.08.2021T16:28:27","mileage":0,"motohours":0,"motohour_counter_val":"0 h.","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_message_coordinates_str":"51.99572, 70.933643 (10)","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":"Mersedes-Benz 140","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":"0sec.","grp_txt":"","total_time_in_parkings":0,"spent_by_calc":0,"last_message_move_state_tooltip":"Last state: Stands for 3h., 15min., 11sec.","dart_avg":0,"last_message_dt":"26.08.2021T16:29:04","mileage":0,"motohours":0,"motohour_counter_val":"0 h.","obj_id":10305,"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.360428, 77.016322 (16)","motohours_str":"0sec.","defuel_cnt":0,"is_total_row":false},{"refueled":0,"dut_begin_level":0,"total_time_in_trips":0,"last_message_sensors":"On-board voltage=13426.0 V, Ignition sensor=Выкл","obj_name":"Subaru 157","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":"0sec.","grp_txt":"","total_time_in_parkings":0,"spent_by_calc":0,"last_message_move_state_tooltip":"Object stands for 51sec.","dart_avg":0,"last_message_dt":"26.08.2021T16:28:24","mileage":0,"motohours":0,"motohour_counter_val":"0 h.","obj_id":10304,"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":"49.97726, 82.586107 (16)","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":"Айгыр","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":"0sec.","grp_txt":"","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_val":"","obj_id":26379,"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,"total_time_in_trips":0,"last_message_sensors":"","obj_name":"Газель","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":"0sec.","grp_txt":"","total_time_in_parkings":0,"spent_by_calc":0,"last_message_move_state_tooltip":"Last state: Stands for 3 d., 11h., 36min., 42sec.","dart_avg":0,"last_message_dt":"26.08.2021T16:28:54","mileage":0,"motohours":0,"motohour_counter_val":"0 h.","obj_id":10303,"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}]}