3 "id": "51e83a0892da060e",
5 "label": "VES-Messages",
7 "info": "Sends a VES message with body defined by 3GPP TS 28.532.\n",
11 "id": "7b2f4859e5963695",
21 "verifyservercert": false,
25 "id": "91a1f8d3ce84ceda",
27 "z": "51e83a0892da060e",
28 "name": "notifyFileReady",
42 "topic": "notifyFileReady",
44 "payloadType": "date",
55 "id": "b5533c10604af5a6",
57 "z": "51e83a0892da060e",
59 "func": "const timeStamp = new Date(msg.payload);\nconst eventType = msg.topic;\nlet domain = \"stndDefined\";\n// handle domain expecption for 'pnfRegistration'\nif (eventType === 'pnfRegistration') {\n domain = eventType;\n} \nconst nfNamingCode = env.get('APP_NETWORK_FUNCTION_ID');\nconst namespaces = {\n notifyHeartbeat: '3GPP-Heartbeat',\n notifyFileReady: 'file-ready',\n pnfRegistration: undefined\n};\n\nmsg.topic = \"commonEventHeader\"\nmsg.payload = {\n domain: domain,\n eventType: eventType,\n eventId:[nfNamingCode, eventType, msg._msgid].join('_'),\n eventName: [domain, eventType].join('_'),\n sequence: Number(timeStamp),\n priority: \"Low\",\n reportingEntityId: \"c2b7d6e9-ee35-459a-ab8e-717a6fc1fde6\",\n reportingEntityName: global.get('os').hostname(),\n sourceId: \"378e9904-6d39-40ea-9994-0596fe2235a3\",\n sourceName: env.get('APP_SOURCE'),\n startEpochMicrosec: timeStamp.getTime() * 1000,\n lastEpochMicrosec: timeStamp.getTime() * 1000,\n nfNamingCode: nfNamingCode,\n nfVendorName: env.get('APP_VENDOR'),\n timeZoneOffset: \"+00:00\",\n stndDefinedNamespace: namespaces[eventType],\n version: \"4.1\",\n vesEventListenerVersion: \"7.2.1\"\n}\nreturn msg;",
74 "id": "f8e64d1cb25eb4ab",
76 "z": "51e83a0892da060e",
77 "name": "vesStndDefindBody",
78 "func": "const timeStamp = new Date(msg.payload);\nconst startTime = new Date(Math.floor(Number(timeStamp) / 900000) * 900000);\nconst endTime = new Date(Number(startTime) + 900000);\nconst paddy = (num, padlen, padchar) => {\n const pad_char = typeof padchar !== 'undefined' ? padchar : '0';\n const pad = new Array(1 + padlen).join(pad_char);\n return (pad + num).slice(-pad.length);\n}\nconst fileStartTime = [\n paddy(startTime.getFullYear(), 4),\n paddy(startTime.getMonth() + 1, 2),\n paddy(startTime.getDate(), 2),\n '.',\n paddy(startTime.getHours(), 2),\n paddy(startTime.getMinutes(), 2),\n '+0000'\n].join('');\nconst fileEndTime = [\n paddy(endTime.getHours(), 2),\n paddy(endTime.getMinutes(), 2),\n '+0000'\n].join('');\nconst fileLocation = ['/pm-data-files/A', fileStartTime, '-', fileEndTime, '_', env.get('APP_NETWORK_FUNCTION_ID'), '.xml'].join('');\nmsg.payload = {\n schemaReference: 'https://forge.3gpp.org/rep/sa5/MnS/-/raw/Rel-16/OpenAPI/TS28532_FileDataReportingMnS.yaml#components/schemas/NotifyFileReady',\n stndDefinedFieldsVersion: '1.0',\n data: {\n href: global.get('os').hostname(),\n notificationId: Number(startTime),\n notificationType: msg.topic,\n eventTime: timeStamp.toISOString(),\n systemDN: '/',\n fileInfoList: [\n {\n fileLocation: fileLocation,\n fileSize: 1234,\n fileReadyTime: startTime.toISOString(),\n fileExpirationTime: endTime.toISOString(),\n fileCompression: 'no',\n fileFormat: 'xml',\n fileDataType: 'Performance'\n }\n ],\n additionalText: 'Have fun!'\n }\n};\nmsg.topic = 'stndDefinedFields';\nreturn msg;",
93 "id": "f65b1c13e0243ef6",
95 "z": "51e83a0892da060e",
99 "property": "payload",
100 "propertyType": "msg",
107 "reduceRight": false,
110 "reduceInitType": "",
121 "id": "1d6949a57bce82ab",
123 "z": "51e83a0892da060e",
124 "name": "createVesEvent",
125 "func": "msg.payload = {\n event: msg.payload\n};\nreturn msg;",
141 "id": "27e1d8d1e9b8fd93",
142 "type": "http request",
143 "z": "51e83a0892da060e",
148 "url": "https://ves-collector.oam.smo.o-ran-sc.org/eventListener/v7",
149 "tls": "7b2f4859e5963695",
152 "insecureHTTPParser": false,
165 "id": "f3412bcb9e134063",
167 "z": "51e83a0892da060e",
168 "name": "VesCollectorResponse",
173 "complete": "payload",
176 "statusType": "auto",
182 "id": "b5e1e7a83051b5b6",
184 "z": "51e83a0892da060e",
185 "name": "pnfRegistration",
199 "topic": "pnfRegistration",
201 "payloadType": "date",
212 "id": "bd43459cf3907a5a",
214 "z": "51e83a0892da060e",
216 "func": "msg.topic = 'pnfRegistrationFields';\nmsg.payload = {\n pnfRegistrationFieldsVersion: '2.1',\n lastServiceDate: '2023-02-05',\n macAddress: '02:42:f7:d4:62:ce',\n manufactureDate: '2021-01-16',\n modelNumber: 'O-RAN-SC Model',\n oamV4IpAddress: '10.10.10.11',\n oamV6IpAddress: '0:0:0:0:0:ffff:a0a:011',\n serialNumber: 'VENDORA-PNF2-10.10.10.11-pnf2 BestInClass',\n softwareVersion: '2.3.5',\n unitFamily: \"O-RAN-SC\",\n unitType: 'PNF2',\n vendorName: env.get('APP_VENDOR'),\n additionalFields: {\n oamPort: '830',\n protocol: 'SSH',\n username: 'netconf',\n password: 'netconf!',\n reconnectOnChangedSchema: 'false',\n 'sleep-factor': '1.5',\n tcpOnly: 'false',\n connectionTimeout: '20000',\n maxConnectionAttempts: '100',\n betweenAttemptsTimeout: '2000',\n keepaliveDelay: '120'\n}\n};\nreturn msg;",
231 "id": "9ab2b4d9caf52c14",
233 "z": "51e83a0892da060e",
234 "name": "ves-message-data",
239 "complete": "payload",
242 "statusType": "auto",
248 "id": "7d589030272c0a94",
250 "z": "51e83a0892da060e",
251 "name": "notifyHeartbeat",
265 "topic": "notifyHeartbeat",
267 "payloadType": "date",
278 "id": "ab3bc53f12d28d8f",
280 "z": "51e83a0892da060e",
281 "name": "vesStndDefindBody",
282 "func": "const timeStamp = new Date(msg.payload);\nmsg.payload = {\n schemaReference: 'https://forge.3gpp.org/rep/sa5/MnS/-/raw/Rel-16/OpenAPI/TS28532_HeartbeatNtf.yaml#components/schemas/NotifyHeartbeat',\n stndDefinedFieldsVersion: '1.0',\n data: {\n href: global.get('os').hostname(),\n notificationId: Number(timeStamp),\n notificationType: msg.topic,\n eventTime: timeStamp.toISOString(),\n systemDN: \"/\",\n heartbeatNtfPeriod: 120\n }\n};\nmsg.topic = \"stndDefinedFields\";\nreturn msg;",