aboutsummaryrefslogtreecommitdiffstats
path: root/etc/eventTransform.json
diff options
context:
space:
mode:
Diffstat (limited to 'etc/eventTransform.json')
-rw-r--r--etc/eventTransform.json114
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"
+ }
}
]
},