Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
en:sidebar:remoteapi:apiref:item:add_log_record [29/01/2013 06:59] 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_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**; |
* **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); | * **update_trailer_units** (update the list of auto attachable units for trailers); |
* **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**; |