Remove everything for the performance platform

We no longer will send them any stats so therefore don't need the code
- the code to work out the nightly stats
- the performance platform client
- any configuration for the client
- any nightly tasks that kick off the sending off the stats

We will require a change in cronitor as we no longer will have this task
run meaning we need to delete the cronitor check.
This commit is contained in:
David McDonald
2021-03-15 12:04:53 +00:00
parent 8325431462
commit 41d95378ea
16 changed files with 9 additions and 570 deletions
+4 -1
View File
@@ -684,8 +684,11 @@ def dao_get_notifications_by_references(references):
).all()
def dao_get_total_notifications_sent_per_day_for_performance_platform(start_date, end_date):
def dao_get_notifications_processing_time_stats(start_date, end_date):
"""
For a given time range, returns the number of notifications sent and the number of
those notifications that we processed within 10 seconds
SELECT
count(notifications),
coalesce(sum(CASE WHEN sent_at - created_at <= interval '10 seconds' THEN 1 ELSE 0 END), 0)