rename events to be seperate for each metric

This commit is contained in:
Job Evers-Meltzer 2016-10-11 15:11:59 -05:00
parent 7167d47631
commit fbf7928412
2 changed files with 4 additions and 5 deletions

View file

@ -1,4 +1,4 @@
"""Constants for metrics"""
BLOB_BYTES_UPLOADED = 'blob_bytes_uploaded'
BLOB_BYTES_AVAILABLE = 'blob_bytes_available'
BLOB_BYTES_UPLOADED = 'Blob Bytes Uploaded'
BLOB_BYTES_AVAILABLE = 'Blob Bytes Available'

View file

@ -34,10 +34,9 @@ class Events(object):
def metric_observed(self, metric_name, value):
properties = {
'metric_name': metric_name,
'metric_value': value,
'value': value,
}
return self._event('Metric Observed', properties)
return self._event(metric_name, properties)
def _event(self, event, event_properties=None):
return {