3 "onap.datatype.controlloop.Target": {
4 "derived_from": "tosca.datatypes.Root",
11 "VNF","VM","VFMODULE","PNF"]
13 "description": "Category for the target type",
19 "clamp_possible_values": "ClampExecution:CSAR_RESOURCES"
24 "description": "Map of values that identify the resource. If none are provided, it is assumed that the
25 entity that generated the ONSET event will be the target.
30 "description": "Definition for a entity in A&AI to perform a control loop operation on"
32 "onap.datatypes.ToscaConceptIdentifier": {
33 "derived_from": "tosca.datatypes.Root",
45 "onap.datatype.controlloop.Operation": {
46 "derived_from": "tosca.datatypes.Root",
50 "default": "final_failure_guard",
51 "description": "Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.",
57 "description": "The number of retries the actor should attempt to perform the operation.",
62 "default": "final_success",
63 "description": "Points to the operation to invoke on success. A value of \"final_success\" indicates and end to the operation.",
68 "description": "A user-friendly description of the intent for the operation",
73 "default": "final_failure_retries",
74 "description": "Points to the operation to invoke when the current operation has exceeded its max retries.",
79 "description": "The amount of time for the actor to perform the operation.",
84 "default": "final_failure",
85 "description": "Points to the operation to invoke on Actor operation failure.",
90 "description": "Unique identifier for the operation",
95 "default": "final_failure_timeout",
96 "description": "Points to the operation to invoke when the time out for the operation occurs.",
99 "failure_exception": {
101 "default": "final_failure_exception",
102 "description": "Points to the operation to invoke when the current operation causes an exception.",
107 "description": "The definition of the operation to be performed.",
108 "type": "onap.datatype.controlloop.Actor"
111 "description": "An operation supported by an actor"
113 "onap.datatype.controlloop.Actor": {
114 "derived_from": "tosca.datatypes.Root",
119 "clamp_possible_values": "ClampExecution:CDS/payload"
124 "description": "Name/value pairs of payload information passed by Policy to the actor",
129 "description": "The resource the operation should be performed on.",
130 "type": "onap.datatype.controlloop.Target"
135 "clamp_possible_values": "Dictionary:DefaultOperations,ClampExecution:CDS/operation"
137 "description": "The operation the actor is performing.",
143 "clamp_possible_values": "Dictionary:DefaultActors,ClampExecution:CDS/actor"
145 "description": "The actor performing the operation.",
149 "description": "An actor/operation/target definition"
152 "topology_template": {
155 "operational.apex.linkmonitor": {
157 "eventInputParameters": {
159 "carrierTechnologyParameters": {
161 "url": "http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT/{{dmaapGroup}}/{{dmaapUser}}?timeout=15000&limit=100"
163 "carrierTechnology": "RESTCLIENT",
164 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
166 "eventName": "LinkFailureInputEvent",
167 "eventProtocolParameters": {
169 "versionAlias": "version",
170 "pojoField": "LinkFailureInput"
172 "eventProtocol": "JSON"
176 "eventOutputParameters": {
178 "eventNameFilter": "LinkFailureOutputEvent",
179 "carrierTechnologyParameters": {
181 "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",
185 "Authorization","Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="]]
187 "carrierTechnology": "RESTCLIENT",
188 "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters"
190 "eventProtocolParameters": {
192 "pojoField": "LinkFailureOutput"
194 "eventProtocol": "JSON"
198 "eventNameFilter": "ApexMessageOutputEvent",
199 "carrierTechnologyParameters": {
203 "carrierTechnology": "FILE"
205 "eventProtocolParameters": {
207 "pojoField": "message"
209 "eventProtocol": "JSON"
213 "engineServiceParameters": {
214 "policy_type_impl": {
218 "name": "LinkMonitorModel"
223 "name": "LinkMonitorModel_Policies"
230 "name": "LinkMonitorPolicy"
233 "template": "Freestyle",
236 "name": "LinkMonitorPolicy"
241 "key": "LinkClearedState",
245 "name": "LinkClearedTask"
250 "key": "LinkClearedLogic_Output_Direct",
253 "parentKeyName": "LinkMonitorPolicy",
254 "parentKeyVersion": "0.0.1",
255 "parentLocalName": "LinkClearedState",
256 "localName": "LinkClearedLogic_Output_Direct"
260 "name": "ApexMessageOutputEvent"
263 "parentKeyName": "NULL",
264 "parentKeyVersion": "0.0.0",
265 "parentLocalName": "NULL",
276 "name": "LinkClearedTask"
280 "parentKeyName": "LinkMonitorPolicy",
281 "parentKeyVersion": "0.0.1",
282 "parentLocalName": "LinkClearedState",
283 "localName": "LinkClearedTask"
286 "parentKeyName": "LinkMonitorPolicy",
287 "parentKeyVersion": "0.0.1",
288 "parentLocalName": "LinkClearedState",
289 "localName": "LinkClearedLogic_Output_Direct"
291 "outputType": "DIRECT"
296 "parentKeyName": "LinkMonitorPolicy",
297 "parentKeyVersion": "0.0.1",
298 "parentLocalName": "NULL",
299 "localName": "LinkClearedState"
301 "contextAlbumReference": [],
302 "stateFinalizerLogicMap": {
305 "taskSelectionLogic": {
308 "logicFlavour": "UNDEFINED"
312 "name": "CreateLinkClearedOutfieldsEvent"
316 "key": "LinkFailureOrClearedState",
320 "name": "NoPolicyDefinedTask"
325 "key": "CreateLinkClearedOutfieldsLogic_Output_Direct",
328 "parentKeyName": "LinkMonitorPolicy",
329 "parentKeyVersion": "0.0.1",
330 "parentLocalName": "LinkFailureOrClearedState",
331 "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
335 "name": "CreateLinkClearedOutfieldsEvent"
338 "parentKeyName": "LinkMonitorPolicy",
339 "parentKeyVersion": "0.0.1",
340 "parentLocalName": "NULL",
341 "localName": "LinkClearedState"
345 "key": "CreateLinkFailureOutfieldsLogic_Output_Direct",
348 "parentKeyName": "LinkMonitorPolicy",
349 "parentKeyVersion": "0.0.1",
350 "parentLocalName": "LinkFailureOrClearedState",
351 "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
355 "name": "CreateLinkFailureOutfieldsEvent"
358 "parentKeyName": "LinkMonitorPolicy",
359 "parentKeyVersion": "0.0.1",
360 "parentLocalName": "NULL",
361 "localName": "LinkFailureState"
365 "key": "NoPolicyDefinedLogic_Output_Direct",
368 "parentKeyName": "LinkMonitorPolicy",
369 "parentKeyVersion": "0.0.1",
370 "parentLocalName": "LinkFailureOrClearedState",
371 "localName": "NoPolicyDefinedLogic_Output_Direct"
375 "name": "ApexMessageOutputEvent"
378 "parentKeyName": "NULL",
379 "parentKeyVersion": "0.0.0",
380 "parentLocalName": "NULL",
391 "name": "CreateLinkClearedOutfieldsTask"
395 "parentKeyName": "LinkMonitorPolicy",
396 "parentKeyVersion": "0.0.1",
397 "parentLocalName": "LinkFailureOrClearedState",
398 "localName": "CreateLinkClearedOutfieldsTask"
401 "parentKeyName": "LinkMonitorPolicy",
402 "parentKeyVersion": "0.0.1",
403 "parentLocalName": "LinkFailureOrClearedState",
404 "localName": "CreateLinkClearedOutfieldsLogic_Output_Direct"
406 "outputType": "DIRECT"
411 "name": "CreateLinkFailureOutfieldsTask"
415 "parentKeyName": "LinkMonitorPolicy",
416 "parentKeyVersion": "0.0.1",
417 "parentLocalName": "LinkFailureOrClearedState",
418 "localName": "CreateLinkFailureOutfieldsTask"
421 "parentKeyName": "LinkMonitorPolicy",
422 "parentKeyVersion": "0.0.1",
423 "parentLocalName": "LinkFailureOrClearedState",
424 "localName": "CreateLinkFailureOutfieldsLogic_Output_Direct"
426 "outputType": "DIRECT"
431 "name": "NoPolicyDefinedTask"
435 "parentKeyName": "LinkMonitorPolicy",
436 "parentKeyVersion": "0.0.1",
437 "parentLocalName": "LinkFailureOrClearedState",
438 "localName": "NoPolicyDefinedTask"
441 "parentKeyName": "LinkMonitorPolicy",
442 "parentKeyVersion": "0.0.1",
443 "parentLocalName": "LinkFailureOrClearedState",
444 "localName": "NoPolicyDefinedLogic_Output_Direct"
446 "outputType": "DIRECT"
451 "parentKeyName": "LinkMonitorPolicy",
452 "parentKeyVersion": "0.0.1",
453 "parentLocalName": "NULL",
454 "localName": "LinkFailureOrClearedState"
456 "contextAlbumReference": [],
457 "stateFinalizerLogicMap": {
460 "taskSelectionLogic": {
461 "key": "TaskSelectionLogic",
463 * ============LICENSE_START=======================================================
464 * Copyright (C) 2021 Nordix Foundation.
465 * ================================================================================
466 * Licensed under the Apache License, Version 2.0 (the \"License\");
467 * you may not use this file except in compliance with the License.
468 * You may obtain a copy of the License at
470 * http://www.apache.org/licenses/LICENSE-2.0
472 * Unless required by applicable law or agreed to in writing, software
473 * distributed under the License is distributed on an \"AS IS\" BASIS,
474 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
475 * See the License for the specific language governing permissions and
476 * limitations under the License.
478 * SPDX-License-Identifier: Apache-2.0
479 * ============LICENSE_END=========================================================
482 executor.logger.info(\"Task Selection Execution: '\"+executor.subject.id+
483 \"'. InputFields: '\"+executor.inFields+\"'\");
485 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
486 var commonEventHeader = linkFailureInput.get(\"event\").get(\"commonEventHeader\");
487 var domain = commonEventHeader.get(\"domain\");
489 taskFailure = executor.subject.getTaskKey(\"CreateLinkFailureOutfieldsTask\");
490 taskCleared = executor.subject.getTaskKey(\"CreateLinkClearedOutfieldsTask\");
491 taskDefault = executor.subject.getDefaultTaskKey();
493 if (domain == \"fault\") {
494 var faultFields = linkFailureInput.get(\"event\").get(\"faultFields\");
495 var alarmCondition = faultFields.get(\"alarmCondition\");
496 var eventSeverity = faultFields.get(\"eventSeverity\");
497 if (alarmCondition == \"28\" && eventSeverity != \"NORMAL\") {
498 taskFailure.copyTo(executor.selectedTask);
499 } else if (alarmCondition == \"28\" && eventSeverity == \"NORMAL\") {
500 taskCleared.copyTo(executor.selectedTask);
502 taskDefault.copyTo(executor.selectedTask);
505 taskDefault.copyTo(executor.selectedTask);
509 "logicFlavour": "JAVASCRIPT"
513 "name": "LinkFailureInputEvent"
517 "key": "LinkFailureState",
521 "name": "LinkFailureTask"
526 "key": "LinkFailureLogic_Output_Direct",
529 "parentKeyName": "LinkMonitorPolicy",
530 "parentKeyVersion": "0.0.1",
531 "parentLocalName": "LinkFailureState",
532 "localName": "LinkFailureLogic_Output_Direct"
536 "name": "LinkFailureOutputEvent"
539 "parentKeyName": "NULL",
540 "parentKeyVersion": "0.0.0",
541 "parentLocalName": "NULL",
552 "name": "LinkFailureTask"
556 "parentKeyName": "LinkMonitorPolicy",
557 "parentKeyVersion": "0.0.1",
558 "parentLocalName": "LinkFailureState",
559 "localName": "LinkFailureTask"
562 "parentKeyName": "LinkMonitorPolicy",
563 "parentKeyVersion": "0.0.1",
564 "parentLocalName": "LinkFailureState",
565 "localName": "LinkFailureLogic_Output_Direct"
567 "outputType": "DIRECT"
572 "parentKeyName": "LinkMonitorPolicy",
573 "parentKeyVersion": "0.0.1",
574 "parentLocalName": "NULL",
575 "localName": "LinkFailureState"
577 "contextAlbumReference": [],
578 "stateFinalizerLogicMap": {
581 "taskSelectionLogic": {
584 "logicFlavour": "UNDEFINED"
588 "name": "CreateLinkFailureOutfieldsEvent"
593 "firstState": "LinkFailureOrClearedState"
601 "name": "LinkMonitorModel_Events"
608 "name": "ApexMessageOutputEvent"
613 "name": "ApexMessageOutputEvent"
617 "nameSpace": "org.onap.policy.apex.auth.clieditor",
627 "name": "MessageSchema"
636 "name": "CreateLinkClearedOutfieldsEvent"
641 "name": "CreateLinkClearedOutfieldsEvent"
645 "nameSpace": "org.onap.policy.apex.auth.clieditor",
655 "name": "OruIdSchema"
664 "name": "CreateLinkFailureOutfieldsEvent"
669 "name": "CreateLinkFailureOutfieldsEvent"
673 "nameSpace": "org.onap.policy.apex.auth.clieditor",
683 "name": "OduIdSchema"
693 "name": "OruIdSchema"
702 "name": "LinkFailureInputEvent"
707 "name": "LinkFailureInputEvent"
711 "nameSpace": "org.onap.policy.apex.auth.clieditor",
715 "key": "LinkFailureInput",
718 "key": "LinkFailureInput",
721 "name": "LinkFailureInputSchema"
730 "name": "LinkFailureOutputEvent"
735 "name": "LinkFailureOutputEvent"
739 "nameSpace": "org.onap.policy.apex.auth.clieditor",
743 "key": "LinkFailureOutput",
746 "key": "LinkFailureOutput",
749 "name": "LinkFailureOutputSchema"
761 "name": "LinkMonitorModel_KeyInfo"
768 "name": "ApexMessageOutputEvent"
773 "name": "ApexMessageOutputEvent"
775 "description": "Generated description for concept referred to by key \"ApexMessageOutputEvent:0.0.1\"",
776 "UUID": "cca47d74-7754-4a61-b163-ca31f66b157b"
781 "name": "CreateLinkClearedOutfieldsEvent"
786 "name": "CreateLinkClearedOutfieldsEvent"
788 "description": "Generated description for concept referred to by key \"CreateLinkClearedOutfieldsEvent:0.0.1\"",
789 "UUID": "a295d6a3-1b73-387e-abba-b41e9b608802"
794 "name": "CreateLinkClearedOutfieldsTask"
799 "name": "CreateLinkClearedOutfieldsTask"
801 "description": "This task creates the output fields when link failure is cleared.",
802 "UUID": "fd594e88-411d-4a94-b2be-697b3a0d7adf"
807 "name": "CreateLinkFailureOutfieldsEvent"
812 "name": "CreateLinkFailureOutfieldsEvent"
814 "description": "Generated description for concept referred to by key \"CreateLinkFailureOutfieldsEvent:0.0.1\"",
815 "UUID": "02be2b5d-45b7-3c54-ae54-97f2b5c30125"
820 "name": "CreateLinkFailureOutfieldsTask"
825 "name": "CreateLinkFailureOutfieldsTask"
827 "description": "This task the output fields when link failure is detected.",
828 "UUID": "ac3d9842-80af-4a98-951c-bd79a431c613"
833 "name": "LinkClearedTask"
838 "name": "LinkClearedTask"
840 "description": "This task sends a message to the output when link failure is cleared.",
841 "UUID": "eecfde90-896c-4343-8f9c-2603ced94e2d"
846 "name": "LinkFailureInputEvent"
851 "name": "LinkFailureInputEvent"
853 "description": "Generated description for concept referred to by key \"LinkFailureInputEvent:0.0.1\"",
854 "UUID": "c4500941-3f98-4080-a9cc-5b9753ed050b"
859 "name": "LinkFailureInputSchema"
864 "name": "LinkFailureInputSchema"
866 "description": "Generated description for concept referred to by key \"LinkFailureInputSchema:0.0.1\"",
867 "UUID": "3b3974fc-3012-3b02-9f33-c9d8eefe4dc1"
872 "name": "LinkFailureOutputEvent"
877 "name": "LinkFailureOutputEvent"
879 "description": "Generated description for concept referred to by key \"LinkFailureOutputEvent:0.0.1\"",
880 "UUID": "4f04aa98-e917-4f4a-882a-c75ba5a99374"
885 "name": "LinkFailureOutputSchema"
890 "name": "LinkFailureOutputSchema"
892 "description": "Generated description for concept referred to by key \"LinkFailureOutputSchema:0.0.1\"",
893 "UUID": "2d1a7f6e-eb9a-3984-be1f-283d98111b84"
898 "name": "LinkFailureTask"
903 "name": "LinkFailureTask"
905 "description": "This task updates the config for O-RU when link failure is detected.",
906 "UUID": "3351b0f4-cf06-4fa2-8823-edf67bd30223"
911 "name": "LinkMonitorModel"
916 "name": "LinkMonitorModel"
918 "description": "This is the Apex Policy Model for link monitoring.",
919 "UUID": "540226fb-55ee-4f0e-a444-983a0494818e"
924 "name": "LinkMonitorModel_Events"
929 "name": "LinkMonitorModel_Events"
931 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Events:0.0.1\"",
932 "UUID": "27ad3e7e-fe3b-3bd6-9081-718705c2bcea"
937 "name": "LinkMonitorModel_KeyInfo"
942 "name": "LinkMonitorModel_KeyInfo"
944 "description": "Generated description for concept referred to by key \"LinkMonitorModel_KeyInfo:0.0.1\"",
945 "UUID": "ea0b5f58-eefd-358a-9660-840c640bf981"
950 "name": "LinkMonitorModel_Policies"
955 "name": "LinkMonitorModel_Policies"
957 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Policies:0.0.1\"",
958 "UUID": "ee9e0b0f-2b7d-3ab7-9a98-c5ec05ed823d"
963 "name": "LinkMonitorModel_Schemas"
968 "name": "LinkMonitorModel_Schemas"
970 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Schemas:0.0.1\"",
971 "UUID": "fa5f9b8f-796c-3c70-84e9-5140c958c4bb"
976 "name": "LinkMonitorModel_Tasks"
981 "name": "LinkMonitorModel_Tasks"
983 "description": "Generated description for concept referred to by key \"LinkMonitorModel_Tasks:0.0.1\"",
984 "UUID": "eec592f7-69d5-39a9-981a-e552f787ed01"
989 "name": "LinkMonitorPolicy"
994 "name": "LinkMonitorPolicy"
996 "description": "Generated description for concept referred to by key \"LinkMonitorPolicy:0.0.1\"",
997 "UUID": "6c5e410f-489a-46ff-964e-982ce6e8b6d0"
1002 "name": "MessageSchema"
1007 "name": "MessageSchema"
1009 "description": "A schema for messages from apex",
1010 "UUID": "ac4b34ac-39d6-3393-a267-8d5b84854018"
1015 "name": "NoPolicyDefinedTask"
1020 "name": "NoPolicyDefinedTask"
1022 "description": "This task sends a message to the output when an event is received for which no policy has been defined.",
1023 "UUID": "d48b619e-d00d-4008-b884-02d76ea4350b"
1028 "name": "OduIdSchema"
1033 "name": "OduIdSchema"
1035 "description": "A schema for O-DU-ID",
1036 "UUID": "50662174-a88b-3cbd-91bd-8e91b40b2660"
1041 "name": "OruIdSchema"
1046 "name": "OruIdSchema"
1048 "description": "A schema for O-RU-ID",
1049 "UUID": "54daf32b-015f-39cd-8530-a1175c5553e9"
1057 "name": "LinkMonitorModel_Schemas"
1064 "name": "LinkFailureInputSchema"
1067 "schemaDefinition": "{
1068 \"type\": \"record\",
1069 \"name\": \"Link_Failure_Input\",
1072 \"name\": \"event\",
1074 \"type\": \"record\",
1075 \"name\": \"Event_Type\",
1078 \"name\": \"commonEventHeader\",
1080 \"type\": \"record\",
1081 \"name\": \"Common_Event_Header_Type\",
1084 \"name\": \"domain\",
1085 \"type\": \"string\"
1088 \"name\": \"eventId\",
1089 \"type\": \"string\"
1092 \"name\": \"eventName\",
1093 \"type\": \"string\"
1096 \"name\": \"eventType\",
1097 \"type\": \"string\"
1100 \"name\": \"sequence\",
1104 \"name\": \"priority\",
1105 \"type\": \"string\"
1108 \"name\": \"reportingEntityId\",
1109 \"type\": \"string\"
1112 \"name\": \"reportingEntityName\",
1113 \"type\": \"string\"
1116 \"name\": \"sourceId\",
1117 \"type\": \"string\"
1120 \"name\": \"sourceName\",
1121 \"type\": \"string\"
1124 \"name\": \"startEpochMicrosec\",
1125 \"type\": \"string\"
1128 \"name\": \"lastEpochMicrosec\",
1129 \"type\": \"string\"
1132 \"name\": \"nfNamingCode\",
1133 \"type\": \"string\"
1136 \"name\": \"nfVendorName\",
1137 \"type\": \"string\"
1140 \"name\": \"timeZoneOffset\",
1141 \"type\": \"string\"
1144 \"name\": \"version\",
1145 \"type\": \"string\"
1148 \"name\": \"vesEventListenerVersion\",
1149 \"type\": \"string\"
1155 \"name\": \"faultFields\",
1157 \"type\": \"record\",
1158 \"name\": \"Fault_Fields_Type\",
1161 \"name\": \"faultFieldsVersion\",
1162 \"type\": \"string\"
1165 \"name\": \"alarmCondition\",
1166 \"type\": \"string\"
1169 \"name\": \"alarmInterfaceA\",
1170 \"type\": \"string\"
1173 \"name\": \"eventSourceType\",
1174 \"type\": \"string\"
1177 \"name\": \"specificProblem\",
1178 \"type\": \"string\"
1181 \"name\": \"eventSeverity\",
1182 \"type\": \"string\"
1185 \"name\": \"vfStatus\",
1186 \"type\": \"string\"
1189 \"name\": \"alarmAdditionalInformation\",
1191 \"type\": \"record\",
1192 \"name\": \"Alarm_Additional_Information_Type\",
1195 \"name\": \"eventTime\",
1196 \"type\": \"string\"
1199 \"name\": \"equipType\",
1200 \"type\": \"string\"
1203 \"name\": \"vendor\",
1204 \"type\": \"string\"
1207 \"name\": \"model\",
1208 \"type\": \"string\"
1223 "name": "LinkFailureInputSchema"
1225 "schemaFlavour": "Avro"
1230 "name": "LinkFailureOutputSchema"
1233 "schemaDefinition": "{
1234 \"name\": \"Link_Failure_Output\",
1235 \"type\": \"record\",
1238 \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\",
1240 \"type\": \"array\",
1242 \"name\": \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio_record\",
1243 \"type\": \"record\",
1247 \"type\": \"string\"
1250 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\",
1254 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\",
1256 \"type\": \"array\",
1258 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members_record\",
1259 \"type\": \"record\",
1262 \"name\": \"mobile_DasH_country_DasH_code\",
1263 \"type\": \"string\"
1266 \"name\": \"mobile_DasH_network_DasH_code\",
1267 \"type\": \"string\"
1270 \"name\": \"slice_DasH_differentiator\",
1274 \"name\": \"slice_DasH_service_DasH_type\",
1282 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\",
1286 \"name\": \"user_DasH_label\",
1287 \"type\": \"string\"
1290 \"name\": \"resource_DasH_type\",
1291 \"type\": \"string\"
1294 \"name\": \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\",
1298 \"name\": \"administrative_DasH_state\",
1299 \"type\": \"string\"
1309 "name": "LinkFailureOutputSchema"
1311 "schemaFlavour": "Avro"
1316 "name": "MessageSchema"
1319 "schemaDefinition": "java.lang.String",
1322 "name": "MessageSchema"
1324 "schemaFlavour": "Java"
1329 "name": "OduIdSchema"
1332 "schemaDefinition": "java.lang.String",
1335 "name": "OduIdSchema"
1337 "schemaFlavour": "Java"
1342 "name": "OruIdSchema"
1345 "schemaDefinition": "java.lang.String",
1348 "name": "OruIdSchema"
1350 "schemaFlavour": "Java"
1358 "name": "LinkMonitorModel_Tasks"
1365 "name": "CreateLinkClearedOutfieldsTask"
1373 "name": "CreateLinkClearedOutfieldsTask"
1378 * ============LICENSE_START=======================================================
1379 * Copyright (C) 2021 Nordix Foundation.
1380 * ================================================================================
1381 * Licensed under the Apache License, Version 2.0 (the \"License\");
1382 * you may not use this file except in compliance with the License.
1383 * You may obtain a copy of the License at
1385 * http://www.apache.org/licenses/LICENSE-2.0
1387 * Unless required by applicable law or agreed to in writing, software
1388 * distributed under the License is distributed on an \"AS IS\" BASIS,
1389 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1390 * See the License for the specific language governing permissions and
1391 * limitations under the License.
1393 * SPDX-License-Identifier: Apache-2.0
1394 * ============LICENSE_END=========================================================
1397 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1399 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
1400 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
1402 executor.outFields.put(\"OruId\", oruId);
1404 executor.logger.info(executor.outFields);
1407 "logicFlavour": "JAVASCRIPT"
1412 "key": "LinkFailureInput",
1415 "key": "LinkFailureInput",
1418 "name": "LinkFailureInputSchema"
1432 "name": "OruIdSchema"
1437 "contextAlbumReference": []
1442 "name": "CreateLinkFailureOutfieldsTask"
1450 "name": "CreateLinkFailureOutfieldsTask"
1455 * ============LICENSE_START=======================================================
1456 * Copyright (C) 2021 Nordix Foundation.
1457 * ================================================================================
1458 * Licensed under the Apache License, Version 2.0 (the \"License\");
1459 * you may not use this file except in compliance with the License.
1460 * You may obtain a copy of the License at
1462 * http://www.apache.org/licenses/LICENSE-2.0
1464 * Unless required by applicable law or agreed to in writing, software
1465 * distributed under the License is distributed on an \"AS IS\" BASIS,
1466 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1467 * See the License for the specific language governing permissions and
1468 * limitations under the License.
1470 * SPDX-License-Identifier: Apache-2.0
1471 * ============LICENSE_END=========================================================
1474 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1476 var returnValue = true;
1477 var linkFailureInput = executor.inFields.get(\"LinkFailureInput\");
1478 var oruId = linkFailureInput.get(\"event\").get(\"commonEventHeader\").get(\"sourceName\");
1479 var oruOduMap = JSON.parse(executor.parameters.get(\"ORU-ODU-Map\"));
1481 if (oruId in oruOduMap) {
1482 var oduId = oruOduMap[oruId];
1483 executor.outFields.put(\"OruId\", oruId);
1484 executor.outFields.put(\"OduId\", oduId);
1485 executor.logger.info(executor.outFields);
1487 executor.message = \"No O-RU found in the config with this ID: \" + oruId;
1488 returnValue = false;
1492 "logicFlavour": "JAVASCRIPT"
1497 "key": "LinkFailureInput",
1500 "key": "LinkFailureInput",
1503 "name": "LinkFailureInputSchema"
1517 "name": "OduIdSchema"
1527 "name": "OruIdSchema"
1532 "contextAlbumReference": []
1537 "name": "LinkClearedTask"
1545 "name": "LinkClearedTask"
1550 * ============LICENSE_START=======================================================
1551 * Copyright (C) 2021 Nordix Foundation.
1552 * ================================================================================
1553 * Licensed under the Apache License, Version 2.0 (the \"License\");
1554 * you may not use this file except in compliance with the License.
1555 * You may obtain a copy of the License at
1557 * http://www.apache.org/licenses/LICENSE-2.0
1559 * Unless required by applicable law or agreed to in writing, software
1560 * distributed under the License is distributed on an \"AS IS\" BASIS,
1561 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1562 * See the License for the specific language governing permissions and
1563 * limitations under the License.
1565 * SPDX-License-Identifier: Apache-2.0
1566 * ============LICENSE_END=========================================================
1569 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1571 var oruId = executor.inFields.get(\"OruId\");
1573 executor.outFields.put(\"message\", \"CLEARED link failure for O-RU: \" + oruId);
1575 executor.logger.info(executor.outFields);
1578 "logicFlavour": "JAVASCRIPT"
1589 "name": "OruIdSchema"
1603 "name": "MessageSchema"
1608 "contextAlbumReference": []
1613 "name": "LinkFailureTask"
1621 "name": "LinkFailureTask"
1626 * ============LICENSE_START=======================================================
1627 * Copyright (C) 2021 Nordix Foundation.
1628 * ================================================================================
1629 * Licensed under the Apache License, Version 2.0 (the \"License\");
1630 * you may not use this file except in compliance with the License.
1631 * You may obtain a copy of the License at
1633 * http://www.apache.org/licenses/LICENSE-2.0
1635 * Unless required by applicable law or agreed to in writing, software
1636 * distributed under the License is distributed on an \"AS IS\" BASIS,
1637 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1638 * See the License for the specific language governing permissions and
1639 * limitations under the License.
1641 * SPDX-License-Identifier: Apache-2.0
1642 * ============LICENSE_END=========================================================
1645 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1647 var linkFailureOutput = executor.subject.getOutFieldSchemaHelper(\"LinkFailureOutput\").createNewInstance();
1649 var oruId = executor.inFields.get(\"OruId\");
1650 var oduId = executor.inFields.get(\"OduId\");
1652 var unlockMessageArray = new java.util.ArrayList();
1653 for (var i = 0; i < 1; i++) {
1654 unlockMessageArray.add({
1655 \"id\":\"rrm-pol-2\",
1656 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_max_DasH_ratio\":25,
1657 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_members\":
1660 \"mobile_DasH_country_DasH_code\":\"310\",
1661 \"mobile_DasH_network_DasH_code\":\"150\",
1662 \"slice_DasH_differentiator\":1,
1663 \"slice_DasH_service_DasH_type\":1
1666 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_min_DasH_ratio\":15,
1667 \"user_DasH_label\":\"rrm-pol-2\",
1668 \"resource_DasH_type\":\"prb\",
1669 \"radio_DasH_resource_DasH_management_DasH_policy_DasH_dedicated_DasH_ratio\":20,
1670 \"administrative_DasH_state\":\"unlocked\"
1674 linkFailureOutput.put(\"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_radio_DasH_resource_DasH_management_DasH_policy_DasH_ratio\", unlockMessageArray);
1675 executor.outFields.put(\"LinkFailureOutput\", linkFailureOutput.toString());
1677 executor.getExecutionProperties().setProperty(\"OduId\", oduId);
1678 executor.getExecutionProperties().setProperty(\"OruId\", oruId);
1680 executor.logger.info(executor.outFields);
1683 "logicFlavour": "JAVASCRIPT"
1694 "name": "OduIdSchema"
1704 "name": "OruIdSchema"
1712 "key": "LinkFailureOutput",
1715 "key": "LinkFailureOutput",
1718 "name": "LinkFailureOutputSchema"
1723 "contextAlbumReference": []
1728 "name": "NoPolicyDefinedTask"
1736 "name": "NoPolicyDefinedTask"
1741 * ============LICENSE_START=======================================================
1742 * Copyright (C) 2021 Nordix Foundation.
1743 * ================================================================================
1744 * Licensed under the Apache License, Version 2.0 (the \"License\");
1745 * you may not use this file except in compliance with the License.
1746 * You may obtain a copy of the License at
1748 * http://www.apache.org/licenses/LICENSE-2.0
1750 * Unless required by applicable law or agreed to in writing, software
1751 * distributed under the License is distributed on an \"AS IS\" BASIS,
1752 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1753 * See the License for the specific language governing permissions and
1754 * limitations under the License.
1756 * SPDX-License-Identifier: Apache-2.0
1757 * ============LICENSE_END=========================================================
1760 executor.logger.info(\"Task Execution: '\"+executor.subject.id+\"'. Input Fields: '\"+executor.inFields+\"'\");
1762 executor.outFields.put(\"message\", \"No policy defined for this event\");
1764 executor.logger.info(executor.outFields);
1767 "logicFlavour": "JAVASCRIPT"
1772 "key": "LinkFailureInput",
1775 "key": "LinkFailureInput",
1778 "name": "LinkFailureInputSchema"
1792 "name": "MessageSchema"
1797 "contextAlbumReference": []
1807 "name": "LinkMonitorApexEngine",
1808 "engineParameters": {
1811 "key": "ORU-ODU-Map",
1813 \"o-ru-11211\": \"o-du-1121\",
1814 \"o-ru-11223\": \"o-du-1122\",
1815 \"o-ru-11222\": \"o-du-1122\",
1816 \"o-ru-11221\": \"o-du-1122\"
1819 "contextParameters": {
1820 "schemaParameters": {
1822 "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
1825 "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters"
1827 "executorParameters": {
1829 "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"
1833 "deploymentPort": 12345
1837 "policy-id": "operational.apex.linkmonitor",
1838 "policy-version": "1.0.0"
1841 "type_version": "1.0.0",
1842 "type": "onap.policies.controlloop.operational.common.Apex"
1846 "org.onap.domain.linkmonitor.LinkMonitorControlLoopDefinition0": {
1851 "name": "org.onap.domain.linkmonitor.LinkMonitorPolicyControlLoopElement"
1853 "provider": "Ericsson"
1855 "description": "Control loop for Link Monitor",
1857 "type_version": "1.0.0",
1858 "type": "org.onap.policy.clamp.controlloop.ControlLoop"
1860 "org.onap.policy.controlloop.PolicyControlLoopParticipant": {
1864 "description": "Participant for policy framework",
1866 "type_version": "1.0.1",
1867 "type": "org.onap.policy.clamp.controlloop.Participant"
1869 "org.onap.domain.linkmonitor.LinkMonitorPolicyControlLoopElement": {
1871 "participantType": {
1873 "name": "org.onap.policy.controlloop.PolicyControlLoopParticipant"
1877 "name": "onap.policies.controlloop.operational.common.Apex"
1881 "name": "org.onap.PM_Policy"
1883 "pdpGroup": "defaultGroup",
1884 "provider": "Ericsson",
1887 "name": "operational.apex.linkmonitor"
1890 "description": "Control loop element for the Link Monitor",
1892 "type_version": "1.0.1",
1893 "type": "org.onap.policy.clamp.controlloop.PolicyControlLoopElement"
1898 "onap.policies.controlloop.operational.Common": {
1899 "derived_from": "tosca.policies.Root",
1904 "description": "Whether an abatement event message will be expected for the control loop from DCAE.",
1910 "type": "onap.datatype.controlloop.Operation"
1912 "description": "List of operations to be performed when Control Loop is triggered.",
1917 "description": "Overall timeout for executing all the operations. This timeout should equal or exceed the total
1918 timeout for each operation listed.
1924 "description": "The unique control loop id.",
1929 "description": "Initial operation to execute upon receiving an Onset event message for the Control Loop.",
1933 "description": "Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
1934 Policy Types. This does NOT support the legacy Policy YAML policy type.
1937 "name": "onap.policies.controlloop.operational.Common"
1939 "onap.policies.controlloop.operational.common.Apex": {
1940 "derived_from": "onap.policies.controlloop.operational.Common",
1944 "description": "Name/value pairs of properties to be set for APEX if needed.",
1947 "eventInputParameters": {
1949 "description": "The event input parameters.",
1952 "eventOutputParameters": {
1954 "description": "The event output parameters.",
1957 "engineServiceParameters": {
1959 "description": "The engine parameters like name, instanceCount, policy implementation, parameters etc.",
1963 "description": "Operational policies for Apex PDP",
1965 "type_version": "1.0.0",
1966 "name": "onap.policies.controlloop.operational.common.Apex"
1969 "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
1971 "org.onap.policy.clamp.controlloop.ControlLoop": {
1972 "derived_from": "tosca.nodetypes.Root",
1980 "type": "onap.datatypes.ToscaConceptIdentifier"
1982 "description": "Specifies a list of control loop element definitions that make up this control loop definition",
1990 "description": "Specifies the organization that provides the control loop element",
1996 "org.onap.policy.clamp.controlloop.Participant": {
1997 "derived_from": "tosca.nodetypes.Root",
2006 "org.onap.policy.clamp.controlloop.ControlLoopElement": {
2007 "derived_from": "tosca.nodetypes.Root",
2009 "runningToPassiveTimeout": {
2017 "greater_or_equal": 0
2019 "description": "The maximum time in seconds to wait for a state chage from running to passive",
2022 "participantType": {
2027 "description": "The identity of the participant type that hosts this type of Control Loop Element",
2028 "type": "onap.datatypes.ToscaConceptIdentifier"
2037 "greater_or_equal": 0
2039 "description": "A value indicating the start phase in which this control loop element will be started, the first start phase is zero. Control Loop Elements are started in their start_phase order and stopped in reverse start phase order. Control Loop Elements with the same start phase are started and stopped simultaneously",
2042 "passiveToUninitializedTimeout": {
2050 "greater_or_equal": 0
2052 "description": "The maximum time in seconds to wait for a state chage from passive to uninitialized",
2055 "uninitializedToPassiveTimeout": {
2063 "greater_or_equal": 0
2065 "description": "The maximum time in seconds to wait for a state chage from uninitialized to passive",
2073 "type": "onap.datatypes.ToscaConceptIdentifier"
2080 "description": "Specifies the organization that provides the control loop element",
2083 "passiveToRunningTimeout": {
2091 "greater_or_equal": 0
2093 "description": "The maximum time in seconds to wait for a state chage from passive to running",
2099 "org.onap.policy.clamp.controlloop.PolicyControlLoopElement": {
2100 "derived_from": "org.onap.policy.clamp.controlloop.ControlLoopElement",
2104 "type": "onap.datatypes.ToscaConceptIdentifier"
2108 "type": "onap.datatypes.ToscaConceptIdentifier"