Update parameters used in reports

To update parameters used in reports, use the command unit/update_report_settings:

svc=unit/update_report_settings&params={"itemId":<long>,
					"params":{
						"speedLimit":<uint>,
						"maxMessagesInterval":<uint>,
						"dailyEngineHoursRate":<uint>,
						"urbanMaxSpeed":<uint>,
						"mileageCoefficient":<double>,
						"speedingTolerance":<uint>,
						"speedingMinDuration":<uint>,
						"speedingMode":<uint>
					}}

Parameters

Name Description
itemId unit ID
params parameters
speedLimit speed limit, km/h
maxMessagesInterval maximum interval between messages, seconds
dailyEngineHoursRate daily engine hours rate, hours
urbanMaxSpeed urban speed limit, km/h
mileageCoefficient mileage coefficient
speedingTolerance allowed speeding, km/h (used if speedingMode = 1)
speedingMinDuration min speeding time, seconds
speedingMode speeding detection mode:
0 – use speedLimit,
1 – use map data

If speedingMode = 0 and speedLimit = 0 then no any speeding table is built.

Response

{}	/* empty object if execution successful, if not - error code */