This is an old revision of the document!
Logging
To add log record use command item/add_log_record:
svc=item/add_log_record¶ms={"itemId":<long>,
"action":<text>,
"newValue":<text>,
"oldValue":<text>}
Parameters
Name | Description |
itemId | item ID |
action | action (see the list below) |
newValue | new value |
oldValue | ald value |
List of available actions:
custom_msg;
create_unit;
update_name;
update_access;
update_unit_icon;
update_unit_pass;
update_unit_phone;
update_unit_calcflags - изменены настройки расчета счетчиков;
update_unit_milcounter - изменен счетчик пробега;
update_unit_bytecounter - изменен счетчик GPRS-трафика;
update_unit_ehcounter - изменен счетчик моточасов;
update_unit_uid;
update_unit_hw - изменен тип оборудования объекта;
update_unit_hw_cfg - изменена конфигурация оборудования;
update_unit_fuel_cfg;
update_unit_trip_cfg;
create_sensor;
update_sensor;
delete_sensor;
create_alias - создание команды;
update_alias - изменение команды;
delete_alias - удаление команды;
create_service_interval - создание интервала техобслуживания;
update_service_interval - изменение интервала техобслуживания;
delete_service_interval - удаление интервала техобслуживания;
create_custom_field;
update_custom_field;
delete_custom_field;
import_item_cfg;
import_unit_cfg;
export_unit_msgs;
import_unit_msgs;
delete_unit_msg;
delete_unit_msgs;
bind_unit_driver;
unbind_unit_driver;
update_unit_report_cfg - обновление параметров, используемыех в отчетах;
update_msgs_filter_cfg - обновление настроек фильтрации информации о положении объекта в сообщениях;
delete_item;
create_user;
update_hosts_mask;
update_user_pass;
update_user_flags - изменить настройки пользователя (на вкладке основное, под горизонтальной чертой);
create_user_notify - создание информационного сообщения;
delete_user_notify - удаление информационного сообщения;
create_group - создание группы объектов;
units_group - добавление/удаление объектов в группу/из группы;
update_driver_units - изменен список объектов на автоматического назначения водителей;
create_resource;
create_zone;
update_zone;
delete_zone;
create_poi;
update_poi;
delete_poi;
create_job;
switch_job;
update_job;
delete_job;
create_notify;
switch_notify;
update_notify;
delete_notify;
create_driver;
update_driver;
delete_driver;
create_drivers_group;
update_drivers_group;
delete_drivers_group;
create_report - создание шаблона отчетов;
update_report - изменение шаблона отчетов;
delete_report - удаление шаблона отчетов;
import_pois;
import_zones;
create_retranslator;
update_retranslator;
units_retranslator - добавление объектов для ретрансляции;
switch_retranslator;
create_routeа;
update_route_points;
update_route_cfg;
create_round;
update_round;
delete_round;
create_schedule;
update_schedule;
delete_schedule;
create_account;
delete_account;
switch_account;
update_dealer_rights;
do_payment;
update_account_flags - изменение флагов настроек учетной записи;
update_account_min_days;
update_account_plan;
update_account_history_period;
update_account_subplans;
create_service;
update_service;
delete_service.
Response
{} /* empty object if execution successful, if not - error code */