[DCAEGEN2-SLICEANALYSISMS] Add new robot for CCVPN/IBN closed-loop functionality...
[integration/csit.git] / plans / dcaegen2-services-slice-analysis-ms / testsuites / config / vescollector / etc / eventTransform.json
1 [
2   {
3     "filter": {
4       "event.commonEventHeader.domain": "heartbeat",
5       "VESversion": "v7"
6     },
7     "processors": [
8       {
9         "functionName": "addAttribute",
10         "args": {
11           "field": "event.commonEventHeader.version",
12           "value": "3.0",
13           "fieldType": "number"
14         }
15       },
16       {
17         "functionName": "addAttribute",
18         "args": {
19           "field": "event.heartbeatFields.heartbeatFieldsVersion",
20           "value": "2.0",
21           "fieldType": "number"
22         }
23       },
24       {
25         "functionName": "map",
26         "args": {
27           "field": "event.heartbeatFields.additionalFields",
28           "mapType": "HashmapToNameValueArray"
29         }
30       }
31     ]
32   },
33   {
34     "filter": {
35       "event.commonEventHeader.domain": "fault",
36       "VESversion": "v7"
37     },
38     "processors": [
39       {
40         "functionName": "addAttribute",
41         "args": {
42           "field": "event.commonEventHeader.version",
43           "value": "3.0",
44           "fieldType": "number"
45         }
46       },
47       {
48         "functionName": "addAttribute",
49         "args": {
50           "field": "event.faultFields.faultFieldsVersion",
51           "value": "3.0",
52           "fieldType": "number"
53         }
54       },
55       {
56         "functionName": "map",
57         "args": {
58           "field": "event.faultFields.alarmAdditionalInformation",
59           "mapType": "HashmapToNameValueArray"
60         }
61       }
62     ]
63   },
64   {
65     "filter": {
66       "event.commonEventHeader.domain": "thresholdCrossingAlert",
67       "VESversion": "v7"
68     },
69     "processors": [
70       {
71         "functionName": "addAttribute",
72         "args": {
73           "field": "event.commonEventHeader.version",
74           "value": "3.0",
75           "fieldType": "number"
76         }
77       },
78       {
79         "functionName": "addAttribute",
80         "args": {
81           "field": "event.thresholdCrossingFields.thresholdCrossingFieldsVersion",
82           "value": "3.0",
83           "fieldType": "number"
84         }
85       },
86       {
87         "functionName": "map",
88         "args": {
89           "field": "event.thresholdCrossingFields.additionalFields",
90           "mapType": "HashmapToNameValueArray"
91         }
92       }
93     ]
94   },
95   {
96     "filter": {
97       "event.commonEventHeader.domain": "measurement",
98       "VESversion": "v7"
99     },
100     "processors": [
101       {
102         "functionName": "addAttribute",
103         "args": {
104           "field": "event.commonEventHeader.version",
105           "value": "3.0",
106           "fieldType": "number"
107         }
108       },
109       {
110         "functionName": "removeAttribute",
111         "args": {
112           "field": "event.measurementFields.measurementFieldsVersion"
113         }
114       },
115       {
116         "functionName": "addAttribute",
117         "args": {
118           "field": "event.measurementFields.measurementsForVfScalingVersion",
119           "value": "3.0",
120           "fieldType": "number"
121         }
122       },
123       {
124         "functionName": "map",
125         "args": {
126           "field": "event.measurementFields.vNicPerformanceArray[]",
127           "oldField": "event.measurementFields.nicPerformanceArray[]",
128           "attrMap": {
129             "nicIdentifier": "vNicIdentifier"
130           }
131         }
132       },
133       {
134         "functionName": "map",
135         "args": {
136           "field": "event.measurementFields.additionalFields",
137           "oldField": "event.measurementFields.additionalFields",
138           "mapType": "hashmapToNameValueArray"
139         }
140       },
141       {
142         "functionName": "map",
143         "args": {
144           "field": "event.measurementsForVfScalingFields",
145           "oldField": "event.measurementFields",
146           "mapType": "renameObject"
147         }
148       },
149       {
150         "functionName": "addAttribute",
151         "args": {
152           "field": "event.commonEventHeader.domain",
153           "value": "measurementsForVfScaling"
154         }
155       }
156     ]
157   },
158   {
159     "filter": {
160       "event.commonEventHeader.domain": "heartbeat",
161       "VESversion": "v4"
162     },
163     "processors": [
164       {
165         "functionName": "concatenateValue",
166         "args": {
167           "field": "event.commonEventHeader.eventName",
168           "concatenate": [
169             "$event.commonEventHeader.domain",
170             "$event.commonEventHeader.eventType",
171             "$event.faultFields.alarmCondition"
172           ],
173           "delimiter": "_"
174         }
175       },
176       {
177         "functionName": "addAttribute",
178         "args": {
179           "field": "event.heartbeatFields.heartbeatFieldsVersion",
180           "value": "1.0",
181           "fieldType": "number"
182         }
183       },
184       {
185         "functionName": "addAttribute",
186         "args": {
187           "field": "event.heartbeatFields.heartbeatInterval",
188           "value": "0",
189           "fieldType": "integer"
190         }
191       },
192       {
193         "functionName": "map",
194         "args": {
195           "field": "event.commonEventHeader.nfNamingCode",
196           "oldField": "event.commonEventHeader.functionalRole"
197         }
198       }
199     ]
200   },
201   {
202     "filter": {
203       "event.commonEventHeader.domain": "fault",
204       "VESversion": "v4"
205     },
206     "processors": [
207       {
208         "functionName": "concatenateValue",
209         "args": {
210           "field": "event.commonEventHeader.eventName",
211           "concatenate": [
212             "$event.commonEventHeader.domain",
213             "$event.commonEventHeader.eventType",
214             "$event.faultFields.alarmCondition"
215           ],
216           "delimiter": "_"
217         }
218       },
219       {
220         "functionName": "addAttribute",
221         "args": {
222           "field": "event.faultFields.faultFieldsVersion",
223           "value": "2.0",
224           "fieldType": "number"
225         }
226       },
227       {
228         "functionName": "addAttribute",
229         "args": {
230           "field": "event.commonEventHeader.version",
231           "value": "3.0",
232           "fieldType": "number"
233         }
234       },
235       {
236         "functionName": "map",
237         "args": {
238           "field": "event.commonEventHeader.nfNamingCode",
239           "oldField": "event.commonEventHeader.functionalRole"
240         }
241       }
242     ]
243   },
244   {
245     "filter": {
246       "event.commonEventHeader.domain": "thresholdCrossingAlert",
247       "VESversion": "v4"
248     },
249     "processors": [
250       {
251         "functionName": "concatenateValue",
252         "args": {
253           "field": "event.commonEventHeader.eventName",
254           "concatenate": [
255             "$event.commonEventHeader.domain",
256             "$event.commonEventHeader.elementType",
257             "$event.faultFields.alertDescription"
258           ],
259           "delimiter": "_"
260         }
261       },
262       {
263         "functionName": "map",
264         "args": {
265           "field": "event.commonEventHeader.nfNamingCode",
266           "oldField": "event.commonEventHeader.functionalRole"
267         }
268       }
269     ]
270   },
271   {
272     "filter": {
273       "event.commonEventHeader.domain": "measurementsForVfScaling",
274       "VESversion": "v4",
275       "not": {
276         "event.commonEventHeader.reportingEntityName": "matches:.*ircc|irpr.*"
277       }
278     },
279     "processors": [
280       {
281         "functionName": "concatenateValue",
282         "args": {
283           "field": "event.commonEventHeader.eventName",
284           "concatenate": [
285             "$event.commonEventHeader.domain",
286             "$event.commonEventHeader.eventType",
287             "$event.faultFields.alarmCondition"
288           ],
289           "delimiter": "_"
290         }
291       },
292       {
293         "functionName": "addAttribute",
294         "args": {
295           "field": "event.measurementsForVfScalingFields.measurementsForVfScalingVersion",
296           "value": "2.0",
297           "fieldType": "number"
298         }
299       },
300       {
301         "functionName": "map",
302         "args": {
303           "field": "event.measurementsForVfScalingFields.additionalMeasurements[].arrayOfFields[]",
304           "oldField": "event.measurementsForVfScalingFields.additionalMeasurements[].measurements[]"
305         }
306       },
307       {
308         "functionName": "map",
309         "args": {
310           "oldField": "event.measurementsForVfScalingFields.aggregateCpuUsage",
311           "field": "event.measurementsForVfScalingFields.cpuUsageArray[0].percentUsage"
312         }
313       },
314       {
315         "functionName": "addAttribute",
316         "args": {
317           "field": "event.measurementsForVfScalingFields.cpuUsageArray[0].cpuIdentifier",
318           "value": "$event.commonEventHeader.sourceName"
319         }
320       },
321       {
322         "functionName": "map",
323         "args": {
324           "field": "event.measurementsForVfScalingFields.memoryUsageArray[0].memoryConfigured",
325           "oldField": "event.measurementsForVfScalingFields.memoryConfigured",
326           "operation": "convertMBtoKB"
327         }
328       },
329       {
330         "functionName": "map",
331         "args": {
332           "field": "event.measurementsForVfScalingFields.memoryUsageArray[0].memoryUsed",
333           "oldField": "event.measurementsForVfScalingFields.memoryUsed",
334           "operation": "convertMBtoKB"
335         }
336       },
337       {
338         "functionName": "addAttribute",
339         "args": {
340           "field": "event.measurementsForVfScalingFields.memoryUsageArray[0].vmIdentifier",
341           "value": "$event.commonEventHeader.sourceName"
342         }
343       },
344       {
345         "functionName": "subtractValue",
346         "args": {
347           "field": "event.measurementsForVfScalingFields.memoryUsageArray[0].memoryFree",
348           "subtract": [
349             "$event.measurementsForVfScalingFields.memoryUsageArray[0].memoryConfigured",
350             "$event.measurementsForVfScalingFields.memoryUsageArray[0].memoryUsed"
351           ]
352         }
353       },
354       {
355         "functionName": "map",
356         "args": {
357           "field": "event.measurementsForVfScalingFields.vNicPerformanceArray[]",
358           "oldField": "event.measurementsForVfScalingFields.vNicUsageArray[]",
359           "attrMap": {
360             "broadcastPacketsIn": "receivedBroadcastPacketsAccumulated",
361             "multicastPacketsIn": "receivedMulticastPacketsAccumulated",
362             "bytesIn": "receivedOctetsAccumulated",
363             "packetsIn": "receivedTotalPacketsAccumulated",
364             "unicastPacketsIn": "receivedUnicastPacketsAccumulated",
365             "broadcastPacketsOut": "transmittedBroadcastPacketsAccumulated",
366             "multicastPacketsOut": "transmittedMulticastPacketsAccumulated",
367             "bytesOut": "transmittedOctetsAccumulated",
368             "packetsOut": "transmittedTotalPacketsAccumulated",
369             "unicastPacketsOut": "transmittedUnicastPacketsAccumulated"
370           }
371         }
372       },
373       {
374         "functionName": "map",
375         "args": {
376           "field": "event.measurementsForVfScalingFields.vNicPerformanceArray[]",
377           "oldField": "event.measurementsForVfScalingFields.errors",
378           "attrMap": {
379             "receiveDiscards": "receivedDiscardedPacketsAccumulated",
380             "receiveErrors": "receivedErrorPacketsAccumulated",
381             "transmitDiscards": "transmittedDiscardedPacketsAccumulated",
382             "transmitErrors": "transmittedErrorPacketsAccumulated"
383           }
384         }
385       },
386       {
387         "functionName": "addAttribute",
388         "args": {
389           "field": "event.measurementsForVfScalingFields.vNicPerformanceArray[0].valuesAreSuspect",
390           "value": "false"
391         }
392       }
393     ]
394   }
395 ]
396