diff options
Diffstat (limited to 'etc/eventTransform.json')
-rw-r--r-- | etc/eventTransform.json | 50 |
1 files changed, 41 insertions, 9 deletions
diff --git a/etc/eventTransform.json b/etc/eventTransform.json index 6fcfc9c7..26e059b4 100644 --- a/etc/eventTransform.json +++ b/etc/eventTransform.json @@ -12,7 +12,7 @@ "functionName": "concatenateValue", "args":{ "field":"event.commonEventHeader.eventName", - "concatenate": ["event.commonEventHeader.domain","event.commonEventHeader.eventType","event.faultFields.alarmCondition"], + "concatenate": ["$event.commonEventHeader.domain","$event.commonEventHeader.eventType","$event.faultFields.alarmCondition"], "delimiter":"_" } }, @@ -20,14 +20,16 @@ "functionName": "addAttribute", "args":{ "field": "event.heartbeatFields.heartbeatFieldsVersion", - "value": "1.0" + "value": "1.0", + "fieldType": "number" } }, { "functionName": "addAttribute", "args":{ "field": "event.heartbeatFields.heartbeatInterval", - "value": "0" + "value": "0", + "fieldType": "integer" } }, { @@ -51,7 +53,7 @@ "functionName": "concatenateValue", "args":{ "field":"event.commonEventHeader.eventName", - "concatenate": ["event.commonEventHeader.domain","event.commonEventHeader.eventType","event.faultFields.alarmCondition"], + "concatenate": ["$event.commonEventHeader.domain","$event.commonEventHeader.eventType","$event.faultFields.alarmCondition"], "delimiter":"_" } }, @@ -77,7 +79,7 @@ "functionName": "concatenateValue", "args":{ "field":"event.commonEventHeader.eventName", - "concatenate": ["event.commonEventHeader.domain","event.commonEventHeader.elementType","event.faultFields.alertDescription"], + "concatenate": ["$event.commonEventHeader.domain","$event.commonEventHeader.elementType","$event.faultFields.alertDescription"], "delimiter":"_" } }, @@ -100,11 +102,20 @@ }, "processors": [ + { + "functionName": "concatenateValue", + "args":{ + "field":"event.commonEventHeader.eventName", + "concatenate": ["$event.commonEventHeader.domain","$event.commonEventHeader.eventType","$event.faultFields.alarmCondition"], + "delimiter":"_" + } + }, { "functionName": "addAttribute", "args":{ "field": "event.measurementsForVfScalingFields.measurementsForVfScalingVersion", - "value": "2.0" + "value": "2.0", + "fieldType": "number" } }, { @@ -122,11 +133,18 @@ } }, { + "functionName": "addAttribute", + "args":{ + "field": "event.measurementsForVfScalingFields.cpuUsageArray[0].cpuIdentifier", + "value": "$event.commonEventHeader.sourceName" + } + }, + { "functionName": "map", "args":{ "field": "event.measurementsForVfScalingFields.memoryUsageArray[0].memoryConfigured", "oldField": "event.measurementsForVfScalingFields.memoryConfigured", - "operation": "converMBtoKB" + "operation": "convertMBtoKB" } }, { @@ -141,7 +159,14 @@ "functionName": "addAttribute", "args":{ "field": "event.measurementsForVfScalingFields.memoryUsageArray[0].vmIdentifier", - "value": "0" + "value": "$event.commonEventHeader.sourceName" + } + }, + { + "functionName": "subtractValue", + "args":{ + "field":"event.measurementsForVfScalingFields.memoryUsageArray[0].memoryFree", + "subtract": ["$event.measurementsForVfScalingFields.memoryUsageArray[0].memoryConfigured","$event.measurementsForVfScalingFields.memoryUsageArray[0].memoryUsed"] } }, { @@ -175,8 +200,15 @@ "transmitErrors":"transmittedErrorPacketsAccumulated" } } + }, + { + "functionName": "addAttribute", + "args":{ + "field": "event.measurementsForVfScalingFields.vNicPerformanceArray[0].valuesAreSuspect", + "value": "false" + } } ] } -]
\ No newline at end of file +] |