Skip to content

Instantly share code, notes, and snippets.

@blangel
blangel / WeatherCondition.json
Created October 2, 2018 19:10
Dash Fleet API - WeatherCondition Example JSON
{"id":"2d708886-c675-11e8-a355-529269fb1459",
"dateTime":1541035220000,
"temperature":71,
"temperatureUnit":"Fahrenheit",
"weatherConditions":"Sunny",
"weatherConditionsImageUrl":"https://dash.by/s/10jrk23joire3j"
}
@blangel
blangel / DeviceVehicle.json
Created October 2, 2018 19:34
Dash Fleet API - DeviceVehicle Example JSON
{"device":{ DEVICE_OBJ },
"latestVehicle":{ VEHICLE_OBJ }}
@blangel
blangel / Device.json
Created October 2, 2018 19:38
Dash Fleet API - Device Example JSON
{"id":"2d708886-c675-11e8-a355-529269fb1459",
"imei":"990000862471854",
"esn":"16777215",
"adminUserId":"45745c60-7b1a-11e8-9c9c-2d42b21b1a3e"
}
@blangel
blangel / RouteItem.json
Last active October 2, 2018 19:47
Dash Fleet API - RouteItem Example JSON
{"id":"2d708886-c675-11e8-a355-529269fb1459",
"dateTime":1541030399000,
"location":{ LOCATION_OBJ },
"speed":40,
"speedUnit":"MilesPerHour",
"fuelEfficiency":21,
"fuelEfficiencyUnit":"MilesPerUSGallon",
"rpm":1200,
"batteryVoltage":14.1,
"fuelPercentage":80,
@blangel
blangel / VehicleScore.json
Created October 2, 2018 19:55
Dash Fleet API - VehicleScore Example JSON
{"vehicle":{ VEHICLE_OBJ },
"dateTime":1538352000000,
"endDateTime":1541030399999,
"score":{ SCORE_OBJ },
"scoreComponents":[{ SCORE_OBJ }, ...]
}
@blangel
blangel / DriverScore.json
Created October 2, 2018 19:57
Dash Fleet API - DriverScore Example JSON
{"driver":{ DRIVER_OBJ },
"dateTime":1538352000000,
"endDateTime":1541030399999,
"score":{ SCORE_OBJ },
"scoreComponents":[{ SCORE_OBJ }, ...]
}
@blangel
blangel / Stats.json
Last active November 27, 2018 14:10
Dash Fleet API - Stats Example JSON
{"id":"45745c60-7b1a-11e8-9c9c-2d42b21b1a3e",
"dateTime":1538352000000,
"endDateTime":1541030399999,
"unitCount":2,
"mockData":false,
"totalTime":100230,
"totalTimeByDay":[1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002],
"totalIdlingTime":900,
"totalIdlingTimeByDay":[0,0,0,330,0,0,0,0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,330,0,0,0,0,0,0],
"totalSpeedingTime":900,
@blangel
blangel / StatsChangeRequest.json
Last active November 27, 2018 18:02
Dash Fleet API - StatsChangeRequest Example JSON
{"id":"ID",
"dateTime":DATE_TIME,
"endDateTime":END_DATE_TIME,
"mockData":MOCK_DATA,
"totalTime":TOTAL_TIME,
"totalDrives":TOTAL_DRIVES,
"totalDistance":TOTAL_DISTANCE,
"totalFuelConsumed":TOTAL_FUEL_CONSUMED,
"averageFuelEconomy":AVG_FUEL_ECONOMY,
"estimatedFuelCost":EST_FUEL_COST
@blangel
blangel / StatsChangeResult.json
Last active November 27, 2018 14:13
Dash Fleet API - StatsChangeResult Example JSON
{"id":"ID",
"dateTime":1538352000000,
"endDateTime":1541030399999,
"mockData":false,
"timePercentChange":-10,
"drivesPercentChange":10,
"distancePercentChange":5,
"fuelConsumedPercentChange":-10,
"fuelEconomyPercentChange":10,
"fuelEconomyPercentChangeNegativeIsWorst":true,
@blangel
blangel / DriveDriverUpdate.json
Created October 3, 2018 16:52
Dash Fleet API - DriveDriverUpdate Example JSON
{"drive":{ DRIVE_OBJ },
"driver":{ DRIVER_OBJ }
}