summaryrefslogtreecommitdiff
path: root/ceilometer/sample.py
diff options
context:
space:
mode:
authorgord chung <gord@live.ca>2017-06-22 17:39:16 +0000
committergordon chung <gord@live.ca>2017-07-28 13:01:05 +0000
commit130a9ed34374b053ab432ed32ae39a9f944f7ec1 (patch)
treec91eacd3ff4d1bfe0af166987a5c156d6f19921a /ceilometer/sample.py
parent22e8481e70bd5268fcddbb1f595ff8078f88f404 (diff)
downloadceilometer-130a9ed34374b053ab432ed32ae39a9f944f7ec1.tar.gz
stop converting to old message format
process notifications as is. this should not impact upgrades as this does not change what is outputed by notification agent in any way, just how it does initial processing. note, this *will* change what is stored in Events if raw field is enabled. that said, the raw field is unqueryable from Panko pov and it actually is storing the raw message now. Change-Id: If79f91687c6c1bc27d906045573674b002534ab1
Diffstat (limited to 'ceilometer/sample.py')
-rw-r--r--ceilometer/sample.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ceilometer/sample.py b/ceilometer/sample.py
index ed780127..92d3eae7 100644
--- a/ceilometer/sample.py
+++ b/ceilometer/sample.py
@@ -125,7 +125,7 @@ class Sample(object):
if isinstance(message['payload'], dict) else {})
metadata['event_type'] = message['event_type']
metadata['host'] = message['publisher_id']
- ts = timestamp if timestamp else message['timestamp']
+ ts = timestamp if timestamp else message['metadata']['timestamp']
return cls(name=name,
type=type,
volume=volume,