Add the source=None to from_notification
Change-Id: I9bf225088e546cd882b41c35dd617b1f64c4f5e5
This commit is contained in:
parent
4bcde55b8f
commit
b3b97eed7a
@ -77,7 +77,7 @@ class Sample(object):
|
||||
@classmethod
|
||||
def from_notification(cls, name, type, volume, unit,
|
||||
user_id, project_id, resource_id,
|
||||
message):
|
||||
message, source=None):
|
||||
metadata = copy.copy(message['payload'])
|
||||
metadata['event_type'] = message['event_type']
|
||||
metadata['host'] = message['publisher_id']
|
||||
@ -89,7 +89,8 @@ class Sample(object):
|
||||
project_id=project_id,
|
||||
resource_id=resource_id,
|
||||
timestamp=message['timestamp'],
|
||||
resource_metadata=metadata)
|
||||
resource_metadata=metadata,
|
||||
source=source)
|
||||
|
||||
TYPE_GAUGE = 'gauge'
|
||||
TYPE_DELTA = 'delta'
|
||||
|
Loading…
x
Reference in New Issue
Block a user