Open kyungmin opened 10 years ago
sounds like you want the ability to roll up on any arbitrary attribute on any resource for a given time period by count and amount. if we implemented something like that you could do the rest of the calculations in the browser without having to ask for these specific metrics
Yes, percentages can be calculated in the browser. Along with rollups of count and amount, we need an array of data points per time (min? hour? day?) to be able to plot line graphs.
Should we just create a new service for stats?
that sounds reasonable since it's not oltp.
figuring out a decent api for requesting information from the service is the harder thing here however.
As per suggested mocks, we need the following metrics to be returned from the API for a given time period:
Transactions
Card brands
Card types
Card failures
Disputes
Questions for @balanced/engineers: