mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Increase warning threshold for SMS failures
Second attempt [1]. This increases the threshold so: - It's a more substantial amount of money lost (£16). - It's 10% of the minimum free allowance for a service. - It's greater than the threshold we have for TV numbers (500). Having a higher threshold for this alert will help prevent wasted effort investigating more negligible failures, and reduces the ambiguity of whether we should take action: we should. [1]: https://github.com/alphagov/notifications-api/pull/3221
This commit is contained in:
@@ -563,7 +563,7 @@ def dao_find_services_sending_to_tv_numbers(start_date, end_date, threshold=500)
|
||||
).all()
|
||||
|
||||
|
||||
def dao_find_services_with_high_failure_rates(start_date, end_date, threshold=100):
|
||||
def dao_find_services_with_high_failure_rates(start_date, end_date, threshold=1000):
|
||||
subquery = db.session.query(
|
||||
func.count(Notification.id).label('total_count'),
|
||||
Notification.service_id.label('service_id')
|
||||
|
||||
Reference in New Issue
Block a user