summaryrefslogtreecommitdiffstats
path: root/etc/eventTransform.json
diff options
context:
space:
mode:
Diffstat (limited to 'etc/eventTransform.json')
-rw-r--r--etc/eventTransform.json182
1 files changed, 182 insertions, 0 deletions
diff --git a/etc/eventTransform.json b/etc/eventTransform.json
new file mode 100644
index 00000000..6fcfc9c7
--- /dev/null
+++ b/etc/eventTransform.json
@@ -0,0 +1,182 @@
+[
+ {
+ "filter":
+ {
+ "event.commonEventHeader.domain":"heartbeat",
+ "VESversion":"v4"
+ },
+
+ "processors":
+ [
+ {
+ "functionName": "concatenateValue",
+ "args":{
+ "field":"event.commonEventHeader.eventName",
+ "concatenate": ["event.commonEventHeader.domain","event.commonEventHeader.eventType","event.faultFields.alarmCondition"],
+ "delimiter":"_"
+ }
+ },
+ {
+ "functionName": "addAttribute",
+ "args":{
+ "field": "event.heartbeatFields.heartbeatFieldsVersion",
+ "value": "1.0"
+ }
+ },
+ {
+ "functionName": "addAttribute",
+ "args":{
+ "field": "event.heartbeatFields.heartbeatInterval",
+ "value": "0"
+ }
+ },
+ {
+ "functionName": "map",
+ "args":{
+ "field": "event.commonEventHeader.nfNamingCode",
+ "oldField": "event.commonEventHeader.functionalRole"
+ }
+ }
+ ]
+ },
+ {
+ "filter":
+ {
+ "event.commonEventHeader.domain":"fault",
+ "VESversion":"v4"
+ },
+ "processors":
+ [
+ {
+ "functionName": "concatenateValue",
+ "args":{
+ "field":"event.commonEventHeader.eventName",
+ "concatenate": ["event.commonEventHeader.domain","event.commonEventHeader.eventType","event.faultFields.alarmCondition"],
+ "delimiter":"_"
+ }
+ },
+ {
+ "functionName": "map",
+ "args":{
+ "field": "event.commonEventHeader.nfNamingCode",
+ "oldField": "event.commonEventHeader.functionalRole"
+ }
+ }
+ ]
+ },
+
+ {
+ "filter":
+ {
+ "event.commonEventHeader.domain":"thresholdCrossingAlert",
+ "VESversion":"v4"
+ },
+ "processors":
+ [
+ {
+ "functionName": "concatenateValue",
+ "args":{
+ "field":"event.commonEventHeader.eventName",
+ "concatenate": ["event.commonEventHeader.domain","event.commonEventHeader.elementType","event.faultFields.alertDescription"],
+ "delimiter":"_"
+ }
+ },
+ {
+ "functionName": "map",
+ "args":{
+ "field": "event.commonEventHeader.nfNamingCode",
+ "oldField": "event.commonEventHeader.functionalRole"
+ }
+ }
+ ]
+ },
+
+ {
+ "filter":
+ {
+ "event.commonEventHeader.domain":"measurementsForVfScaling",
+ "VESversion":"v4",
+ "not": { "event.commonEventHeader.reportingEntityName":"matches:.*ircc|irpr.*"}
+ },
+ "processors":
+ [
+ {
+ "functionName": "addAttribute",
+ "args":{
+ "field": "event.measurementsForVfScalingFields.measurementsForVfScalingVersion",
+ "value": "2.0"
+ }
+ },
+ {
+ "functionName": "map",
+ "args":{
+ "field": "event.measurementsForVfScalingFields.additionalMeasurements[].arrayOfFields[]",
+ "oldField":"event.measurementsForVfScalingFields.additionalMeasurements[].measurements[]"
+ }
+ },
+ {
+ "functionName": "map",
+ "args":{
+ "oldField": "event.measurementsForVfScalingFields.aggregateCpuUsage",
+ "field": "event.measurementsForVfScalingFields.cpuUsageArray[0].percentUsage"
+ }
+ },
+ {
+ "functionName": "map",
+ "args":{
+ "field": "event.measurementsForVfScalingFields.memoryUsageArray[0].memoryConfigured",
+ "oldField": "event.measurementsForVfScalingFields.memoryConfigured",
+ "operation": "converMBtoKB"
+ }
+ },
+ {
+ "functionName": "map",
+ "args":{
+ "field": "event.measurementsForVfScalingFields.memoryUsageArray[0].memoryUsed",
+ "oldField": "event.measurementsForVfScalingFields.memoryUsed",
+ "operation": "convertMBtoKB"
+ }
+ },
+ {
+ "functionName": "addAttribute",
+ "args":{
+ "field": "event.measurementsForVfScalingFields.memoryUsageArray[0].vmIdentifier",
+ "value": "0"
+ }
+ },
+ {
+ "functionName": "map",
+ "args":{
+ "field": "event.measurementsForVfScalingFields.vNicPerformanceArray[]",
+ "oldField": "event.measurementsForVfScalingFields.vNicUsageArray[]",
+ "attrMap": {
+ "broadcastPacketsIn":"receivedBroadcastPacketsAccumulated",
+ "multicastPacketsIn":"receivedMulticastPacketsAccumulated",
+ "bytesIn":"receivedOctetsAccumulated",
+ "packetsIn":"receivedTotalPacketsAccumulated",
+ "unicastPacketsIn":"receivedUnicastPacketsAccumulated",
+ "broadcastPacketsOut":"transmittedBroadcastPacketsAccumulated",
+ "multicastPacketsOut":"transmittedMulticastPacketsAccumulated",
+ "bytesOut":"transmittedOctetsAccumulated",
+ "packetsOut":"transmittedTotalPacketsAccumulated",
+ "unicastPacketsOut":"transmittedUnicastPacketsAccumulated"
+ }
+ }
+ },
+ {
+ "functionName": "map",
+ "args":{
+ "field": "event.measurementsForVfScalingFields.vNicPerformanceArray[]",
+ "oldField": "event.measurementsForVfScalingFields.errors",
+ "attrMap":{
+ "receiveDiscards":"receivedDiscardedPacketsAccumulated",
+ "receiveErrors":"receivedErrorPacketsAccumulated",
+ "transmitDiscards":"transmittedDiscardedPacketsAccumulated",
+ "transmitErrors":"transmittedErrorPacketsAccumulated"
+ }
+ }
+ }
+ ]
+ }
+
+] \ No newline at end of file