Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
en:sidebar:remoteapi:apiref:item:add_log_record [28/01/2013 06:58] 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 sensor calculation settings; | * **update_unit_calcflags** (update sensor calculation settings); |
* **update_unit_milcounter** - update mileage counter value; | * **update_unit_milcounter** (update mileage counter value); |
* **update_unit_bytecounter** - update GPRS traffic counter value; | * **update_unit_bytecounter** (update GPRS traffic counter value); |
* **update_unit_ehcounter** - update engone hours counter value; | * **update_unit_ehcounter** (update engine hours counter value); |
* **update_unit_uid**; | * **update_unit_uid**; |
* **update_unit_hw** - update hardware type; | * **update_unit_hw** (update device type); |
* **update_unit_hw_cfg** - update hardware configuration; | * **update_unit_hw_cfg** (update device configuration); |
* **update_unit_fuel_cfg** - update fuel concumption configuration; | * **update_unit_fuel_cfg** (update fuel consumption configuration); |
* **update_unit_trip_cfg** - update trip detection configuration; | * **update_unit_trip_cfg** (update trip detection configuration); |
* **create_sensor**; | * **create_sensor**; |
* **update_sensor**; | * **update_sensor**; |
* **delete_sensor**; | * **delete_sensor**; |
* **create_alias** - create command; | * **create_alias** (create command); |
* **update_alias** - update command; | * **update_alias** (update command); |
* **delete_alias** - delete command; | * **delete_alias** (delete command); |
* **create_service_interval**; | * **create_service_interval**; |
* **update_service_interval**; | * **update_service_interval**; |
* **bind_unit_driver**; | * **bind_unit_driver**; |
* **unbind_unit_driver**; | * **unbind_unit_driver**; |
* **update_unit_report_cfg** - update parameters used in reports; | * **bind_unit_trailer**; |
* **update_msgs_filter_cfg** - update filtration of unit position information in messages; | * **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**; |
* **delete_user_notify**; | * **delete_user_notify**; |
* **create_group**; | * **create_group**; |
* **units_group** - add/remove units into group; | * **units_group** (add/remove units to/from unit group); |
* **update_driver_units** - update the list of auto attachable units for drivers; | * **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 report template; | * **create_trailers_group**; |
* **update_report** - update report template; | * **update_trailers_group**; |
* **delete_report** - delete report template; | * **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** - add units for tertranslation; | * **units_retranslator** (add units for retranslation); |
* **switch_retranslator**; | * **switch_retranslator**; |
* **create_route**; | * **create_route**; |