Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
en:sidebar:remoteapi:apiref:item:add_log_record [25/01/2013 15:04] zuve |
en:sidebar:remoteapi:apiref:item:add_log_record [29/11/2013 13:31] (current) |
====== Logging ====== | ====== Logging ====== |
| |
To add log record use command **item/add_log_record**: | To add a log record, use the command **item/add_log_record**: |
<code javascript> | <code javascript> |
svc=item/add_log_record¶ms={"itemId":<long>, | svc=item/add_log_record¶ms={"itemId":<long>, |
| action | action (see the list below) | | | action | action (see the list below) | |
| newValue | new value | | | newValue | new value | |
| oldValue | ald value | | | oldValue | old value | |
| |
List of available actions: | List of available actions: |
* **update_unit_pass**; | * **update_unit_pass**; |
* **update_unit_phone**; | * **update_unit_phone**; |
* **update_unit_calcflags** - изменены настройки расчета счетчиков; | * **update_unit_calcflags** (update sensor calculation settings); |
* **update_unit_milcounter** - изменен счетчик пробега; | * **update_unit_milcounter** (update mileage counter value); |
* **update_unit_bytecounter** - изменен счетчик GPRS-трафика; | * **update_unit_bytecounter** (update GPRS traffic counter value); |
* **update_unit_ehcounter** - изменен счетчик моточасов; | * **update_unit_ehcounter** (update engine hours counter value); |
* **update_unit_uid**; | * **update_unit_uid**; |
* **update_unit_hw** - изменен тип оборудования объекта; | * **update_unit_hw** (update device type); |
* **update_unit_hw_cfg** - изменена конфигурация оборудования; | * **update_unit_hw_cfg** (update device configuration); |
* **update_unit_fuel_cfg**; | * **update_unit_fuel_cfg** (update fuel consumption configuration); |
* **update_unit_trip_cfg**; | * **update_unit_trip_cfg** (update trip detection configuration); |
* **create_sensor**; | * **create_sensor**; |
* **update_sensor**; | * **update_sensor**; |
* **delete_sensor**; | * **delete_sensor**; |
* **create_alias** - создание команды; | * **create_alias** (create command); |
* **update_alias** - изменение команды; | * **update_alias** (update command); |
* **delete_alias** - удаление команды; | * **delete_alias** (delete command); |
* **create_service_interval** - создание интервала техобслуживания; | * **create_service_interval**; |
* **update_service_interval** - изменение интервала техобслуживания; | * **update_service_interval**; |
* **delete_service_interval** - удаление интервала техобслуживания; | * **delete_service_interval**; |
* **create_custom_field**; | * **create_custom_field**; |
* **update_custom_field**; | * **update_custom_field**; |
* **bind_unit_driver**; | * **bind_unit_driver**; |
* **unbind_unit_driver**; | * **unbind_unit_driver**; |
* **update_unit_report_cfg** - обновление параметров, используемыех в отчетах; | * **bind_unit_trailer**; |
* **update_msgs_filter_cfg** - обновление настроек фильтрации информации о положении объекта в сообщениях; | * **unbind_unit_trailer**; |
| * **update_unit_report_cfg** (update parameters used in reports); |
| * **update_msgs_filter_cfg** (update filtration of unit position information in messages); |
* **delete_item**; | * **delete_item**; |
* **create_user**; | * **create_user**; |
* **update_hosts_mask**; | * **update_hosts_mask**; |
* **update_user_pass**; | * **update_user_pass**; |
* **update_user_flags** - изменить настройки пользователя (на вкладке основное, под горизонтальной чертой); | * **update_user_flags**; |
* **create_user_notify** - создание информационного сообщения; | * **create_user_notify**; |
* **delete_user_notify** - удаление информационного сообщения; | * **delete_user_notify**; |
* **create_group** - создание группы объектов; | * **create_group**; |
* **units_group** - добавление/удаление объектов в группу/из группы; | * **units_group** (add/remove units to/from unit group); |
* **update_driver_units** - изменен список объектов на автоматического назначения водителей; | * **update_driver_units** (update the list of auto attachable units for drivers); |
| * **update_trailer_units** (update the list of auto attachable units for trailers); |
* **create_resource**; | * **create_resource**; |
* **create_zone**; | * **create_zone**; |
* **update_driver**; | * **update_driver**; |
* **delete_driver**; | * **delete_driver**; |
| * **create_trailer**; |
| * **update_trailer**; |
| * **delete_trailer**; |
* **create_drivers_group**; | * **create_drivers_group**; |
* **update_drivers_group**; | * **update_drivers_group**; |
* **delete_drivers_group**; | * **delete_drivers_group**; |
* **create_report** - создание шаблона отчетов; | * **create_trailers_group**; |
* **update_report** - изменение шаблона отчетов; | * **update_trailers_group**; |
* **delete_report** - удаление шаблона отчетов; | * **delete_trailers_group**; |
| * **create_report** (create report template); |
| * **update_report** (update report template); |
| * **delete_report** (delete report template); |
* **import_pois**; | * **import_pois**; |
* **import_zones**; | * **import_zones**; |
* **create_retranslator**; | * **create_retranslator**; |
* **update_retranslator**; | * **update_retranslator**; |
* **units_retranslator** - добавление объектов для ретрансляции; | * **units_retranslator** (add units for retranslation); |
* **switch_retranslator**; | * **switch_retranslator**; |
* **create_route**а; | * **create_route**; |
* **update_route_points**; | * **update_route_points**; |
* **update_route_cfg**; | * **update_route_cfg**; |
* **update_dealer_rights**; | * **update_dealer_rights**; |
* **do_payment**; | * **do_payment**; |
* **update_account_flags** - изменение флагов настроек учетной записи; | * **update_account_flags**; |
* **update_account_min_days**; | * **update_account_min_days**; |
* **update_account_plan**; | * **update_account_plan**; |