add stats boxes to platform admin page

moved a couple of stats summary functions from dashboard to a shared statistics_utils file
This commit is contained in:
Leo Hemsted
2016-05-25 16:51:09 +01:00
parent 6d43067688
commit 83b151982e
7 changed files with 128 additions and 52 deletions

View File

@@ -31,3 +31,9 @@ class StatisticsApiClient(BaseAPIClient):
url='/service/{}/notifications-statistics/seven_day_aggregate'.format(service_id),
params=params
)
def get_statistics_for_all_services_for_day(self, day):
params = {
'day': day
}
return self.get(url='/notifications/statistics', params=params)