summaryrefslogtreecommitdiffstats
path: root/etc/eventTransform.json
diff options
context:
space:
mode:
authorVijay <vv770d@att.com>2017-09-20 16:39:25 +0000
committerVijay <vv770d@att.com>2017-09-20 16:40:13 +0000
commit5b3b40ac7bd9281c2b27b409e47ae7204b5928e9 (patch)
tree243642ed2a77ab76efd9409ad12594d8878f246a /etc/eventTransform.json
parentc5630cf8bb4a224579a7e752c4540a35c5ffaf20 (diff)
vescollector junit addon
Issue-ID:DCAEGEN2-82 Change-Id: I109a01ec7d4927e3fbce723355012d80290f2b48 Signed-off-by: Vijay <vv770d@att.com>
Diffstat (limited to 'etc/eventTransform.json')
-rw-r--r--etc/eventTransform.json50
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
+]