feat: Group by filter in reports (#3973)

This commit is contained in:
Aswin Dev P.S 2022-02-15 03:40:49 -08:00 committed by GitHub
parent a703ef2de6
commit e6f8895c1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 343 additions and 35 deletions

View file

@ -6,15 +6,15 @@ class ReportsAPI extends ApiClient {
super('reports', { accountScoped: true, apiVersion: 'v2' });
}
getReports(metric, since, until, type = 'account', id) {
getReports(metric, since, until, type = 'account', id, group_by) {
return axios.get(`${this.url}`, {
params: { metric, since, until, type, id },
params: { metric, since, until, type, id, group_by },
});
}
getSummary(since, until, type = 'account', id) {
getSummary(since, until, type = 'account', id, group_by) {
return axios.get(`${this.url}/summary`, {
params: { since, until, type, id },
params: { since, until, type, id, group_by },
});
}