3 "onap.datatype.controlloop.Target": {
6 "name": "onap.datatype.controlloop.Target"
8 "derived_from": "tosca.datatypes.Root",
18 "VNF","VM","VFMODULE","PNF"],
19 "greater_or_equal": null,
26 "description": "Category for the target type",
27 "type_version": "0.0.0",
37 "clamp_possible_values": "ClampExecution:CSAR_RESOURCES"
42 "type_version": "0.0.0",
47 "description": "Map of values that identify the resource. If none are provided, it is assumed that the
48 entity that generated the ONSET event will be the target.
50 "type_version": "0.0.0",
59 "description": "Definition for a entity in A&AI to perform a control loop operation on",
62 "defined_name": "onap.datatype.controlloop.Target",
63 "defined_version": null,
65 "name": "onap.datatype.controlloop.Target"
67 "onap.datatypes.ToscaConceptIdentifier": {
70 "name": "onap.datatypes.ToscaConceptIdentifier"
72 "derived_from": "tosca.datatypes.Root",
81 "type_version": "0.0.0",
94 "type_version": "0.0.0",
105 "type_version": null,
106 "defined_name": "onap.datatypes.ToscaConceptIdentifier",
107 "defined_version": null,
109 "name": "onap.datatypes.ToscaConceptIdentifier"
111 "onap.datatype.controlloop.Operation": {
114 "name": "onap.datatype.controlloop.Operation"
116 "derived_from": "tosca.datatypes.Root",
122 "entry_schema": null,
124 "description": "Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.",
125 "type_version": "0.0.0",
128 "name": "failure_guard",
129 "default_value": "final_failure_guard"
135 "entry_schema": null,
137 "description": "The number of retries the actor should attempt to perform the operation.",
138 "type_version": "0.0.0",
148 "entry_schema": null,
150 "description": "Points to the operation to invoke on success. A value of \"final_success\" indicates and end to the operation.",
151 "type_version": "0.0.0",
155 "default_value": "final_success"
161 "entry_schema": null,
163 "description": "A user-friendly description of the intent for the operation",
164 "type_version": "0.0.0",
167 "name": "description",
168 "default_value": null
174 "entry_schema": null,
176 "description": "Points to the operation to invoke when the current operation has exceeded its max retries.",
177 "type_version": "0.0.0",
180 "name": "failure_retries",
181 "default_value": "final_failure_retries"
187 "entry_schema": null,
189 "description": "The amount of time for the actor to perform the operation.",
190 "type_version": "0.0.0",
194 "default_value": null
200 "entry_schema": null,
202 "description": "Points to the operation to invoke on Actor operation failure.",
203 "type_version": "0.0.0",
207 "default_value": "final_failure"
213 "entry_schema": null,
215 "description": "Unique identifier for the operation",
216 "type_version": "0.0.0",
220 "default_value": null
226 "entry_schema": null,
228 "description": "Points to the operation to invoke when the time out for the operation occurs.",
229 "type_version": "0.0.0",
232 "name": "failure_timeout",
233 "default_value": "final_failure_timeout"
235 "failure_exception": {
239 "entry_schema": null,
241 "description": "Points to the operation to invoke when the current operation causes an exception.",
242 "type_version": "0.0.0",
245 "name": "failure_exception",
246 "default_value": "final_failure_exception"
252 "entry_schema": null,
254 "description": "The definition of the operation to be performed.",
255 "type_version": "0.0.0",
257 "type": "onap.datatype.controlloop.Actor",
259 "default_value": null
264 "description": "An operation supported by an actor",
266 "type_version": null,
267 "defined_name": "onap.datatype.controlloop.Operation",
268 "defined_version": null,
270 "name": "onap.datatype.controlloop.Operation"
272 "onap.datatype.controlloop.Actor": {
275 "name": "onap.datatype.controlloop.Actor"
277 "derived_from": "tosca.datatypes.Root",
283 "clamp_possible_values": "ClampExecution:CDS/payload"
288 "type_version": "0.0.0",
293 "description": "Name/value pairs of payload information passed by Policy to the actor",
294 "type_version": "0.0.0",
298 "default_value": null
304 "entry_schema": null,
306 "description": "The resource the operation should be performed on.",
307 "type_version": "0.0.0",
309 "type": "onap.datatype.controlloop.Target",
311 "default_value": null
317 "clamp_possible_values": "Dictionary:DefaultOperations,ClampExecution:CDS/operation"
319 "entry_schema": null,
321 "description": "The operation the actor is performing.",
322 "type_version": "0.0.0",
326 "default_value": null
332 "clamp_possible_values": "Dictionary:DefaultActors,ClampExecution:CDS/actor"
334 "entry_schema": null,
336 "description": "The actor performing the operation.",
337 "type_version": "0.0.0",
341 "default_value": null
346 "description": "An actor/operation/target definition",
348 "type_version": null,
349 "defined_name": "onap.datatype.controlloop.Actor",
350 "defined_version": null,
352 "name": "onap.datatype.controlloop.Actor"
355 "topology_template": {
357 "ToscaEntityKey(name=operational.apex.linkmonitor, version=1.0.0)": {
360 "name": "onap.policies.controlloop.operational.common.Apex"
364 "name": "operational.apex.linkmonitor"
366 "derived_from": null,
369 "name": "operational.apex.linkmonitor"
372 "eventInputParameters": {
374 "carrierTechnologyParameters": {
376 "url": "http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT/{{dmaapGroup}}/{{dmaapUser}}?timeout=15000&limit=100"
378 "carrierTechnology": "RESTCLIENT",
379 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
381 "eventName": "LinkFailureInputEvent",
382 "eventProtocolParameters": {
384 "versionAlias": "version",
385 "pojoField": "LinkFailureInput"
387 "eventProtocol": "JSON"
391 "eventOutputParameters": {
393 "eventNameFilter": "LinkFailureOutputEvent",
394 "carrierTechnologyParameters": {
396 "url": "http://sdnc-oam:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node={OduId}/yang-ext:mount/o-ran-sc-du-hello-world:network-function/distributed-unit-functions={OduId}/radio-resource-management-policy-ratio=rrm-pol-2",
400 "Authorization","Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="]]
402 "carrierTechnology": "RESTCLIENT",
403 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
405 "eventProtocolParameters": {
407 "pojoField": "LinkFailureOutput"
409 "eventProtocol": "JSON"
413 "eventNameFilter": "ApexMessageOutputEvent",
414 "carrierTechnologyParameters": {
418 "carrierTechnology": "FILE"
420 "eventProtocolParameters": {
422 "pojoField": "message"
424 "eventProtocol": "JSON"
428 "engineServiceParameters": {
429 "policy_type_impl": {
433 "name": "LinkMonitorModel"
438 "name": "LinkMonitorModel_Policies"
445 "name": "LinkMonitorPolicy"
448 "template": "Freestyle",
451 "name": "LinkMonitorPolicy"
456 "key": "LinkClearedState",
460 "name": "LinkClearedTask"
465 "key": "LinkClearedLogic_Output_Direct",
468 "parentKeyName": "LinkMonitorPolicy",
469 "parentKeyVersion": "0.0.1",
470 "parentLocalName": "LinkClearedState",
471 "localName": "LinkClearedLogic_Output_Direct"
475 "name": "ApexMessageOutputEvent"
478 "parentKeyName": "NULL",
479 "parentKeyVersion": "0.0.0",
480 "parentLocalName": "NULL",
491 "name": "LinkClearedTask"
495 "parentKeyName": "LinkMonitorPolicy",
496 "parentKeyVersion": "0.0.1",
497 "parentLocalName": "LinkClearedState",
498 "localName": "LinkClearedTask"
501 "parentKeyName": "LinkMonitorPolicy",
502 "parentKeyVersion": "0.0.1",
503 "parentLocalName": "LinkClearedState",
504 "localName": "LinkClearedLogic_Output_Direct"
506 "outputType": "DIRECT"
511 "parentKeyName": "LinkMonitorPolicy",
512 "parentKeyVersion": "0.0.1",
513 "parentLocalName": "NULL",
514 "localName": "LinkClearedState"
516 "contextAlbumReference": [],
517 "stateFinalizerLogicMap": {
520 "taskSelectionLogic": {
523 "logicFlavour": "UNDEFINED"
527 "name": "CreateLinkClearedOutfieldsEvent"
531 "key": "LinkFailureOrClearedState",
535 "name": "NoPolicyDefinedTask"
540 "key": "CreateLinkClearedOutfieldsLogic_Output_Direct",
543 "parentKeyName": "LinkMonitorPolicy",
544 "parentKeyVersion": "0.0.1",
545 "parentLocalName": "LinkFailureOrClearedState",
546 "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
550 "name": "CreateLinkClearedOutfieldsEvent"
553 "parentKeyName": "LinkMonitorPolicy",
554 "parentKeyVersion": "0.0.1",
555 "parentLocalName": "NULL",
556 "localName": "LinkClearedState"
560 "key": "CreateLinkFailureOutfieldsLogic_Output_Direct",
563 "parentKeyName": "LinkMonitorPolicy",
564 "parentKeyVersion": "0.0.1",
565 "parentLocalName": "LinkFailureOrClearedState",
566 "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
570 "name": "CreateLinkFailureOutfieldsEvent"
573 "parentKeyName": "LinkMonitorPolicy",
574 "parentKeyVersion": "0.0.1",
575 "parentLocalName": "NULL",
576 "localName": "LinkFailureState"
580 "key": "NoPolicyDefinedLogic_Output_Direct",
583 "parentKeyName": "LinkMonitorPolicy",
584 "parentKeyVersion": "0.0.1",
585 "parentLocalName": "LinkFailureOrClearedState",
586 "localName": "NoPolicyDefinedLogic_Output_Direct"
590 "name": "ApexMessageOutputEvent"
593 "parentKeyName": "NULL",
594 "parentKeyVersion": "0.0.0",
595 "parentLocalName": "NULL",
606 "name": "CreateLinkClearedOutfieldsTask"
610 "parentKeyName": "LinkMonitorPolicy",
611 "parentKeyVersion": "0.0.1",
612 "parentLocalName": "LinkFailureOrClearedState",
613 "localName": "CreateLinkClearedOutfieldsTask"
616 "parentKeyName": "LinkMonitorPolicy",
617 "parentKeyVersion": "0.0.1",
618 "parentLocalName": "LinkFailureOrClearedState",
619 "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
621 "outputType": "DIRECT"
626 "name": "CreateLinkFailureOutfieldsTask"
630 "parentKeyName": "LinkMonitorPolicy",
631 "parentKeyVersion": "0.0.1",
632 "parentLocalName": "LinkFailureOrClearedState",
633 "localName": "CreateLinkFailureOutfieldsTask"
636 "parentKeyName": "LinkMonitorPolicy",
637 "parentKeyVersion": "0.0.1",
638 "parentLocalName": "LinkFailureOrClearedState",
639 "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
641 "outputType": "DIRECT"
646 "name": "NoPolicyDefinedTask"
650 "parentKeyName": "LinkMonitorPolicy",
651 "parentKeyVersion": "0.0.1",
652 "parentLocalName": "LinkFailureOrClearedState",
653 "localName": "NoPolicyDefinedTask"
656 "parentKeyName": "LinkMonitorPolicy",
657 "parentKeyVersion": "0.0.1",
658 "parentLocalName": "LinkFailureOrClearedState",
659 "localName": "NoPolicyDefinedLogic_Output_Direct"
661 "outputType": "DIRECT"
666 "parentKeyName": "LinkMonitorPolicy",
667 "parentKeyVersion": "0.0.1",
668 "parentLocalName": "NULL",
669 "localName": "LinkFailureOrClearedState"
671 "contextAlbumReference": [],
672 "stateFinalizerLogicMap": {
675 "taskSelectionLogic": {
676 "key": "TaskSelectionLogic",
678 * ============LICENSE_START=======================================================
679 * Copyright (C) 2021 Nordix Foundation.
680 * ================================================================================
681 * Licensed under the Apache License, Version 2.0 (the \"License\");
682 * you may not use this file except in compliance with the License.
683 * You may obtain a copy of the License at
685 * http://www.apache.org/licenses/LICENSE-2.0
687 * Unless required by applicable law or agreed to in writing, software
688 * distributed under the License is distributed on an \"AS IS\" BASIS,
689 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
690 * See the License for the specific language governing permissions and
691 * limitations under the License.
693 * SPDX-License-Identifier: Apache-2.0
694 * ============LICENSE_END=========================================================
697 executor.logger.info(\"Task Selection Execution: '\"+executor.subject.id+
698 \"'. InputFields: '\"+executor.inFields+\"'\");
700 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
701 var commonEventHeader = linkFailureInput.get(\"event\").get(\"commonEventHeader\");
702 var domain = commonEventHeader.get(\"domain\");
704 taskFailure = executor.subject.getTaskKey(\"CreateLinkFailureOutfieldsTask\");
705 taskCleared = executor.subject.getTaskKey(\"CreateLinkClearedOutfieldsTask\");
706 taskDefault = executor.subject.getDefaultTaskKey();
708 if (domain == \"fault\") {
709 var faultFields = linkFailureInput.get(\"event\").get(\"faultFields\");
710 var alarmCondition = faultFields.get(\"alarmCondition\");
711 var eventSeverity = faultFields.get(\"eventSeverity\");
712 if (alarmCondition == \"28\" && eventSeverity != \"NORMAL\") {
713 taskFailure.copyTo(executor.selectedTask);
714 } else if (alarmCondition == \"28\" && eventSeverity == \"NORMAL\") {
715 taskCleared.copyTo(executor.selectedTask);
717 taskDefault.copyTo(executor.selectedTask);
720 taskDefault.copyTo(executor.selectedTask);
724 "logicFlavour": "JAVASCRIPT"
728 "name": "LinkFailureInputEvent"
732 "key": "LinkFailureState",
736 "name": "LinkFailureTask"
741 "key": "LinkFailureLogic_Output_Direct",
744 "parentKeyName": "LinkMonitorPolicy",
745 "parentKeyVersion": "0.0.1",
746 "parentLocalName": "LinkFailureState",
747 "localName": "LinkFailureLogic_Output_Direct"
751 "name": "LinkFailureOutputEvent"
754 "parentKeyName": "NULL",
755 "parentKeyVersion": "0.0.0",
756 "parentLocalName": "NULL",
767 "name": "LinkFailureTask"
771 "parentKeyName": "LinkMonitorPolicy",
772 "parentKeyVersion": "0.0.1",
773 "parentLocalName": "LinkFailureState",
774 "localName": "LinkFailureTask"
777 "parentKeyName": "LinkMonitorPolicy",
778 "parentKeyVersion": "0.0.1",
779 "parentLocalName": "LinkFailureState",
780 "localName": "LinkFailureLogic_Output_Direct"
782 "outputType": "DIRECT"
787 "parentKeyName": "LinkMonitorPolicy",
788 "parentKeyVersion": "0.0.1",
789 "parentLocalName": "NULL",
790 "localName": "LinkFailureState"
792 "contextAlbumReference": [],
793 "stateFinalizerLogicMap": {
796 "taskSelectionLogic": {
799 "logicFlavour": "UNDEFINED"
803 "name": "CreateLinkFailureOutfieldsEvent"
808 "firstState": "LinkFailureOrClearedState"
816 "name": "LinkMonitorModel_Events"
823 "name": "ApexMessageOutputEvent"
828 "name": "ApexMessageOutputEvent"
832 "nameSpace": "org.onap.policy.apex.auth.clieditor",
842 "name": "MessageSchema"
851 "name": "CreateLinkClearedOutfieldsEvent"
856 "name": "CreateLinkClearedOutfieldsEvent"
860 "nameSpace": "org.onap.policy.apex.auth.clieditor",
870 "name": "OruIdSchema"
879 "name": "CreateLinkFailureOutfieldsEvent"
884 "name": "CreateLinkFailureOutfieldsEvent"
888 "nameSpace": "org.onap.policy.apex.auth.clieditor",
898 "name": "OduIdSchema"
908 "name": "OruIdSchema"
917 "name": "LinkFailureInputEvent"
922 "name": "LinkFailureInputEvent"
926 "nameSpace": "org.onap.policy.apex.auth.clieditor",
930 "key": "LinkFailureInput",
933 "key": "LinkFailureInput",
936 "name": "LinkFailureInputSchema"
945 "name": "LinkFailureOutputEvent"
950 "name": "LinkFailureOutputEvent"
954 "nameSpace": "org.onap.policy.apex.auth.clieditor",
958 "key": "LinkFailureOutput",
961 "key": "LinkFailureOutput",
964 "name": "LinkFailureOutputSchema"
976 "name": "LinkMonitorModel_KeyInfo"
983 "name": "ApexMessageOutputEvent"
988 "name": "ApexMessageOutputEvent"
990 "description": "Generated description for concept referred to by key \"ApexMessageOutputEvent:0.0.1\"",
991 "UUID": "cca47d74-7754-4a61-b163-ca31f66b157b"
996 "name": "CreateLinkClearedOutfieldsEvent"
1001 "name": "CreateLinkClearedOutfieldsEvent"
1003 "description": "Generated description for concept referred to by key \"CreateLinkClearedOutfieldsEvent:0.0.1\"",
1004 "UUID": "a295d6a3-1b73-387e-abba-b41e9b608802"
1009 "name": "CreateLinkClearedOutfieldsTask"
1014 "name": "CreateLinkClearedOutfieldsTask"
1016 "description": "This task creates the output fields when link failure is cleared.",
1017 "UUID": "fd594e88-411d-4a94-b2be-697b3a0d7adf"
1022 "name": "CreateLinkFailureOutfieldsEvent"
1027 "name": "CreateLinkFailureOutfieldsEvent"
1029 "description": "Generated description for concept referred to by key \"CreateLinkFailureOutfieldsEvent:0.0.1\"",
1030 "UUID": "02be2b5d-45b7-3c54-ae54-97f2b5c30125"
1035 "name": "CreateLinkFailureOutfieldsTask"
1040 "name": "CreateLinkFailureOutfieldsTask"
1042 "description": "This task the output fields when link failure is detected.",
1043 "UUID": "ac3d9842-80af-4a98-951c-bd79a431c613"
1048 "name": "LinkClearedTask"
1053 "name": "LinkClearedTask"
1055 "description": "This task sends a message to the output when link failure is cleared.",
1056 "UUID": "eecfde90-896c-4343-8f9c-2603ced94e2d"
1061 "name": "LinkFailureInputEvent"
1066 "name": "LinkFailureInputEvent"
1068 "description": "Generated description for concept referred to by key \"LinkFailureInputEvent:0.0.1\"",
1069 "UUID": "c4500941-3f98-4080-a9cc-5b9753ed050b"
1074 "name": "LinkFailureInputSchema"
1079 "name": "LinkFailureInputSchema"
1081 "description": "Generated description for concept referred to by key \"LinkFailureInputSchema:0.0.1\"",
1082 "UUID": "3b3974fc-3012-3b02-9f33-c9d8eefe4dc1"
1087 "name": "LinkFailureOutputEvent"
1092 "name": "LinkFailureOutputEvent"
1094 "description": "Generated description for concept referred to by key \"LinkFailureOutputEvent:0.0.1\"",
1095 "UUID": "4f04aa98-e917-4f4a-882a-c75ba5a99374"
1100 "name": "LinkFailureOutputSchema"
1105 "name": "LinkFailureOutputSchema"
1107 "description": "Generated description for concept referred to by key \"LinkFailureOutputSchema:0.0.1\"",
1108 "UUID": "2d1a7f6e-eb9a-3984-be1f-283d98111b84"
1113 "name": "LinkFailureTask"
1118 "name": "LinkFailureTask"
1120 "description": "This task updates the config for O-RU when link failure is detected.",
1121 "UUID": "3351b0f4-cf06-4fa2-8823-edf67bd30223"
1126 "name": "LinkMonitorModel"
1131 "name": "LinkMonitorModel"
1133 "description": "This is the Apex Policy Model for link monitoring.",
1134 "UUID": "540226fb-55ee-4f0e-a444-983a0494818e"
1139 "name": "LinkMonitorModel_Events"
1144 "name": "LinkMonitorModel_Events"
1146 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Events:0.0.1\"",
1147 "UUID": "27ad3e7e-fe3b-3bd6-9081-718705c2bcea"
1152 "name": "LinkMonitorModel_KeyInfo"
1157 "name": "LinkMonitorModel_KeyInfo"
1159 "description": "Generated description for concept referred to by key \"LinkMonitorModel_KeyInfo:0.0.1\"",
1160 "UUID": "ea0b5f58-eefd-358a-9660-840c640bf981"
1165 "name": "LinkMonitorModel_Policies"
1170 "name": "LinkMonitorModel_Policies"
1172 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Policies:0.0.1\"",
1173 "UUID": "ee9e0b0f-2b7d-3ab7-9a98-c5ec05ed823d"
1178 "name": "LinkMonitorModel_Schemas"
1183 "name": "LinkMonitorModel_Schemas"
1185 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Schemas:0.0.1\"",
1186 "UUID": "fa5f9b8f-796c-3c70-84e9-5140c958c4bb"
1191 "name": "LinkMonitorModel_Tasks"
1196 "name": "LinkMonitorModel_Tasks"
1198 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Tasks:0.0.1\"",
1199 "UUID": "eec592f7-69d5-39a9-981a-e552f787ed01"
1204 "name": "LinkMonitorPolicy"
1209 "name": "LinkMonitorPolicy"
1211 "description": "Generated description for concept referred to by key \"LinkMonitorPolicy:0.0.1\"",
1212 "UUID": "6c5e410f-489a-46ff-964e-982ce6e8b6d0"
1217 "name": "MessageSchema"
1222 "name": "MessageSchema"
1224 "description": "A schema for messages from apex",
1225 "UUID": "ac4b34ac-39d6-3393-a267-8d5b84854018"
1230 "name": "NoPolicyDefinedTask"
1235 "name": "NoPolicyDefinedTask"
1237 "description": "This task sends a message to the output when an event is received for which no policy has been defined.",
1238 "UUID": "d48b619e-d00d-4008-b884-02d76ea4350b"
1243 "name": "OduIdSchema"
1248 "name": "OduIdSchema"
1250 "description": "A schema for O-DU-ID",
1251 "UUID": "50662174-a88b-3cbd-91bd-8e91b40b2660"
1256 "name": "OruIdSchema"
1261 "name": "OruIdSchema"
1263 "description": "A schema for O-RU-ID",
1264 "UUID": "54daf32b-015f-39cd-8530-a1175c5553e9"
1272 "name": "LinkMonitorModel_Schemas"
1279 "name": "LinkFailureInputSchema"
1282 "schemaDefinition": "{
1283 \"type\": \"record\",
1284 \"name\": \"Link_Failure_Input\",
1287 \"name\": \"event\",
1289 \"type\": \"record\",
1290 \"name\": \"Event_Type\",
1293 \"name\": \"commonEventHeader\",
1295 \"type\": \"record\",
1296 \"name\": \"Common_Event_Header_Type\",
1299 \"name\": \"domain\",
1300 \"type\": \"string\"
1303 \"name\": \"eventId\",
1304 \"type\": \"string\"
1307 \"name\": \"eventName\",
1308 \"type\": \"string\"
1311 \"name\": \"eventType\",
1312 \"type\": \"string\"
1315 \"name\": \"sequence\",
1319 \"name\": \"priority\",
1320 \"type\": \"string\"
1323 \"name\": \"reportingEntityId\",
1324 \"type\": \"string\"
1327 \"name\": \"reportingEntityName\",
1328 \"type\": \"string\"
1331 \"name\": \"sourceId\",
1332 \"type\": \"string\"
1335 \"name\": \"sourceName\",
1336 \"type\": \"string\"
1339 \"name\": \"startEpochMicrosec\",
1340 \"type\": \"string\"
1343 \"name\": \"lastEpochMicrosec\",
1344 \"type\": \"string\"
1347 \"name\": \"nfNamingCode\",
1348 \"type\": \"string\"
1351 \"name\": \"nfVendorName\",
1352 \"type\": \"string\"
1355 \"name\": \"timeZoneOffset\",
1356 \"type\": \"string\"
1359 \"name\": \"version\",
1360 \"type\": \"string\"
1363 \"name\": \"vesEventListenerVersion\",
1364 \"type\": \"string\"
1370 \"name\": \"faultFields\",
1372 \"type\": \"record\",
1373 \"name\": \"Fault_Fields_Type\",
1376 \"name\": \"faultFieldsVersion\",
1377 \"type\": \"string\"
1380 \"name\": \"alarmCondition\",
1381 \"type\": \"string\"
1384 \"name\": \"alarmInterfaceA\",
1385 \"type\": \"string\"
1388 \"name\": \"eventSourceType\",
1389 \"type\": \"string\"
1392 \"name\": \"specificProblem\",
1393 \"type\": \"string\"
1396 \"name\": \"eventSeverity\",
1397 \"type\": \"string\"
1400 \"name\": \"vfStatus\",
1401 \"type\": \"string\"
1404 \"name\": \"alarmAdditionalInformation\",
1406 \"type\": \"record\",
1407 \"name\": \"Alarm_Additional_Information_Type\",
1410 \"name\": \"eventTime\",
1411 \"type\": \"string\"
1414 \"name\": \"equipType\",
1415 \"type\": \"string\"
1418 \"name\": \"vendor\",
1419 \"type\": \"string\"
1422 \"name\": \"model\",
1423 \"type\": \"string\"
1438 "name": "LinkFailureInputSchema"
1440 "schemaFlavour": "Avro"
1445 "name": "LinkFailureOutputSchema"
1448 "schemaDefinition": "{
1449 \"name\": \"Link_Failure_Output\",
1450 \"type\": \"record\",
1453 \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\",
1455 \"type\": \"array\",
1457 \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio_record\",
1458 \"type\": \"record\",
1462 \"type\": \"string\"
1465 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\",
1469 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\",
1471 \"type\": \"array\",
1473 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members_record\",
1474 \"type\": \"record\",
1477 \"name\": \"mobile_DasH_country_DasH_code\",
1478 \"type\": \"string\"
1481 \"name\": \"mobile_DasH_network_DasH_code\",
1482 \"type\": \"string\"
1485 \"name\": \"slice_DasH_differentiator\",
1489 \"name\": \"slice_DasH_service_DasH_type\",
1497 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\",
1501 \"name\": \"user_DasH_label\",
1502 \"type\": \"string\"
1505 \"name\": \"resource_DasH_type\",
1506 \"type\": \"string\"
1509 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\",
1513 \"name\": \"administrative_DasH_state\",
1514 \"type\": \"string\"
1524 "name": "LinkFailureOutputSchema"
1526 "schemaFlavour": "Avro"
1531 "name": "MessageSchema"
1534 "schemaDefinition": "java.lang.String",
1537 "name": "MessageSchema"
1539 "schemaFlavour": "Java"
1544 "name": "OduIdSchema"
1547 "schemaDefinition": "java.lang.String",
1550 "name": "OduIdSchema"
1552 "schemaFlavour": "Java"
1557 "name": "OruIdSchema"
1560 "schemaDefinition": "java.lang.String",
1563 "name": "OruIdSchema"
1565 "schemaFlavour": "Java"
1573 "name": "LinkMonitorModel_Tasks"
1580 "name": "CreateLinkClearedOutfieldsTask"
1588 "name": "CreateLinkClearedOutfieldsTask"
1593 * ============LICENSE_START=======================================================
1594 * Copyright (C) 2021 Nordix Foundation.
1595 * ================================================================================
1596 * Licensed under the Apache License, Version 2.0 (the \"License\");
1597 * you may not use this file except in compliance with the License.
1598 * You may obtain a copy of the License at
1600 * http://www.apache.org/licenses/LICENSE-2.0
1602 * Unless required by applicable law or agreed to in writing, software
1603 * distributed under the License is distributed on an \"AS IS\" BASIS,
1604 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1605 * See the License for the specific language governing permissions and
1606 * limitations under the License.
1608 * SPDX-License-Identifier: Apache-2.0
1609 * ============LICENSE_END=========================================================
1612 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1614 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
1615 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
1617 executor.outFields.put(\"OruId\", oruId);
1619 executor.logger.info(executor.outFields);
1622 "logicFlavour": "JAVASCRIPT"
1627 "key": "LinkFailureInput",
1630 "key": "LinkFailureInput",
1633 "name": "LinkFailureInputSchema"
1647 "name": "OruIdSchema"
1652 "contextAlbumReference": []
1657 "name": "CreateLinkFailureOutfieldsTask"
1665 "name": "CreateLinkFailureOutfieldsTask"
1670 * ============LICENSE_START=======================================================
1671 * Copyright (C) 2021 Nordix Foundation.
1672 * ================================================================================
1673 * Licensed under the Apache License, Version 2.0 (the \"License\");
1674 * you may not use this file except in compliance with the License.
1675 * You may obtain a copy of the License at
1677 * http://www.apache.org/licenses/LICENSE-2.0
1679 * Unless required by applicable law or agreed to in writing, software
1680 * distributed under the License is distributed on an \"AS IS\" BASIS,
1681 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1682 * See the License for the specific language governing permissions and
1683 * limitations under the License.
1685 * SPDX-License-Identifier: Apache-2.0
1686 * ============LICENSE_END=========================================================
1689 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1691 var returnValue = true;
1692 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
1693 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
1694 var oruOduMap = JSON.parse(executor.parameters.get(\"ORU-ODU-Map\"));
1696 if (oruId in oruOduMap) {
1697 var oduId = oruOduMap[oruId];
1698 executor.outFields.put(\"OruId\", oruId);
1699 executor.outFields.put(\"OduId\", oduId);
1700 executor.logger.info(executor.outFields);
1702 executor.message = \"No O-RU found in the config with this ID: \" + oruId;
1703 returnValue = false;
1707 "logicFlavour": "JAVASCRIPT"
1712 "key": "LinkFailureInput",
1715 "key": "LinkFailureInput",
1718 "name": "LinkFailureInputSchema"
1732 "name": "OduIdSchema"
1742 "name": "OruIdSchema"
1747 "contextAlbumReference": []
1752 "name": "LinkClearedTask"
1760 "name": "LinkClearedTask"
1765 * ============LICENSE_START=======================================================
1766 * Copyright (C) 2021 Nordix Foundation.
1767 * ================================================================================
1768 * Licensed under the Apache License, Version 2.0 (the \"License\");
1769 * you may not use this file except in compliance with the License.
1770 * You may obtain a copy of the License at
1772 * http://www.apache.org/licenses/LICENSE-2.0
1774 * Unless required by applicable law or agreed to in writing, software
1775 * distributed under the License is distributed on an \"AS IS\" BASIS,
1776 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1777 * See the License for the specific language governing permissions and
1778 * limitations under the License.
1780 * SPDX-License-Identifier: Apache-2.0
1781 * ============LICENSE_END=========================================================
1784 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1786 var oruId = executor.inFields.get(\"OruId\");
1788 executor.outFields.put(\"message\", \"CLEARED link failure for O-RU: \" + oruId);
1790 executor.logger.info(executor.outFields);
1793 "logicFlavour": "JAVASCRIPT"
1804 "name": "OruIdSchema"
1818 "name": "MessageSchema"
1823 "contextAlbumReference": []
1828 "name": "LinkFailureTask"
1836 "name": "LinkFailureTask"
1841 * ============LICENSE_START=======================================================
1842 * Copyright (C) 2021 Nordix Foundation.
1843 * ================================================================================
1844 * Licensed under the Apache License, Version 2.0 (the \"License\");
1845 * you may not use this file except in compliance with the License.
1846 * You may obtain a copy of the License at
1848 * http://www.apache.org/licenses/LICENSE-2.0
1850 * Unless required by applicable law or agreed to in writing, software
1851 * distributed under the License is distributed on an \"AS IS\" BASIS,
1852 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1853 * See the License for the specific language governing permissions and
1854 * limitations under the License.
1856 * SPDX-License-Identifier: Apache-2.0
1857 * ============LICENSE_END=========================================================
1860 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1862 var linkFailureOutput = executor.subject.getOutFieldSchemaHelper(\"LinkFailureOutput\").createNewInstance();
1864 var oruId = executor.inFields.get(\"OruId\");
1865 var oduId = executor.inFields.get(\"OduId\");
1867 var unlockMessageArray = new java.util.ArrayList();
1868 for (var i = 0; i < 1; i++) {
1869 unlockMessageArray.add({
1870 \"id\":\"rrm-pol-2\",
1871 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\":25,
1872 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\":
1875 \"mobile_DasH_country_DasH_code\":\"310\",
1876 \"mobile_DasH_network_DasH_code\":\"150\",
1877 \"slice_DasH_differentiator\":1,
1878 \"slice_DasH_service_DasH_type\":1
1881 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\":15,
1882 \"user_DasH_label\":\"rrm-pol-2\",
1883 \"resource_DasH_type\":\"prb\",
1884 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\":20,
1885 \"administrative_DasH_state\":\"unlocked\"
1889 linkFailureOutput.put(\"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\", unlockMessageArray);
1890 executor.outFields.put(\"LinkFailureOutput\", linkFailureOutput.toString());
1892 executor.getExecutionProperties().setProperty(\"OduId\", oduId);
1893 executor.getExecutionProperties().setProperty(\"OruId\", oruId);
1895 executor.logger.info(executor.outFields);
1898 "logicFlavour": "JAVASCRIPT"
1909 "name": "OduIdSchema"
1919 "name": "OruIdSchema"
1927 "key": "LinkFailureOutput",
1930 "key": "LinkFailureOutput",
1933 "name": "LinkFailureOutputSchema"
1938 "contextAlbumReference": []
1943 "name": "NoPolicyDefinedTask"
1951 "name": "NoPolicyDefinedTask"
1956 * ============LICENSE_START=======================================================
1957 * Copyright (C) 2021 Nordix Foundation.
1958 * ================================================================================
1959 * Licensed under the Apache License, Version 2.0 (the \"License\");
1960 * you may not use this file except in compliance with the License.
1961 * You may obtain a copy of the License at
1963 * http://www.apache.org/licenses/LICENSE-2.0
1965 * Unless required by applicable law or agreed to in writing, software
1966 * distributed under the License is distributed on an \"AS IS\" BASIS,
1967 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1968 * See the License for the specific language governing permissions and
1969 * limitations under the License.
1971 * SPDX-License-Identifier: Apache-2.0
1972 * ============LICENSE_END=========================================================
1975 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1977 executor.outFields.put(\"message\", \"No policy defined for this event\");
1979 executor.logger.info(executor.outFields);
1982 "logicFlavour": "JAVASCRIPT"
1987 "key": "LinkFailureInput",
1990 "key": "LinkFailureInput",
1993 "name": "LinkFailureInputSchema"
2007 "name": "MessageSchema"
2012 "contextAlbumReference": []
2022 "name": "LinkMonitorApexEngine",
2023 "engineParameters": {
2026 "key": "ORU-ODU-Map",
2028 \"o-ru-11211\": \"o-du-1121\",
2029 \"o-ru-11223\": \"o-du-1122\",
2030 \"o-ru-11222\": \"o-du-1122\",
2031 \"o-ru-11221\": \"o-du-1122\"
2034 "contextParameters": {
2035 "schemaParameters": {
2037 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
2040 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters"
2042 "executorParameters": {
2044 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
2048 "deploymentPort": 12345
2052 "policy-id": "operational.apex.linkmonitor",
2053 "policy-version": "1.0.0"
2055 "description": null,
2057 "type_version": "1.0.0",
2058 "defined_name": "operational.apex.linkmonitor",
2059 "defined_version": "1.0.0",
2060 "type": "onap.policies.controlloop.operational.common.Apex",
2061 "name": "operational.apex.linkmonitor"
2066 "operational.apex.linkmonitor": {
2067 "type_identifier": {
2069 "name": "onap.policies.controlloop.operational.common.Apex"
2073 "name": "operational.apex.linkmonitor"
2075 "derived_from": null,
2078 "name": "operational.apex.linkmonitor"
2081 "eventInputParameters": {
2083 "carrierTechnologyParameters": {
2085 "url": "http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT/{{dmaapGroup}}/{{dmaapUser}}?timeout=15000&limit=100"
2087 "carrierTechnology": "RESTCLIENT",
2088 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
2090 "eventName": "LinkFailureInputEvent",
2091 "eventProtocolParameters": {
2093 "versionAlias": "version",
2094 "pojoField": "LinkFailureInput"
2096 "eventProtocol": "JSON"
2100 "eventOutputParameters": {
2102 "eventNameFilter": "LinkFailureOutputEvent",
2103 "carrierTechnologyParameters": {
2105 "url": "http://sdnc-oam:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node={OduId}/yang-ext:mount/o-ran-sc-du-hello-world:network-function/distributed-unit-functions={OduId}/radio-resource-management-policy-ratio=rrm-pol-2",
2106 "httpMethod": "PUT",
2109 "Authorization","Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="]]
2111 "carrierTechnology": "RESTCLIENT",
2112 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
2114 "eventProtocolParameters": {
2116 "pojoField": "LinkFailureOutput"
2118 "eventProtocol": "JSON"
2122 "eventNameFilter": "ApexMessageOutputEvent",
2123 "carrierTechnologyParameters": {
2127 "carrierTechnology": "FILE"
2129 "eventProtocolParameters": {
2131 "pojoField": "message"
2133 "eventProtocol": "JSON"
2137 "engineServiceParameters": {
2138 "policy_type_impl": {
2139 "apexPolicyModel": {
2142 "name": "LinkMonitorModel"
2147 "name": "LinkMonitorModel_Policies"
2154 "name": "LinkMonitorPolicy"
2157 "template": "Freestyle",
2160 "name": "LinkMonitorPolicy"
2165 "key": "LinkClearedState",
2169 "name": "LinkClearedTask"
2174 "key": "LinkClearedLogic_Output_Direct",
2177 "parentKeyName": "LinkMonitorPolicy",
2178 "parentKeyVersion": "0.0.1",
2179 "parentLocalName": "LinkClearedState",
2180 "localName": "LinkClearedLogic_Output_Direct"
2184 "name": "ApexMessageOutputEvent"
2187 "parentKeyName": "NULL",
2188 "parentKeyVersion": "0.0.0",
2189 "parentLocalName": "NULL",
2200 "name": "LinkClearedTask"
2204 "parentKeyName": "LinkMonitorPolicy",
2205 "parentKeyVersion": "0.0.1",
2206 "parentLocalName": "LinkClearedState",
2207 "localName": "LinkClearedTask"
2210 "parentKeyName": "LinkMonitorPolicy",
2211 "parentKeyVersion": "0.0.1",
2212 "parentLocalName": "LinkClearedState",
2213 "localName": "LinkClearedLogic_Output_Direct"
2215 "outputType": "DIRECT"
2220 "parentKeyName": "LinkMonitorPolicy",
2221 "parentKeyVersion": "0.0.1",
2222 "parentLocalName": "NULL",
2223 "localName": "LinkClearedState"
2225 "contextAlbumReference": [],
2226 "stateFinalizerLogicMap": {
2229 "taskSelectionLogic": {
2232 "logicFlavour": "UNDEFINED"
2236 "name": "CreateLinkClearedOutfieldsEvent"
2240 "key": "LinkFailureOrClearedState",
2244 "name": "NoPolicyDefinedTask"
2249 "key": "CreateLinkClearedOutfieldsLogic_Output_Direct",
2252 "parentKeyName": "LinkMonitorPolicy",
2253 "parentKeyVersion": "0.0.1",
2254 "parentLocalName": "LinkFailureOrClearedState",
2255 "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
2259 "name": "CreateLinkClearedOutfieldsEvent"
2262 "parentKeyName": "LinkMonitorPolicy",
2263 "parentKeyVersion": "0.0.1",
2264 "parentLocalName": "NULL",
2265 "localName": "LinkClearedState"
2269 "key": "CreateLinkFailureOutfieldsLogic_Output_Direct",
2272 "parentKeyName": "LinkMonitorPolicy",
2273 "parentKeyVersion": "0.0.1",
2274 "parentLocalName": "LinkFailureOrClearedState",
2275 "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
2279 "name": "CreateLinkFailureOutfieldsEvent"
2282 "parentKeyName": "LinkMonitorPolicy",
2283 "parentKeyVersion": "0.0.1",
2284 "parentLocalName": "NULL",
2285 "localName": "LinkFailureState"
2289 "key": "NoPolicyDefinedLogic_Output_Direct",
2292 "parentKeyName": "LinkMonitorPolicy",
2293 "parentKeyVersion": "0.0.1",
2294 "parentLocalName": "LinkFailureOrClearedState",
2295 "localName": "NoPolicyDefinedLogic_Output_Direct"
2299 "name": "ApexMessageOutputEvent"
2302 "parentKeyName": "NULL",
2303 "parentKeyVersion": "0.0.0",
2304 "parentLocalName": "NULL",
2315 "name": "CreateLinkClearedOutfieldsTask"
2319 "parentKeyName": "LinkMonitorPolicy",
2320 "parentKeyVersion": "0.0.1",
2321 "parentLocalName": "LinkFailureOrClearedState",
2322 "localName": "CreateLinkClearedOutfieldsTask"
2325 "parentKeyName": "LinkMonitorPolicy",
2326 "parentKeyVersion": "0.0.1",
2327 "parentLocalName": "LinkFailureOrClearedState",
2328 "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
2330 "outputType": "DIRECT"
2335 "name": "CreateLinkFailureOutfieldsTask"
2339 "parentKeyName": "LinkMonitorPolicy",
2340 "parentKeyVersion": "0.0.1",
2341 "parentLocalName": "LinkFailureOrClearedState",
2342 "localName": "CreateLinkFailureOutfieldsTask"
2345 "parentKeyName": "LinkMonitorPolicy",
2346 "parentKeyVersion": "0.0.1",
2347 "parentLocalName": "LinkFailureOrClearedState",
2348 "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
2350 "outputType": "DIRECT"
2355 "name": "NoPolicyDefinedTask"
2359 "parentKeyName": "LinkMonitorPolicy",
2360 "parentKeyVersion": "0.0.1",
2361 "parentLocalName": "LinkFailureOrClearedState",
2362 "localName": "NoPolicyDefinedTask"
2365 "parentKeyName": "LinkMonitorPolicy",
2366 "parentKeyVersion": "0.0.1",
2367 "parentLocalName": "LinkFailureOrClearedState",
2368 "localName": "NoPolicyDefinedLogic_Output_Direct"
2370 "outputType": "DIRECT"
2375 "parentKeyName": "LinkMonitorPolicy",
2376 "parentKeyVersion": "0.0.1",
2377 "parentLocalName": "NULL",
2378 "localName": "LinkFailureOrClearedState"
2380 "contextAlbumReference": [],
2381 "stateFinalizerLogicMap": {
2384 "taskSelectionLogic": {
2385 "key": "TaskSelectionLogic",
2387 * ============LICENSE_START=======================================================
2388 * Copyright (C) 2021 Nordix Foundation.
2389 * ================================================================================
2390 * Licensed under the Apache License, Version 2.0 (the \"License\");
2391 * you may not use this file except in compliance with the License.
2392 * You may obtain a copy of the License at
2394 * http://www.apache.org/licenses/LICENSE-2.0
2396 * Unless required by applicable law or agreed to in writing, software
2397 * distributed under the License is distributed on an \"AS IS\" BASIS,
2398 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2399 * See the License for the specific language governing permissions and
2400 * limitations under the License.
2402 * SPDX-License-Identifier: Apache-2.0
2403 * ============LICENSE_END=========================================================
2406 executor.logger.info(\"Task Selection Execution: '\"+executor.subject.id+
2407 \"'. InputFields: '\"+executor.inFields+\"'\");
2409 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
2410 var commonEventHeader = linkFailureInput.get(\"event\").get(\"commonEventHeader\");
2411 var domain = commonEventHeader.get(\"domain\");
2413 taskFailure = executor.subject.getTaskKey(\"CreateLinkFailureOutfieldsTask\");
2414 taskCleared = executor.subject.getTaskKey(\"CreateLinkClearedOutfieldsTask\");
2415 taskDefault = executor.subject.getDefaultTaskKey();
2417 if (domain == \"fault\") {
2418 var faultFields = linkFailureInput.get(\"event\").get(\"faultFields\");
2419 var alarmCondition = faultFields.get(\"alarmCondition\");
2420 var eventSeverity = faultFields.get(\"eventSeverity\");
2421 if (alarmCondition == \"28\" && eventSeverity != \"NORMAL\") {
2422 taskFailure.copyTo(executor.selectedTask);
2423 } else if (alarmCondition == \"28\" && eventSeverity == \"NORMAL\") {
2424 taskCleared.copyTo(executor.selectedTask);
2426 taskDefault.copyTo(executor.selectedTask);
2429 taskDefault.copyTo(executor.selectedTask);
2433 "logicFlavour": "JAVASCRIPT"
2437 "name": "LinkFailureInputEvent"
2441 "key": "LinkFailureState",
2445 "name": "LinkFailureTask"
2450 "key": "LinkFailureLogic_Output_Direct",
2453 "parentKeyName": "LinkMonitorPolicy",
2454 "parentKeyVersion": "0.0.1",
2455 "parentLocalName": "LinkFailureState",
2456 "localName": "LinkFailureLogic_Output_Direct"
2460 "name": "LinkFailureOutputEvent"
2463 "parentKeyName": "NULL",
2464 "parentKeyVersion": "0.0.0",
2465 "parentLocalName": "NULL",
2476 "name": "LinkFailureTask"
2480 "parentKeyName": "LinkMonitorPolicy",
2481 "parentKeyVersion": "0.0.1",
2482 "parentLocalName": "LinkFailureState",
2483 "localName": "LinkFailureTask"
2486 "parentKeyName": "LinkMonitorPolicy",
2487 "parentKeyVersion": "0.0.1",
2488 "parentLocalName": "LinkFailureState",
2489 "localName": "LinkFailureLogic_Output_Direct"
2491 "outputType": "DIRECT"
2496 "parentKeyName": "LinkMonitorPolicy",
2497 "parentKeyVersion": "0.0.1",
2498 "parentLocalName": "NULL",
2499 "localName": "LinkFailureState"
2501 "contextAlbumReference": [],
2502 "stateFinalizerLogicMap": {
2505 "taskSelectionLogic": {
2508 "logicFlavour": "UNDEFINED"
2512 "name": "CreateLinkFailureOutfieldsEvent"
2517 "firstState": "LinkFailureOrClearedState"
2525 "name": "LinkMonitorModel_Events"
2532 "name": "ApexMessageOutputEvent"
2537 "name": "ApexMessageOutputEvent"
2541 "nameSpace": "org.onap.policy.apex.auth.clieditor",
2551 "name": "MessageSchema"
2560 "name": "CreateLinkClearedOutfieldsEvent"
2565 "name": "CreateLinkClearedOutfieldsEvent"
2569 "nameSpace": "org.onap.policy.apex.auth.clieditor",
2579 "name": "OruIdSchema"
2588 "name": "CreateLinkFailureOutfieldsEvent"
2593 "name": "CreateLinkFailureOutfieldsEvent"
2597 "nameSpace": "org.onap.policy.apex.auth.clieditor",
2607 "name": "OduIdSchema"
2617 "name": "OruIdSchema"
2626 "name": "LinkFailureInputEvent"
2631 "name": "LinkFailureInputEvent"
2635 "nameSpace": "org.onap.policy.apex.auth.clieditor",
2639 "key": "LinkFailureInput",
2642 "key": "LinkFailureInput",
2645 "name": "LinkFailureInputSchema"
2654 "name": "LinkFailureOutputEvent"
2659 "name": "LinkFailureOutputEvent"
2663 "nameSpace": "org.onap.policy.apex.auth.clieditor",
2667 "key": "LinkFailureOutput",
2670 "key": "LinkFailureOutput",
2673 "name": "LinkFailureOutputSchema"
2685 "name": "LinkMonitorModel_KeyInfo"
2692 "name": "ApexMessageOutputEvent"
2697 "name": "ApexMessageOutputEvent"
2699 "description": "Generated description for concept referred to by key \"ApexMessageOutputEvent:0.0.1\"",
2700 "UUID": "cca47d74-7754-4a61-b163-ca31f66b157b"
2705 "name": "CreateLinkClearedOutfieldsEvent"
2710 "name": "CreateLinkClearedOutfieldsEvent"
2712 "description": "Generated description for concept referred to by key \"CreateLinkClearedOutfieldsEvent:0.0.1\"",
2713 "UUID": "a295d6a3-1b73-387e-abba-b41e9b608802"
2718 "name": "CreateLinkClearedOutfieldsTask"
2723 "name": "CreateLinkClearedOutfieldsTask"
2725 "description": "This task creates the output fields when link failure is cleared.",
2726 "UUID": "fd594e88-411d-4a94-b2be-697b3a0d7adf"
2731 "name": "CreateLinkFailureOutfieldsEvent"
2736 "name": "CreateLinkFailureOutfieldsEvent"
2738 "description": "Generated description for concept referred to by key \"CreateLinkFailureOutfieldsEvent:0.0.1\"",
2739 "UUID": "02be2b5d-45b7-3c54-ae54-97f2b5c30125"
2744 "name": "CreateLinkFailureOutfieldsTask"
2749 "name": "CreateLinkFailureOutfieldsTask"
2751 "description": "This task the output fields when link failure is detected.",
2752 "UUID": "ac3d9842-80af-4a98-951c-bd79a431c613"
2757 "name": "LinkClearedTask"
2762 "name": "LinkClearedTask"
2764 "description": "This task sends a message to the output when link failure is cleared.",
2765 "UUID": "eecfde90-896c-4343-8f9c-2603ced94e2d"
2770 "name": "LinkFailureInputEvent"
2775 "name": "LinkFailureInputEvent"
2777 "description": "Generated description for concept referred to by key \"LinkFailureInputEvent:0.0.1\"",
2778 "UUID": "c4500941-3f98-4080-a9cc-5b9753ed050b"
2783 "name": "LinkFailureInputSchema"
2788 "name": "LinkFailureInputSchema"
2790 "description": "Generated description for concept referred to by key \"LinkFailureInputSchema:0.0.1\"",
2791 "UUID": "3b3974fc-3012-3b02-9f33-c9d8eefe4dc1"
2796 "name": "LinkFailureOutputEvent"
2801 "name": "LinkFailureOutputEvent"
2803 "description": "Generated description for concept referred to by key \"LinkFailureOutputEvent:0.0.1\"",
2804 "UUID": "4f04aa98-e917-4f4a-882a-c75ba5a99374"
2809 "name": "LinkFailureOutputSchema"
2814 "name": "LinkFailureOutputSchema"
2816 "description": "Generated description for concept referred to by key \"LinkFailureOutputSchema:0.0.1\"",
2817 "UUID": "2d1a7f6e-eb9a-3984-be1f-283d98111b84"
2822 "name": "LinkFailureTask"
2827 "name": "LinkFailureTask"
2829 "description": "This task updates the config for O-RU when link failure is detected.",
2830 "UUID": "3351b0f4-cf06-4fa2-8823-edf67bd30223"
2835 "name": "LinkMonitorModel"
2840 "name": "LinkMonitorModel"
2842 "description": "This is the Apex Policy Model for link monitoring.",
2843 "UUID": "540226fb-55ee-4f0e-a444-983a0494818e"
2848 "name": "LinkMonitorModel_Events"
2853 "name": "LinkMonitorModel_Events"
2855 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Events:0.0.1\"",
2856 "UUID": "27ad3e7e-fe3b-3bd6-9081-718705c2bcea"
2861 "name": "LinkMonitorModel_KeyInfo"
2866 "name": "LinkMonitorModel_KeyInfo"
2868 "description": "Generated description for concept referred to by key \"LinkMonitorModel_KeyInfo:0.0.1\"",
2869 "UUID": "ea0b5f58-eefd-358a-9660-840c640bf981"
2874 "name": "LinkMonitorModel_Policies"
2879 "name": "LinkMonitorModel_Policies"
2881 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Policies:0.0.1\"",
2882 "UUID": "ee9e0b0f-2b7d-3ab7-9a98-c5ec05ed823d"
2887 "name": "LinkMonitorModel_Schemas"
2892 "name": "LinkMonitorModel_Schemas"
2894 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Schemas:0.0.1\"",
2895 "UUID": "fa5f9b8f-796c-3c70-84e9-5140c958c4bb"
2900 "name": "LinkMonitorModel_Tasks"
2905 "name": "LinkMonitorModel_Tasks"
2907 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Tasks:0.0.1\"",
2908 "UUID": "eec592f7-69d5-39a9-981a-e552f787ed01"
2913 "name": "LinkMonitorPolicy"
2918 "name": "LinkMonitorPolicy"
2920 "description": "Generated description for concept referred to by key \"LinkMonitorPolicy:0.0.1\"",
2921 "UUID": "6c5e410f-489a-46ff-964e-982ce6e8b6d0"
2926 "name": "MessageSchema"
2931 "name": "MessageSchema"
2933 "description": "A schema for messages from apex",
2934 "UUID": "ac4b34ac-39d6-3393-a267-8d5b84854018"
2939 "name": "NoPolicyDefinedTask"
2944 "name": "NoPolicyDefinedTask"
2946 "description": "This task sends a message to the output when an event is received for which no policy has been defined.",
2947 "UUID": "d48b619e-d00d-4008-b884-02d76ea4350b"
2952 "name": "OduIdSchema"
2957 "name": "OduIdSchema"
2959 "description": "A schema for O-DU-ID",
2960 "UUID": "50662174-a88b-3cbd-91bd-8e91b40b2660"
2965 "name": "OruIdSchema"
2970 "name": "OruIdSchema"
2972 "description": "A schema for O-RU-ID",
2973 "UUID": "54daf32b-015f-39cd-8530-a1175c5553e9"
2981 "name": "LinkMonitorModel_Schemas"
2988 "name": "LinkFailureInputSchema"
2991 "schemaDefinition": "{
2992 \"type\": \"record\",
2993 \"name\": \"Link_Failure_Input\",
2996 \"name\": \"event\",
2998 \"type\": \"record\",
2999 \"name\": \"Event_Type\",
3002 \"name\": \"commonEventHeader\",
3004 \"type\": \"record\",
3005 \"name\": \"Common_Event_Header_Type\",
3008 \"name\": \"domain\",
3009 \"type\": \"string\"
3012 \"name\": \"eventId\",
3013 \"type\": \"string\"
3016 \"name\": \"eventName\",
3017 \"type\": \"string\"
3020 \"name\": \"eventType\",
3021 \"type\": \"string\"
3024 \"name\": \"sequence\",
3028 \"name\": \"priority\",
3029 \"type\": \"string\"
3032 \"name\": \"reportingEntityId\",
3033 \"type\": \"string\"
3036 \"name\": \"reportingEntityName\",
3037 \"type\": \"string\"
3040 \"name\": \"sourceId\",
3041 \"type\": \"string\"
3044 \"name\": \"sourceName\",
3045 \"type\": \"string\"
3048 \"name\": \"startEpochMicrosec\",
3049 \"type\": \"string\"
3052 \"name\": \"lastEpochMicrosec\",
3053 \"type\": \"string\"
3056 \"name\": \"nfNamingCode\",
3057 \"type\": \"string\"
3060 \"name\": \"nfVendorName\",
3061 \"type\": \"string\"
3064 \"name\": \"timeZoneOffset\",
3065 \"type\": \"string\"
3068 \"name\": \"version\",
3069 \"type\": \"string\"
3072 \"name\": \"vesEventListenerVersion\",
3073 \"type\": \"string\"
3079 \"name\": \"faultFields\",
3081 \"type\": \"record\",
3082 \"name\": \"Fault_Fields_Type\",
3085 \"name\": \"faultFieldsVersion\",
3086 \"type\": \"string\"
3089 \"name\": \"alarmCondition\",
3090 \"type\": \"string\"
3093 \"name\": \"alarmInterfaceA\",
3094 \"type\": \"string\"
3097 \"name\": \"eventSourceType\",
3098 \"type\": \"string\"
3101 \"name\": \"specificProblem\",
3102 \"type\": \"string\"
3105 \"name\": \"eventSeverity\",
3106 \"type\": \"string\"
3109 \"name\": \"vfStatus\",
3110 \"type\": \"string\"
3113 \"name\": \"alarmAdditionalInformation\",
3115 \"type\": \"record\",
3116 \"name\": \"Alarm_Additional_Information_Type\",
3119 \"name\": \"eventTime\",
3120 \"type\": \"string\"
3123 \"name\": \"equipType\",
3124 \"type\": \"string\"
3127 \"name\": \"vendor\",
3128 \"type\": \"string\"
3131 \"name\": \"model\",
3132 \"type\": \"string\"
3147 "name": "LinkFailureInputSchema"
3149 "schemaFlavour": "Avro"
3154 "name": "LinkFailureOutputSchema"
3157 "schemaDefinition": "{
3158 \"name\": \"Link_Failure_Output\",
3159 \"type\": \"record\",
3162 \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\",
3164 \"type\": \"array\",
3166 \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio_record\",
3167 \"type\": \"record\",
3171 \"type\": \"string\"
3174 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\",
3178 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\",
3180 \"type\": \"array\",
3182 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members_record\",
3183 \"type\": \"record\",
3186 \"name\": \"mobile_DasH_country_DasH_code\",
3187 \"type\": \"string\"
3190 \"name\": \"mobile_DasH_network_DasH_code\",
3191 \"type\": \"string\"
3194 \"name\": \"slice_DasH_differentiator\",
3198 \"name\": \"slice_DasH_service_DasH_type\",
3206 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\",
3210 \"name\": \"user_DasH_label\",
3211 \"type\": \"string\"
3214 \"name\": \"resource_DasH_type\",
3215 \"type\": \"string\"
3218 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\",
3222 \"name\": \"administrative_DasH_state\",
3223 \"type\": \"string\"
3233 "name": "LinkFailureOutputSchema"
3235 "schemaFlavour": "Avro"
3240 "name": "MessageSchema"
3243 "schemaDefinition": "java.lang.String",
3246 "name": "MessageSchema"
3248 "schemaFlavour": "Java"
3253 "name": "OduIdSchema"
3256 "schemaDefinition": "java.lang.String",
3259 "name": "OduIdSchema"
3261 "schemaFlavour": "Java"
3266 "name": "OruIdSchema"
3269 "schemaDefinition": "java.lang.String",
3272 "name": "OruIdSchema"
3274 "schemaFlavour": "Java"
3282 "name": "LinkMonitorModel_Tasks"
3289 "name": "CreateLinkClearedOutfieldsTask"
3297 "name": "CreateLinkClearedOutfieldsTask"
3302 * ============LICENSE_START=======================================================
3303 * Copyright (C) 2021 Nordix Foundation.
3304 * ================================================================================
3305 * Licensed under the Apache License, Version 2.0 (the \"License\");
3306 * you may not use this file except in compliance with the License.
3307 * You may obtain a copy of the License at
3309 * http://www.apache.org/licenses/LICENSE-2.0
3311 * Unless required by applicable law or agreed to in writing, software
3312 * distributed under the License is distributed on an \"AS IS\" BASIS,
3313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3314 * See the License for the specific language governing permissions and
3315 * limitations under the License.
3317 * SPDX-License-Identifier: Apache-2.0
3318 * ============LICENSE_END=========================================================
3321 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3323 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
3324 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
3326 executor.outFields.put(\"OruId\", oruId);
3328 executor.logger.info(executor.outFields);
3331 "logicFlavour": "JAVASCRIPT"
3336 "key": "LinkFailureInput",
3339 "key": "LinkFailureInput",
3342 "name": "LinkFailureInputSchema"
3356 "name": "OruIdSchema"
3361 "contextAlbumReference": []
3366 "name": "CreateLinkFailureOutfieldsTask"
3374 "name": "CreateLinkFailureOutfieldsTask"
3379 * ============LICENSE_START=======================================================
3380 * Copyright (C) 2021 Nordix Foundation.
3381 * ================================================================================
3382 * Licensed under the Apache License, Version 2.0 (the \"License\");
3383 * you may not use this file except in compliance with the License.
3384 * You may obtain a copy of the License at
3386 * http://www.apache.org/licenses/LICENSE-2.0
3388 * Unless required by applicable law or agreed to in writing, software
3389 * distributed under the License is distributed on an \"AS IS\" BASIS,
3390 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3391 * See the License for the specific language governing permissions and
3392 * limitations under the License.
3394 * SPDX-License-Identifier: Apache-2.0
3395 * ============LICENSE_END=========================================================
3398 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3400 var returnValue = true;
3401 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
3402 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
3403 var oruOduMap = JSON.parse(executor.parameters.get(\"ORU-ODU-Map\"));
3405 if (oruId in oruOduMap) {
3406 var oduId = oruOduMap[oruId];
3407 executor.outFields.put(\"OruId\", oruId);
3408 executor.outFields.put(\"OduId\", oduId);
3409 executor.logger.info(executor.outFields);
3411 executor.message = \"No O-RU found in the config with this ID: \" + oruId;
3412 returnValue = false;
3416 "logicFlavour": "JAVASCRIPT"
3421 "key": "LinkFailureInput",
3424 "key": "LinkFailureInput",
3427 "name": "LinkFailureInputSchema"
3441 "name": "OduIdSchema"
3451 "name": "OruIdSchema"
3456 "contextAlbumReference": []
3461 "name": "LinkClearedTask"
3469 "name": "LinkClearedTask"
3474 * ============LICENSE_START=======================================================
3475 * Copyright (C) 2021 Nordix Foundation.
3476 * ================================================================================
3477 * Licensed under the Apache License, Version 2.0 (the \"License\");
3478 * you may not use this file except in compliance with the License.
3479 * You may obtain a copy of the License at
3481 * http://www.apache.org/licenses/LICENSE-2.0
3483 * Unless required by applicable law or agreed to in writing, software
3484 * distributed under the License is distributed on an \"AS IS\" BASIS,
3485 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3486 * See the License for the specific language governing permissions and
3487 * limitations under the License.
3489 * SPDX-License-Identifier: Apache-2.0
3490 * ============LICENSE_END=========================================================
3493 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3495 var oruId = executor.inFields.get(\"OruId\");
3497 executor.outFields.put(\"message\", \"CLEARED link failure for O-RU: \" + oruId);
3499 executor.logger.info(executor.outFields);
3502 "logicFlavour": "JAVASCRIPT"
3513 "name": "OruIdSchema"
3527 "name": "MessageSchema"
3532 "contextAlbumReference": []
3537 "name": "LinkFailureTask"
3545 "name": "LinkFailureTask"
3550 * ============LICENSE_START=======================================================
3551 * Copyright (C) 2021 Nordix Foundation.
3552 * ================================================================================
3553 * Licensed under the Apache License, Version 2.0 (the \"License\");
3554 * you may not use this file except in compliance with the License.
3555 * You may obtain a copy of the License at
3557 * http://www.apache.org/licenses/LICENSE-2.0
3559 * Unless required by applicable law or agreed to in writing, software
3560 * distributed under the License is distributed on an \"AS IS\" BASIS,
3561 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3562 * See the License for the specific language governing permissions and
3563 * limitations under the License.
3565 * SPDX-License-Identifier: Apache-2.0
3566 * ============LICENSE_END=========================================================
3569 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3571 var linkFailureOutput = executor.subject.getOutFieldSchemaHelper(\"LinkFailureOutput\").createNewInstance();
3573 var oruId = executor.inFields.get(\"OruId\");
3574 var oduId = executor.inFields.get(\"OduId\");
3576 var unlockMessageArray = new java.util.ArrayList();
3577 for (var i = 0; i < 1; i++) {
3578 unlockMessageArray.add({
3579 \"id\":\"rrm-pol-2\",
3580 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\":25,
3581 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\":
3584 \"mobile_DasH_country_DasH_code\":\"310\",
3585 \"mobile_DasH_network_DasH_code\":\"150\",
3586 \"slice_DasH_differentiator\":1,
3587 \"slice_DasH_service_DasH_type\":1
3590 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\":15,
3591 \"user_DasH_label\":\"rrm-pol-2\",
3592 \"resource_DasH_type\":\"prb\",
3593 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\":20,
3594 \"administrative_DasH_state\":\"unlocked\"
3598 linkFailureOutput.put(\"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\", unlockMessageArray);
3599 executor.outFields.put(\"LinkFailureOutput\", linkFailureOutput.toString());
3601 executor.getExecutionProperties().setProperty(\"OduId\", oduId);
3602 executor.getExecutionProperties().setProperty(\"OruId\", oruId);
3604 executor.logger.info(executor.outFields);
3607 "logicFlavour": "JAVASCRIPT"
3618 "name": "OduIdSchema"
3628 "name": "OruIdSchema"
3636 "key": "LinkFailureOutput",
3639 "key": "LinkFailureOutput",
3642 "name": "LinkFailureOutputSchema"
3647 "contextAlbumReference": []
3652 "name": "NoPolicyDefinedTask"
3660 "name": "NoPolicyDefinedTask"
3665 * ============LICENSE_START=======================================================
3666 * Copyright (C) 2021 Nordix Foundation.
3667 * ================================================================================
3668 * Licensed under the Apache License, Version 2.0 (the \"License\");
3669 * you may not use this file except in compliance with the License.
3670 * You may obtain a copy of the License at
3672 * http://www.apache.org/licenses/LICENSE-2.0
3674 * Unless required by applicable law or agreed to in writing, software
3675 * distributed under the License is distributed on an \"AS IS\" BASIS,
3676 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3677 * See the License for the specific language governing permissions and
3678 * limitations under the License.
3680 * SPDX-License-Identifier: Apache-2.0
3681 * ============LICENSE_END=========================================================
3684 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
3686 executor.outFields.put(\"message\", \"No policy defined for this event\");
3688 executor.logger.info(executor.outFields);
3691 "logicFlavour": "JAVASCRIPT"
3696 "key": "LinkFailureInput",
3699 "key": "LinkFailureInput",
3702 "name": "LinkFailureInputSchema"
3716 "name": "MessageSchema"
3721 "contextAlbumReference": []
3731 "name": "LinkMonitorApexEngine",
3732 "engineParameters": {
3735 "key": "ORU-ODU-Map",
3737 \"o-ru-11211\": \"o-du-1121\",
3738 \"o-ru-11223\": \"o-du-1122\",
3739 \"o-ru-11222\": \"o-du-1122\",
3740 \"o-ru-11221\": \"o-du-1122\"
3743 "contextParameters": {
3744 "schemaParameters": {
3746 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
3749 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters"
3751 "executorParameters": {
3753 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
3757 "deploymentPort": 12345
3761 "policy-id": "operational.apex.linkmonitor",
3762 "policy-version": "1.0.0"
3764 "description": null,
3766 "type_version": "1.0.0",
3767 "defined_name": "operational.apex.linkmonitor",
3768 "defined_version": "1.0.0",
3769 "type": "onap.policies.controlloop.operational.common.Apex",
3770 "name": "operational.apex.linkmonitor"
3773 "description": null,
3775 "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition": {
3776 "type_identifier": {
3778 "name": "org.onap.policy.clamp.acm.AutomationComposition"
3782 "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition"
3784 "derived_from": null,
3787 "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition"
3793 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement"
3795 "provider": "Ericsson"
3798 "description": "Automation composition for Hello World",
3799 "requirements": null,
3801 "type_version": "1.0.1",
3802 "capabilities": null,
3803 "defined_name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition",
3804 "defined_version": "1.2.3",
3805 "type": "org.onap.policy.clamp.acm.AutomationComposition",
3806 "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition"
3808 "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement": {
3809 "type_identifier": {
3811 "name": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement"
3815 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement"
3817 "derived_from": null,
3820 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement"
3823 "participantType": {
3825 "name": "org.onap.policy.clamp.acm.PolicyParticipant"
3829 "name": "onap.policies.operational.pm-subscription-handler"
3833 "name": "org.onap.PM_Policy"
3835 "provider": "Ericsson",
3837 "get_input": "pmsh_operational_policy"
3841 "description": "Automation composition element for the operational policy for Performance Management Subscription Handling",
3842 "requirements": null,
3844 "type_version": "1.0.1",
3845 "capabilities": null,
3846 "defined_name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement",
3847 "defined_version": "1.2.3",
3848 "type": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement",
3849 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement"
3851 "org.onap.policy.clamp.acm.PolicyParticipant": {
3852 "type_identifier": {
3854 "name": "org.onap.policy.clamp.acm.Participant"
3858 "name": "org.onap.policy.clamp.acm.PolicyParticipant"
3860 "derived_from": null,
3863 "name": "org.onap.policy.clamp.acm.PolicyParticipant"
3869 "description": "Participant for DCAE microservices",
3870 "requirements": null,
3872 "type_version": "1.0.1",
3873 "capabilities": null,
3874 "defined_name": "org.onap.policy.clamp.acm.PolicyParticipant",
3875 "defined_version": "2.3.1",
3876 "type": "org.onap.policy.clamp.acm.Participant",
3877 "name": "org.onap.policy.clamp.acm.PolicyParticipant"
3881 "pmsh_operational_policy": {
3883 "type_version": "0.0.0",
3884 "type": "onap.datatypes.ToscaConceptIdentifier",
3885 "name": "pmsh_operational_policy"
3890 "onap.policies.controlloop.operational.Common": {
3893 "name": "onap.policies.controlloop.operational.Common"
3895 "derived_from": "tosca.policies.Root",
3901 "entry_schema": null,
3902 "constraints": null,
3903 "description": "Whether an abatement event message will be expected for the control loop from DCAE.",
3904 "type_version": "0.0.0",
3907 "name": "abatement",
3908 "default_value": false
3915 "constraints": null,
3916 "description": null,
3917 "type_version": "0.0.0",
3918 "type": "onap.datatype.controlloop.Operation",
3921 "constraints": null,
3922 "description": "List of operations to be performed when Control Loop is triggered.",
3923 "type_version": "0.0.0",
3926 "name": "operations",
3927 "default_value": null
3933 "entry_schema": null,
3934 "constraints": null,
3935 "description": "Overall timeout for executing all the operations. This timeout should equal or exceed the total
3936 timeout for each operation listed.
3938 "type_version": "0.0.0",
3942 "default_value": null
3948 "entry_schema": null,
3949 "constraints": null,
3950 "description": "The unique control loop id.",
3951 "type_version": "0.0.0",
3955 "default_value": null
3961 "entry_schema": null,
3962 "constraints": null,
3963 "description": "Initial operation to execute upon receiving an Onset event message for the Control Loop.",
3964 "type_version": "0.0.0",
3968 "default_value": null
3972 "description": "Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
3973 Policy Types. This does NOT support the legacy Policy YAML policy type.
3976 "type_version": null,
3977 "defined_name": "onap.policies.controlloop.operational.Common",
3978 "defined_version": "1.0.0",
3980 "name": "onap.policies.controlloop.operational.Common"
3982 "onap.policies.controlloop.operational.common.Apex": {
3985 "name": "onap.policies.controlloop.operational.common.Apex"
3987 "derived_from": "onap.policies.controlloop.operational.Common",
3993 "entry_schema": null,
3994 "constraints": null,
3995 "description": "Name/value pairs of properties to be set for APEX if needed.",
3996 "type_version": "0.0.0",
3999 "name": "javaProperties",
4000 "default_value": null
4002 "eventInputParameters": {
4006 "entry_schema": null,
4007 "constraints": null,
4008 "description": "The event input parameters.",
4009 "type_version": "0.0.0",
4012 "name": "eventInputParameters",
4013 "default_value": null
4015 "eventOutputParameters": {
4019 "entry_schema": null,
4020 "constraints": null,
4021 "description": "The event output parameters.",
4022 "type_version": "0.0.0",
4025 "name": "eventOutputParameters",
4026 "default_value": null
4028 "engineServiceParameters": {
4032 "entry_schema": null,
4033 "constraints": null,
4034 "description": "The engine parameters like name, instanceCount, policy implementation, parameters etc.",
4035 "type_version": "0.0.0",
4038 "name": "engineServiceParameters",
4039 "default_value": null
4043 "description": "Operational policies for Apex PDP",
4045 "type_version": null,
4046 "defined_name": "onap.policies.controlloop.operational.common.Apex",
4047 "defined_version": "1.0.0",
4049 "name": "onap.policies.controlloop.operational.common.Apex"
4052 "tosca_definitions_version": "tosca_simple_yaml_1_3",
4053 "name": "apex_usecase",
4055 "org.onap.policy.clamp.acm.AutomationComposition": {
4058 "name": "org.onap.policy.clamp.acm.AutomationComposition"
4060 "derived_from": "tosca.nodetypes.Root",
4069 "constraints": null,
4070 "description": null,
4071 "type_version": "0.0.0",
4072 "type": "onap.datatypes.ToscaConceptIdentifier",
4075 "constraints": null,
4076 "description": "Specifies a list of automation composition element definitions that make up this automation composition definition",
4077 "type_version": "0.0.0",
4081 "default_value": null
4089 "entry_schema": null,
4090 "constraints": null,
4091 "description": "Specifies the organization that provides the automation composition element",
4092 "type_version": "0.0.0",
4096 "default_value": null
4100 "description": null,
4101 "requirements": null,
4103 "type_version": null,
4104 "defined_name": "org.onap.policy.clamp.acm.AutomationComposition",
4105 "defined_version": "1.0.1",
4107 "name": "org.onap.policy.clamp.acm.AutomationComposition"
4109 "org.onap.policy.clamp.acm.AutomationCompositionElement": {
4112 "name": "org.onap.policy.clamp.acm.AutomationCompositionElement"
4114 "derived_from": "tosca.nodetypes.Root",
4116 "runningToPassiveTimeout": {
4122 "entry_schema": null,
4125 "valid_values": null,
4126 "greater_or_equal": "0",
4128 "greater_than": null,
4129 "range_values": null,
4131 "less_or_equal": null
4133 "description": "The maximum time in seconds to wait for a state chage from running to passive",
4134 "type_version": "0.0.0",
4137 "name": "runningToPassiveTimeout",
4140 "participantType": {
4146 "entry_schema": null,
4147 "constraints": null,
4148 "description": "The identity of the participant type that hosts this type of Automation Composition Element",
4149 "type_version": "0.0.0",
4151 "type": "onap.datatypes.ToscaConceptIdentifier",
4152 "name": "participantType",
4153 "default_value": null
4161 "entry_schema": null,
4164 "valid_values": null,
4165 "greater_or_equal": "0",
4167 "greater_than": null,
4168 "range_values": null,
4170 "less_or_equal": null
4172 "description": "A value indicating the start phase in which this automation composition element will be started, the first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped in reverse start phase order. Automation Composition Elements with the same start phase are started and stopped simultaneously",
4173 "type_version": "0.0.0",
4176 "name": "startPhase",
4177 "default_value": null
4179 "passiveToUninitializedTimeout": {
4185 "entry_schema": null,
4188 "valid_values": null,
4189 "greater_or_equal": "0",
4191 "greater_than": null,
4192 "range_values": null,
4194 "less_or_equal": null
4196 "description": "The maximum time in seconds to wait for a state chage from passive to uninitialized",
4197 "type_version": "0.0.0",
4200 "name": "passiveToUninitializedTimeout",
4203 "uninitializedToPassiveTimeout": {
4209 "entry_schema": null,
4212 "valid_values": null,
4213 "greater_or_equal": "0",
4215 "greater_than": null,
4216 "range_values": null,
4218 "less_or_equal": null
4220 "description": "The maximum time in seconds to wait for a state chage from uninitialized to passive",
4221 "type_version": "0.0.0",
4224 "name": "uninitializedToPassiveTimeout",
4233 "entry_schema": null,
4234 "constraints": null,
4235 "description": null,
4236 "type_version": "0.0.0",
4238 "type": "onap.datatypes.ToscaConceptIdentifier",
4239 "name": "participant_id",
4240 "default_value": null
4248 "entry_schema": null,
4249 "constraints": null,
4250 "description": "Specifies the organization that provides the automation composition element",
4251 "type_version": "0.0.0",
4255 "default_value": null
4257 "passiveToRunningTimeout": {
4263 "entry_schema": null,
4266 "valid_values": null,
4267 "greater_or_equal": "0",
4269 "greater_than": null,
4270 "range_values": null,
4272 "less_or_equal": null
4274 "description": "The maximum time in seconds to wait for a state chage from passive to running",
4275 "type_version": "0.0.0",
4278 "name": "passiveToRunningTimeout",
4283 "description": null,
4284 "requirements": null,
4286 "type_version": null,
4287 "defined_name": "org.onap.policy.clamp.acm.AutomationCompositionElement",
4288 "defined_version": "1.0.1",
4290 "name": "org.onap.policy.clamp.acm.AutomationCompositionElement"
4292 "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement": {
4295 "name": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement"
4297 "derived_from": "org.onap.policy.clamp.acm.AutomationCompositionElement",
4303 "entry_schema": null,
4304 "constraints": null,
4305 "description": null,
4306 "type_version": "0.0.0",
4308 "type": "onap.datatypes.ToscaConceptIdentifier",
4309 "name": "policy_type_id",
4310 "default_value": null
4316 "entry_schema": null,
4317 "constraints": null,
4318 "description": null,
4319 "type_version": "0.0.0",
4321 "type": "onap.datatypes.ToscaConceptIdentifier",
4322 "name": "policy_id",
4323 "default_value": null
4327 "description": null,
4328 "requirements": null,
4330 "type_version": null,
4331 "defined_name": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement",
4332 "defined_version": "1.0.1",
4334 "name": "org.onap.policy.clamp.acm.PolicyAutomationCompositionElement"
4336 "org.onap.policy.clamp.acm.Participant": {
4339 "name": "org.onap.policy.clamp.acm.Participant"
4341 "derived_from": "tosca.nodetypes.Root",
4347 "entry_schema": null,
4348 "constraints": null,
4349 "description": null,
4350 "type_version": "0.0.0",
4354 "default_value": null
4358 "description": null,
4359 "requirements": null,
4361 "type_version": null,
4362 "defined_name": "org.onap.policy.clamp.acm.Participant",
4363 "defined_version": "1.0.1",
4365 "name": "org.onap.policy.clamp.acm.Participant"