diff options
author | PATRACHARI <gp2421@att.com> | 2018-08-23 10:08:30 -0400 |
---|---|---|
committer | PATRACHARI <gp2421@att.com> | 2018-08-23 10:41:23 -0400 |
commit | 4ecf5ae18225d7792c337a42f1b57fbb599beda2 (patch) | |
tree | 0b520d6e96b81acccb8465991e821e6f324eb8f2 /etc | |
parent | d161143571eec74f877e5be6b85e479c44aae881 (diff) |
VES7.x to 5.x transformation
Update transformation code based on Min's requirement. This includes all
Measurement transformations.
Issue-ID: DCAEGEN2-600
Change-Id: I082df846e159a4f158619e700a6dfed6de43cd95
Signed-off-by: PATRACHARI <gp2421@att.com>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/eventTransform.json | 114 |
1 files changed, 112 insertions, 2 deletions
diff --git a/etc/eventTransform.json b/etc/eventTransform.json index cdefda07..838fca02 100644 --- a/etc/eventTransform.json +++ b/etc/eventTransform.json @@ -5,14 +5,29 @@ "event.commonEventHeader.domain":"heartbeat", "VESversion":"v7" }, - "processors": [ + { + "functionName": "addAttribute", + "args":{ + "field": "event.commonEventHeader.version", + "value": "3.0", + "fieldType": "number" + } + }, { "functionName": "addAttribute", "args":{ "field": "event.heartbeatFields.heartbeatFieldsVersion", - "value": "2.0" + "value": "2.0", + "fieldType": "number" + } + }, + { + "functionName": "map", + "args":{ + "field": "event.heartbeatFields.additionalFields", + "mapType": "HashmapToNameValueArray" } } ] @@ -25,6 +40,14 @@ }, "processors": [ + { + "functionName": "addAttribute", + "args":{ + "field": "event.commonEventHeader.version", + "value": "3.0", + "fieldType": "number" + } + }, { "functionName": "addAttribute", "args":{ @@ -32,6 +55,13 @@ "value": "3.0", "fieldType": "number" } + }, + { + "functionName": "map", + "args":{ + "field": "event.faultFields.alarmAdditionalInformation", + "mapType": "HashmapToNameValueArray" + } } ] }, @@ -43,6 +73,14 @@ }, "processors": [ + { + "functionName": "addAttribute", + "args":{ + "field": "event.commonEventHeader.version", + "value": "3.0", + "fieldType": "number" + } + }, { "functionName": "addAttribute", "args":{ @@ -50,6 +88,78 @@ "value": "3.0", "fieldType": "number" } + }, + { + "functionName": "map", + "args":{ + "field": "event.thresholdCrossingFields.additionalFields", + "mapType": "HashmapToNameValueArray" + } + } + ] + }, + { + "filter": + { + "event.commonEventHeader.domain":"measurement", + "VESversion":"v7" + }, + "processors": + [ + { + "functionName": "addAttribute", + "args":{ + "field": "event.commonEventHeader.version", + "value": "3.0", + "fieldType": "number" + } + }, + { + "functionName": "removeAttribute", + "args":{ + "field": "event.measurementFields.measurementFieldsVersion" + } + }, + { + "functionName": "addAttribute", + "args":{ + "field": "event.measurementFields.measurementsForVfScalingVersion", + "value": "3.0", + "fieldType": "number" + } + }, + { + "functionName": "map", + "args":{ + "field": "event.measurementFields.vNicPerformanceArray[]", + "oldField": "event.measurementFields.nicPerformanceArray[]", + "attrMap":{ + "nicIdentifier":"vNicIdentifier" + } + } + }, + { + "functionName": "map", + "args":{ + "field": "event.measurementFields.additionalFields", + "oldField": "event.measurementFields.additionalFields", + "mapType": "hashmapToNameValueArray" + } + }, + { + "functionName": "map", + "args":{ + "field": "event.measurementsForVfScalingFields", + "oldField": "event.measurementFields", + "mapType": "renameObject" + } + }, + { + "functionName": "addAttribute", + "args":{ + "field": "event.commonEventHeader.domain", + "value": "measurementsForVfScaling" + } } ] }, |