mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Report for total notifications sent per day for each channel.
Daily volumes report: total volumes across the platform aggregated by whole business day (bst_date) Volumes by service report: total volumes per service aggregated by the date range given. NB: start and end dates are inclusive
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