New report on platform-admin/reports page to get the usage for all services.

This commit is contained in:
Rebecca Law
2019-08-23 17:14:04 +01:00
parent 983a1dc931
commit 2fe5c4a96e
6 changed files with 112 additions and 0 deletions

View File

@@ -34,5 +34,12 @@ class BillingAPIClient(NotifyAdminAPIClient):
data=data
)
def get_usage_for_all_services(self, start_date, end_date):
return self.get(url='/platform-stats/usage-for-all-services',
params={
'start_date': str(start_date),
'end_date': str(end_date),
})
billing_api_client = BillingAPIClient()