refactor: store jt808 mileage as metric diff
This commit is contained in:
@@ -12,6 +12,7 @@ The JT808 daily-mileage value is calculated from the GPS total mileage reported
|
||||
|
||||
```text
|
||||
daily_mileage_km = last_total_mileage_km - first_total_mileage_km
|
||||
calculation_method = JT808_TOTAL_MILEAGE_DIFF
|
||||
```
|
||||
|
||||
The metric is saved only after at least two ordered JT808 location points with valid `total_mileage_km` have been received for the same vehicle and local day. If the difference is negative, no metric row is saved for that state update.
|
||||
|
||||
Reference in New Issue
Block a user