Skip to content

Instantly share code, notes, and snippets.

@blangel
Last active November 27, 2018 14:10
Show Gist options
  • Select an option

  • Save blangel/54d8110eaadd33be6b17b45615464893 to your computer and use it in GitHub Desktop.

Select an option

Save blangel/54d8110eaadd33be6b17b45615464893 to your computer and use it in GitHub Desktop.
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,
"totalSpeedingTimeByDay":[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],
"totalDrives":10,
"totalDistance":200,
"totalDistanceByDay":[0,0,0,30,0,0,0,0,0,0,0,0,0,30,0,0,0,0,0,0,0,0,0,160,0,0,0,0,0,0],
"distanceUnit":"Miles",
"totalFuelConsumed":100,
"totalFuelConsumedByDay":[0,0,0,30,0,0,0,0,0,0,0,0,0,30,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0],
"fuelConsumedUnit":"USGallons",
"estimatedFuelCost":300,
"currencyCode":"USD",
"averageFuelEconomy":20,
"averageFuelEconomyByDay":[0,0,0,30,0,0,0,0,0,0,0,0,0,30,0,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0],
"fuelEfficiencyUnit":"MilesPerUSGallon",
"averageSpeed":15,
"speedUnit":"MilesPerHour"
}
@blangel
Copy link
Author

blangel commented Nov 27, 2018

mockData: True to indicate that the data is mock data (not real data associated with the user account). If false or null the data is real data associated with the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment