Final pass through existing statsd endpoints to ensure they match new naming strategy.

Updates accordingly.
This commit is contained in:
Martyn Inglis
2016-08-08 11:23:58 +01:00
parent 0fa614d812
commit fe54fa9f73
7 changed files with 15 additions and 15 deletions

View File

@@ -39,8 +39,6 @@ def process_sms_client_response(status, reference, client_name):
except KeyError:
return success, 'unknown sms client: {}'.format(client_name)
statsd_client.incr('callback.{}.status.{}'.format(client_name.lower(), status))
# validate status
try:
response_dict = response_parser(status)
@@ -71,6 +69,6 @@ def process_sms_client_response(status, reference, client_name):
reference,
notification_status_message))
statsd_client.incr('notifications.callback.{}.{}'.format(client_name.lower(), notification_statistics_status))
statsd_client.incr('callback.{}.{}'.format(client_name.lower(), notification_statistics_status))
success = "{} callback succeeded. reference {} updated".format(client_name, reference)
return success, errors