diff options
author | liangxuning <liangxuning@boco.com.cn> | 2018-05-22 14:32:20 +0800 |
---|---|---|
committer | liangxuning <liangxuning@boco.com.cn> | 2018-05-22 14:33:21 +0800 |
commit | 45504c8896de0c01890ae06f990e88ef313d3de6 (patch) | |
tree | 2ba88bca65216456518a61b65da99a041cbda4e7 | |
parent | 6e0b635bf56430550537d0329f8b95e7df4ed7bf (diff) |
pm time
Change-Id: I01b9f6cd08dd75e00830961f48e75a6f343fe590
Issue-ID: VFC-845
Signed-off-by: liangxuning<liangxuning@boco.com.cn>
-rw-r--r-- | ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/northbound/client/NorthMessageMgr.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/northbound/client/NorthMessageMgr.java b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/northbound/client/NorthMessageMgr.java index 614a154..58faf03 100644 --- a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/northbound/client/NorthMessageMgr.java +++ b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/northbound/client/NorthMessageMgr.java @@ -339,7 +339,7 @@ public class NorthMessageMgr extends DriverThread { sm.evel_measurement_custom_measurement_add(reMap.get("ElementType"), key, reMap.get(key)); } - + sm.evel_nfcnamingcode_set(""); sm.evel_nfnamingcode_set(""); sm.evel_header_type_set("applicationVnf"); @@ -352,6 +352,18 @@ public class NorthMessageMgr extends DriverThread { // decide the flow if Dn is null } + String StartTime = reMap.get("StartTime"); + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Date StartTimeD = new Date(); + try { + StartTimeD = format.parse(StartTime); + } catch (ParseException e) { + logger.error("ParseException ", e); + } + //2018-05-21 liangxuning 修改lastEpochMicrosec和startEpochMicrosec精确到微秒 + sm.evel_start_epoch_set(StartTimeD.getTime()*1000); + sm.evel_last_epoch_set(StartTimeD.getTime()*1000); + sm.evel_header_set_sourceid(true, reMap.get("rmUID")); sm.evel_header_set_source_name(reMap.get("rmUID")); |