Details
Description
We have a requirement to fetch the details of each metrics and methods for creating a graph which represents the usage of each endpoint/feature. We follow the below steps as of now to get the data.
Get all endpoint metric_name for methods and metrics using this endpoint:
https://example-admin.3scale.net/stats/applications/${appId}/summary.json?access_token=${config.threeScaleKey}&version=2.0
Then for loop through each of the methods and get the statistics using the following endpoint:
https://example-admin.3scale.net/stats/applications/${appId}/usage.json?access_token=${config.threeScaleKey}&metric_name=${metric.metric.system_name}&granularity=${searchInfoObj.granularity}&since=${searchInfoObj.since}&until=${searchInfoObj.until}&timezone=${timeZone}&skip_change=true
Same for the metrics. This results in close to 400~ requests just to fetch the statistics of all the metrics and methods.
We would request you to create an endpoint which will return the statistics of all endpoints in a single go so that we don't have to loop through the summary and fetch the statistics.