New endpoints to return job stats.

Next step is to use the new endpoints in admin.
This commit is contained in:
Rebecca Law
2017-06-13 10:56:03 +01:00
parent cc04b5eb1d
commit 4fefec6aa3
4 changed files with 77 additions and 9 deletions

View File

@@ -159,6 +159,9 @@ def dao_get_job_statistics_for_job(service_id, job_id):
Job.scheduled_for,
Job.template_id,
Job.template_version,
Job.job_status,
Job.service_id,
Job.notification_count,
JobStatistics.sent,
JobStatistics.delivered,
JobStatistics.failed
@@ -179,6 +182,11 @@ def dao_get_job_stats_for_service(service_id, page=1, page_size=50, limit_days=N
Job.original_file_name,
Job.created_at,
Job.scheduled_for,
Job.template_id,
Job.template_version,
Job.job_status,
Job.service_id,
Job.notification_count,
JobStatistics.sent,
JobStatistics.delivered,
JobStatistics.failed