diff --git a/lbrynet/analytics/constants.py b/lbrynet/analytics/constants.py index dcc7b92b1..280b51a72 100644 --- a/lbrynet/analytics/constants.py +++ b/lbrynet/analytics/constants.py @@ -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' diff --git a/lbrynet/analytics/events.py b/lbrynet/analytics/events.py index 1a72fbaaa..3b2e879be 100644 --- a/lbrynet/analytics/events.py +++ b/lbrynet/analytics/events.py @@ -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 {