GET v1/selReportCommons
Метод який обраховує звіт "Загальний".
Параметри запиту
Формат запиту (URI parameters)
Назва | Опис | Tип | Додатково |
---|---|---|---|
deviceIDs |
Масив ID авто |
Collection of integer |
Обов'язковий |
dateFrom |
Дата початку періоду розрахунків (у форматі ISO) |
string |
Обов'язковий |
dateTo |
Дата закінчення періоду розрахунків (у форматі ISO) |
string |
Обов'язковий |
isNeedFuelSpendByFlowingSensor |
Ознака чи потрібно рахувати витрати пального за проточним датчиком |
boolean | |
isNeedFuelSpendByNorm |
Ознака чи потрібно рахувати витрати пального за нормами |
boolean | |
isNeedFindRegions |
Ознака чи потрібно шукати регіон |
boolean | |
isUseTimeInEachDay |
Ознака чи враховувати обмеження по часі в кожен день періоду |
boolean |
Не обов'язковий |
Тіло запиту (body parameters)
Відсутнє.
Параметри відповіді
Опис
Назва | Опис | Tип | Додатково |
---|---|---|---|
deviceID |
ID авто |
integer | |
actions |
Події звіту |
Collection of ReportCommonsAction | |
fuelSpendOn1Km |
Витрати пального на 1 км шляху |
decimal number | |
fuelSpendOn100Km |
Витрати пального на 100 км шляху |
decimal number | |
fuelSpendOn1Minute |
Витрати пального за 1 хв. |
decimal number | |
fuelSpendByFlowingSensor |
Витрати пального |
decimal number | |
isApprovedFuelSpendBySensor |
Ознака чи затверджено пальне за датчиком |
boolean | |
isApprovedFuelSpendByNorm |
Ознака чи затверджено пальне за нормою |
boolean |
Формат відповіді
application/json
Приклад:
[ { "deviceID": 1, "actions": [ { "dateFrom": "2024-11-21T08:20:46.7198852+02:00", "dateTo": "2024-11-21T08:20:46.7198852+02:00", "type": 0, "iButtonDescription": "sample string 3", "regionIDs": [ { "Key": 1, "Value": "sample string 2" }, { "Key": 1, "Value": "sample string 2" } ], "orderNo": 4, "distance": 1.1, "speedAverage": 1, "speedMax": 1, "fuelSpendByNorm": 1.1, "fuelIn": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "fuelOnStart": 3.1, "fuelOnEnd": 4.1, "fuelIn": 1, "fuelOut": null, "fuelAdjust": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "value": 3, "sensorValue": 4, "deviceID": 5, "isChangeByOperator": true, "checkNo": "sample string 7", "type": 0 }, "x": 7.1, "y": 8.1, "isOutsideCalibration": true }, "fuelOut": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "fuelOnStart": 3.1, "fuelOnEnd": 4.1, "fuelIn": 1, "fuelOut": null, "fuelAdjust": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "value": 3, "sensorValue": 4, "deviceID": 5, "isChangeByOperator": true, "checkNo": "sample string 7", "type": 0 }, "x": 7.1, "y": 8.1, "isOutsideCalibration": true }, "iButtonKey": "sample string 5", "voltageMax": 6.1, "voltageMin": 7.1, "filteredActionsCount": 10, "isVirtual": true, "points": [ { "deviceID": 1, "onDate": "2024-11-21T08:20:46", "lng": 3.1, "lat": 4.1, "speed": 5, "satellites": 6, "distance": 7.1 }, { "deviceID": 1, "onDate": "2024-11-21T08:20:46", "lng": 3.1, "lat": 4.1, "speed": 5, "satellites": 6, "distance": 7.1 } ] }, { "dateFrom": "2024-11-21T08:20:46.7198852+02:00", "dateTo": "2024-11-21T08:20:46.7198852+02:00", "type": 0, "iButtonDescription": "sample string 3", "regionIDs": [ { "Key": 1, "Value": "sample string 2" }, { "Key": 1, "Value": "sample string 2" } ], "orderNo": 4, "distance": 1.1, "speedAverage": 1, "speedMax": 1, "fuelSpendByNorm": 1.1, "fuelIn": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "fuelOnStart": 3.1, "fuelOnEnd": 4.1, "fuelIn": 1, "fuelOut": null, "fuelAdjust": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "value": 3, "sensorValue": 4, "deviceID": 5, "isChangeByOperator": true, "checkNo": "sample string 7", "type": 0 }, "x": 7.1, "y": 8.1, "isOutsideCalibration": true }, "fuelOut": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "fuelOnStart": 3.1, "fuelOnEnd": 4.1, "fuelIn": 1, "fuelOut": null, "fuelAdjust": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "value": 3, "sensorValue": 4, "deviceID": 5, "isChangeByOperator": true, "checkNo": "sample string 7", "type": 0 }, "x": 7.1, "y": 8.1, "isOutsideCalibration": true }, "iButtonKey": "sample string 5", "voltageMax": 6.1, "voltageMin": 7.1, "filteredActionsCount": 10, "isVirtual": true, "points": [ { "deviceID": 1, "onDate": "2024-11-21T08:20:46", "lng": 3.1, "lat": 4.1, "speed": 5, "satellites": 6, "distance": 7.1 }, { "deviceID": 1, "onDate": "2024-11-21T08:20:46", "lng": 3.1, "lat": 4.1, "speed": 5, "satellites": 6, "distance": 7.1 } ] } ], "fuelSpendOn1Km": 1.1, "fuelSpendOn100Km": 1.1, "fuelSpendOn1Minute": 1.1, "fuelSpendByFlowingSensor": 1.1, "isApprovedFuelSpendBySensor": true, "isApprovedFuelSpendByNorm": true }, { "deviceID": 1, "actions": [ { "dateFrom": "2024-11-21T08:20:46.7198852+02:00", "dateTo": "2024-11-21T08:20:46.7198852+02:00", "type": 0, "iButtonDescription": "sample string 3", "regionIDs": [ { "Key": 1, "Value": "sample string 2" }, { "Key": 1, "Value": "sample string 2" } ], "orderNo": 4, "distance": 1.1, "speedAverage": 1, "speedMax": 1, "fuelSpendByNorm": 1.1, "fuelIn": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "fuelOnStart": 3.1, "fuelOnEnd": 4.1, "fuelIn": 1, "fuelOut": null, "fuelAdjust": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "value": 3, "sensorValue": 4, "deviceID": 5, "isChangeByOperator": true, "checkNo": "sample string 7", "type": 0 }, "x": 7.1, "y": 8.1, "isOutsideCalibration": true }, "fuelOut": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "fuelOnStart": 3.1, "fuelOnEnd": 4.1, "fuelIn": 1, "fuelOut": null, "fuelAdjust": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "value": 3, "sensorValue": 4, "deviceID": 5, "isChangeByOperator": true, "checkNo": "sample string 7", "type": 0 }, "x": 7.1, "y": 8.1, "isOutsideCalibration": true }, "iButtonKey": "sample string 5", "voltageMax": 6.1, "voltageMin": 7.1, "filteredActionsCount": 10, "isVirtual": true, "points": [ { "deviceID": 1, "onDate": "2024-11-21T08:20:46", "lng": 3.1, "lat": 4.1, "speed": 5, "satellites": 6, "distance": 7.1 }, { "deviceID": 1, "onDate": "2024-11-21T08:20:46", "lng": 3.1, "lat": 4.1, "speed": 5, "satellites": 6, "distance": 7.1 } ] }, { "dateFrom": "2024-11-21T08:20:46.7198852+02:00", "dateTo": "2024-11-21T08:20:46.7198852+02:00", "type": 0, "iButtonDescription": "sample string 3", "regionIDs": [ { "Key": 1, "Value": "sample string 2" }, { "Key": 1, "Value": "sample string 2" } ], "orderNo": 4, "distance": 1.1, "speedAverage": 1, "speedMax": 1, "fuelSpendByNorm": 1.1, "fuelIn": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "fuelOnStart": 3.1, "fuelOnEnd": 4.1, "fuelIn": 1, "fuelOut": null, "fuelAdjust": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "value": 3, "sensorValue": 4, "deviceID": 5, "isChangeByOperator": true, "checkNo": "sample string 7", "type": 0 }, "x": 7.1, "y": 8.1, "isOutsideCalibration": true }, "fuelOut": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "fuelOnStart": 3.1, "fuelOnEnd": 4.1, "fuelIn": 1, "fuelOut": null, "fuelAdjust": { "id": 1, "onDate": "2024-11-21T08:20:46.7198852+02:00", "value": 3, "sensorValue": 4, "deviceID": 5, "isChangeByOperator": true, "checkNo": "sample string 7", "type": 0 }, "x": 7.1, "y": 8.1, "isOutsideCalibration": true }, "iButtonKey": "sample string 5", "voltageMax": 6.1, "voltageMin": 7.1, "filteredActionsCount": 10, "isVirtual": true, "points": [ { "deviceID": 1, "onDate": "2024-11-21T08:20:46", "lng": 3.1, "lat": 4.1, "speed": 5, "satellites": 6, "distance": 7.1 }, { "deviceID": 1, "onDate": "2024-11-21T08:20:46", "lng": 3.1, "lat": 4.1, "speed": 5, "satellites": 6, "distance": 7.1 } ] } ], "fuelSpendOn1Km": 1.1, "fuelSpendOn100Km": 1.1, "fuelSpendOn1Minute": 1.1, "fuelSpendByFlowingSensor": 1.1, "isApprovedFuelSpendBySensor": true, "isApprovedFuelSpendByNorm": true } ]