forked from LBRYCommunity/lbry-sdk
rename events to be seperate for each metric
This commit is contained in:
parent
7167d47631
commit
fbf7928412
2 changed files with 4 additions and 5 deletions
|
@ -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'
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue