diff options
author | Yun Huang <yun.huang@windriver.com> | 2018-07-04 18:31:24 +0800 |
---|---|---|
committer | Yun Huang <yun.huang@windriver.com> | 2018-07-04 18:31:24 +0800 |
commit | b4469bb764dcad3ecedb767fd2e51728c2b854f2 (patch) | |
tree | 0401ad8c7879cfdefbd3a3ceb2c2378e43f14009 /ocata | |
parent | b8859bcb1c1f4ea324ae89151a92226f5ff6292e (diff) |
Fix eventId to conform VES specs for ocata
Change-Id: Ia3fa37736a56fa6a1eb37ee76eb7ba2114fb7b1e
Issue-ID: MULTICLOUD-238
Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'ocata')
-rw-r--r-- | ocata/ocata/vesagent/event_domain/fault_vm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ocata/ocata/vesagent/event_domain/fault_vm.py b/ocata/ocata/vesagent/event_domain/fault_vm.py index e2ad5e97..df1ca60d 100644 --- a/ocata/ocata/vesagent/event_domain/fault_vm.py +++ b/ocata/ocata/vesagent/event_domain/fault_vm.py @@ -248,11 +248,11 @@ def data2event_fault_vm(vimid, oneBacklog, last_event, vm_data): eventType = '' reportingEntityId = vimid reportingEntityName = vimid - sequence = 0 + sequence = 1 #last_event['event']['commonEventHeader']['sequence'] + 1 startEpochMicrosec = last_event['event']['commonEventHeader']['startEpochMicrosec'] lastEpochMicrosec = get_epoch_now_usecond() - eventId = str(uuid.uuid4()) #last_event['event']['commonEventHeader']['eventId'] + eventId = last_event['event']['commonEventHeader']['eventId'] pass |