mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Merge pull request #4183 from alphagov/volume_reports
Report for total notifications sent per day for each channel.
This commit is contained in:
@@ -41,5 +41,19 @@ class BillingAPIClient(NotifyAdminAPIClient):
|
||||
'end_date': str(end_date),
|
||||
})
|
||||
|
||||
def get_data_for_volumes_by_service_report(self, start_date, end_date):
|
||||
return self.get(url='/platform-stats/volumes-by-service',
|
||||
params={
|
||||
'start_date': str(start_date),
|
||||
'end_date': str(end_date),
|
||||
})
|
||||
|
||||
def get_data_for_daily_volumes_report(self, start_date, end_date):
|
||||
return self.get(url='/platform-stats/daily-volumes-report',
|
||||
params={
|
||||
'start_date': str(start_date),
|
||||
'end_date': str(end_date),
|
||||
})
|
||||
|
||||
|
||||
billing_api_client = BillingAPIClient()
|
||||
|
||||
Reference in New Issue
Block a user