Skip to content

Instantly share code, notes, and snippets.

@blangel
blangel / ScheduledMaintenanceRequest.json
Last active February 4, 2019 16:43
Dash Fleet API - ScheduledMaintenanceRequest.json
{"type":"OilChange",
"vehicleId":"2d708886-c675-11e8-a355-529269fb1459",
"description":"Oil change due in 3 months",
"notes":"Use coupon code KJFD34",
"distancePerMaintenance":"5000",
"distanceUnit":"Miles",
"millisecondsPerMaintenance":15770000000
}
@blangel
blangel / ScheduledMaintenance.json
Created February 4, 2019 16:34
Dash Fleet API - ScheduledMaintenance.json
{"id":"3e897786-c715-32e8-a355-529269fc3619",
"dateTime":1549297744000,
"type":"OilChange",
"vehicleId":"2d708886-c675-11e8-a355-529269fb1459",
"sourceId":"46706896-a765-349f-a355-be9249cf1460",
"description":"Oil change due in 3 months",
"notes":"Use coupon code KJFD34",
"iconImageUrl":"https://dash.by/api/s/kfj3kj43",
"iconHighlightImageUrl":"https://dash.by/api/s/3j50jde",
"distancePerMaintenance":"5000",
@blangel
blangel / DriveVehicleUpdateRequest.json
Created December 18, 2018 17:34
Dash Fleet API - DriveVehicleUpdateRequest Example JSON
{"drive":{ DRIVE_OBJ },
"vehicle":{ VEHICLE_OBJ }
}
@blangel
blangel / FeedbackRequest.json
Created December 14, 2018 15:24
Dash Fleet API - FeedbackRequest Example JSON
{"email":USER_EMAIL,
"subject":SUBJECT,
"message":MESSAGE
}
@blangel
blangel / DiagnosticTroubleCode.json
Created October 10, 2018 13:32
Dash Fleet API - DiagnosticTroubleCode Example JSON
{"id":"P0100",
"title":"02 Sensor Failure",
"description":"02 sensor bank 1 failure",
"estimatedRepairCost":200,
"currencyCode":"USD"
}
@blangel
blangel / DriveDriverUpdate.json
Created October 3, 2018 16:52
Dash Fleet API - DriveDriverUpdate Example JSON
{"drive":{ DRIVE_OBJ },
"driver":{ DRIVER_OBJ }
}
@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 / 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 / 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 / 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 }, ...]
}