balanced / balanced-api

Balanced API specification.
220 stars 72 forks source link

Metrics for dashboard analytics #631

Open kyungmin opened 10 years ago

kyungmin commented 10 years ago

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:

mjallday commented 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

kyungmin commented 10 years ago

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.

mahmoudimus commented 10 years ago

Should we just create a new service for stats?

mjallday commented 10 years ago

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.