Adapt controlloop version of O-RU usecase to use ONAP Istanbul
[nonrtric.git] / test / usecases / oruclosedlooprecovery / apexpolicyversion / LinkMonitor / controlloop-rest-payloads / commission.yaml
1 #  Copyright (C) 2021 Nordix Foundation. All rights reserved.
2 #  ========================================================================
3 #  Licensed under the Apache License, Version 2.0 (the "License");
4 #  you may not use this file except in compliance with the License.
5 #  You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14 #  ============LICENSE_END=================================================
15 #
16 tosca_definitions_version: tosca_simple_yaml_1_1_0
17 data_types:
18   onap.datatypes.ToscaConceptIdentifier:
19     derived_from: tosca.datatypes.Root
20     properties:
21       name:
22         type: string
23         required: true
24       version:
25         type: string
26         required: true
27   onap.datatype.controlloop.Target:
28     derived_from: tosca.datatypes.Root
29     description: Definition for a entity in A&AI to perform a control loop operation on
30     properties:
31       targetType:
32         type: string
33         description: Category for the target type
34         required: true
35         constraints:
36         - valid_values:
37           - VNF
38           - VM
39           - VFMODULE
40           - PNF
41       entityIds:
42         type: map
43         description: |
44           Map of values that identify the resource. If none are provided, it is assumed that the
45           entity that generated the ONSET event will be the target.
46         required: false
47         metadata:
48           clamp_possible_values: ClampExecution:CSAR_RESOURCES
49         entry_schema:
50           type: string
51   onap.datatype.controlloop.Actor:
52     derived_from: tosca.datatypes.Root
53     description: An actor/operation/target definition
54     properties:
55       actor:
56         type: string
57         description: The actor performing the operation.
58         required: true
59         metadata:
60           clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor
61       operation:
62         type: string
63         description: The operation the actor is performing.
64         metadata:
65           clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation
66         required: true
67       target:
68         type: onap.datatype.controlloop.Target
69         description: The resource the operation should be performed on.
70         required: true
71       payload:
72         type: map
73         description: Name/value pairs of payload information passed by Policy to the actor
74         required: false
75         metadata:
76           clamp_possible_values: ClampExecution:CDS/payload
77         entry_schema:
78           type: string
79   onap.datatype.controlloop.Operation:
80     derived_from: tosca.datatypes.Root
81     description: An operation supported by an actor
82     properties:
83       id:
84         type: string
85         description: Unique identifier for the operation
86         required: true
87       description:
88         type: string
89         description: A user-friendly description of the intent for the operation
90         required: false
91       operation:
92         type: onap.datatype.controlloop.Actor
93         description: The definition of the operation to be performed.
94         required: true
95       timeout:
96         type: integer
97         description: The amount of time for the actor to perform the operation.
98         required: true
99       retries:
100         type: integer
101         description: The number of retries the actor should attempt to perform the operation.
102         required: true
103         default: 0
104       success:
105         type: string
106         description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.
107         required: false
108         default: final_success
109       failure:
110         type: string
111         description: Points to the operation to invoke on Actor operation failure.
112         required: false
113         default: final_failure
114       failure_timeout:
115         type: string
116         description: Points to the operation to invoke when the time out for the operation occurs.
117         required: false
118         default: final_failure_timeout
119       failure_retries:
120         type: string
121         description: Points to the operation to invoke when the current operation has exceeded its max retries.
122         required: false
123         default: final_failure_retries
124       failure_exception:
125         type: string
126         description: Points to the operation to invoke when the current operation causes an exception.
127         required: false
128         default: final_failure_exception
129       failure_guard:
130         type: string
131         description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.
132         required: false
133         default: final_failure_guard
134 policy_types:
135   onap.policies.controlloop.operational.Common:
136     derived_from: tosca.policies.Root
137     version: 1.0.0
138     name: onap.policies.controlloop.operational.Common
139     description: |
140       Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
141       Policy Types. This does NOT support the legacy Policy YAML policy type.
142     properties:
143       id:
144         type: string
145         description: The unique control loop id.
146         required: true
147       timeout:
148         type: integer
149         description: |
150           Overall timeout for executing all the operations. This timeout should equal or exceed the total
151           timeout for each operation listed.
152         required: true
153       abatement:
154         type: boolean
155         description: Whether an abatement event message will be expected for the control loop from DCAE.
156         required: true
157         default: false
158       trigger:
159         type: string
160         description: Initial operation to execute upon receiving an Onset event message for the Control Loop.
161         required: true
162       operations:
163         type: list
164         description: List of operations to be performed when Control Loop is triggered.
165         required: true
166         entry_schema:
167           type: onap.datatype.controlloop.Operation
168   onap.policies.controlloop.operational.common.Apex:
169     derived_from: onap.policies.controlloop.operational.Common
170     type_version: 1.0.0
171     version: 1.0.0
172     name: onap.policies.controlloop.operational.common.Apex
173     description: Operational policies for Apex PDP
174     properties:
175       engineServiceParameters:
176         type: string
177         description: The engine parameters like name, instanceCount, policy implementation, parameters etc.
178         required: true
179       eventInputParameters:
180         type: string
181         description: The event input parameters.
182         required: true
183       eventOutputParameters:
184         type: string
185         description: The event output parameters.
186         required: true
187       javaProperties:
188         type: string
189         description: Name/value pairs of properties to be set for APEX if needed.
190         required: false
191 node_types:
192   org.onap.policy.clamp.controlloop.Participant:
193     version: 1.0.1
194     derived_from: tosca.nodetypes.Root
195     properties:
196       provider:
197         type: string
198         requred: false
199   org.onap.policy.clamp.controlloop.ControlLoopElement:
200     version: 1.0.1
201     derived_from: tosca.nodetypes.Root
202     properties:
203       provider:
204         type: string
205         required: false
206         metadata:
207           common: true
208         description: Specifies the organization that provides the control loop element
209       participant_id:
210         type: onap.datatypes.ToscaConceptIdentifier
211         requred: true
212         metadata:
213           common: true
214       participantType:
215         type: onap.datatypes.ToscaConceptIdentifier
216         required: true
217         metadata:
218           common: true
219         description: The identity of the participant type that hosts this type of Control Loop Element
220       startPhase:
221         type: integer
222         required: false
223         constraints:
224           - greater_or_equal: 0
225         metadata:
226           common: true
227         description: A value indicating the start phase in which this control loop element will be started, the
228           first start phase is zero. Control Loop Elements are started in their start_phase order and stopped
229           in reverse start phase order. Control Loop Elements with the same start phase are started and
230           stopped simultaneously
231       uninitializedToPassiveTimeout:
232         type: integer
233         required: false
234         constraints:
235           - greater_or_equal: 0
236         default: 60
237         metadata:
238           common: true
239         description: The maximum time in seconds to wait for a state chage from uninitialized to passive
240       passiveToRunningTimeout:
241         type: integer
242         required: false
243         constraints:
244           - greater_or_equal: 0
245         default: 60
246         metadata:
247           common: true
248         description: The maximum time in seconds to wait for a state chage from passive to running
249       runningToPassiveTimeout:
250         type: integer
251         required: false
252         constraints:
253           - greater_or_equal: 0
254         default: 60
255         metadata:
256           common: true
257         description: The maximum time in seconds to wait for a state chage from running to passive
258       passiveToUninitializedTimeout:
259         type: integer
260         required: false
261         constraints:
262           - greater_or_equal: 0
263         default: 60
264         metadata:
265           common: true
266         description: The maximum time in seconds to wait for a state chage from passive to uninitialized
267   org.onap.policy.clamp.controlloop.ControlLoop:
268     version: 1.0.1
269     derived_from: tosca.nodetypes.Root
270     properties:
271       provider:
272         type: string
273         required: false
274         metadata:
275           common: true
276         description: Specifies the organization that provides the control loop element
277       elements:
278         type: list
279         required: true
280         metadata:
281           common: true
282         entry_schema:
283           type: onap.datatypes.ToscaConceptIdentifier
284         description: Specifies a list of control loop element definitions that make up this control loop definition
285   org.onap.policy.clamp.controlloop.PolicyControlLoopElement:
286     version: 1.0.1
287     derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement
288     properties:
289       policy_type_id:
290         type: onap.datatypes.ToscaConceptIdentifier
291         requred: true
292       policy_id:
293         type: onap.datatypes.ToscaConceptIdentifier
294         requred: false
295 topology_template:
296   node_templates:
297     org.onap.domain.linkmonitor.LinkMonitorPolicyControlLoopElement:
298       version: 1.2.3
299       type: org.onap.policy.clamp.controlloop.PolicyControlLoopElement
300       type_version: 1.0.1
301       description: Control loop element for the Link Monitor
302       properties:
303         provider: Ericsson
304         participant_id:
305           name: org.onap.PM_Policy
306           version: 1.0.0
307         participantType:
308           name: org.onap.policy.controlloop.PolicyControlLoopParticipant
309           version: 2.3.1
310         policy_type_id:
311           name: onap.policies.controlloop.operational.common.Apex
312           version: 1.0.0
313         policy_id:
314           name: operational.apex.linkmonitor
315           version: 1.0.0 
316         pdpGroup: defaultGroup
317     org.onap.domain.linkmonitor.LinkMonitorControlLoopDefinition0:
318       version: 1.2.3
319       type: org.onap.policy.clamp.controlloop.ControlLoop
320       type_version: 1.0.0
321       description: Control loop for Link Monitor
322       properties:
323         provider: Ericsson
324         elements:
325         - name: org.onap.domain.linkmonitor.LinkMonitorPolicyControlLoopElement
326           version: 1.2.3
327     org.onap.policy.controlloop.PolicyControlLoopParticipant:
328       version: 2.3.1
329       type: org.onap.policy.clamp.controlloop.Participant
330       type_version: 1.0.1
331       description: Participant for policy framework
332       properties:
333         provider: ONAP
334   policies:
335   - operational.apex.linkmonitor:
336       type: onap.policies.controlloop.operational.common.Apex
337       type_version: 1.0.0
338       version: 1.0.0
339       metadata:
340         policy-id: operational.apex.linkmonitor
341         policy-version: 1.0.0
342       properties:
343         engineServiceParameters:
344           name: LinkMonitorApexEngine
345           version: 0.0.1
346           id: 101
347           instanceCount: 1
348           deploymentPort: 12345
349           engineParameters:
350             executorParameters:
351               JAVASCRIPT:
352                 parameterClassName: org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters
353             contextParameters:
354               parameterClassName: org.onap.policy.apex.context.parameters.ContextParameters
355               schemaParameters:
356                 Avro:
357                   parameterClassName: org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters
358             taskParameters:
359             - key: ORU-ODU-Map
360               value: |-
361                 {"ERICSSON-O-RU-11220": "HCL-O-DU-1122",
362                                                "ERICSSON-O-RU-11221": "HCL-O-DU-1122",
363                                                "ERICSSON-O-RU-11222": "HCL-O-DU-1122",
364                                                "ERICSSON-O-RU-11223": "HCL-O-DU-1122",
365                                                "ERICSSON-O-RU-11224": "HCL-O-DU-1123",
366                                                "ERICSSON-O-RU-11225": "HCL-O-DU-1123",
367                                                "ERICSSON-O-RU-11226": "HCL-O-DU-1123",
368                                                "ERICSSON-O-RU-11227": "HCL-O-DU-1124",
369                                                "ERICSSON-O-RU-11228": "HCL-O-DU-1125",
370                                                "ERICSSON-O-RU-11229": "HCL-O-DU-1125"}
371           policy_type_impl:
372             apexPolicyModel:
373               key:
374                 name: LinkMonitorModel
375                 version: 0.0.1
376               keyInformation:
377                 key:
378                   name: LinkMonitorModel_KeyInfo
379                   version: 0.0.1
380                 keyInfoMap:
381                   entry:
382                   - key:
383                       name: ApexMessageOutputEvent
384                       version: 0.0.1
385                     value:
386                       key:
387                         name: ApexMessageOutputEvent
388                         version: 0.0.1
389                       UUID: cca47d74-7754-4a61-b163-ca31f66b157b
390                       description: Generated description for concept referred to by
391                         key "ApexMessageOutputEvent:0.0.1"
392                   - key:
393                       name: CreateLinkClearedOutfieldsEvent
394                       version: 0.0.1
395                     value:
396                       key:
397                         name: CreateLinkClearedOutfieldsEvent
398                         version: 0.0.1
399                       UUID: a295d6a3-1b73-387e-abba-b41e9b608802
400                       description: Generated description for concept referred to by
401                         key "CreateLinkClearedOutfieldsEvent:0.0.1"
402                   - key:
403                       name: CreateLinkClearedOutfieldsTask
404                       version: 0.0.1
405                     value:
406                       key:
407                         name: CreateLinkClearedOutfieldsTask
408                         version: 0.0.1
409                       UUID: fd594e88-411d-4a94-b2be-697b3a0d7adf
410                       description: This task creates the output fields when link failure
411                         is cleared.
412                   - key:
413                       name: CreateLinkFailureOutfieldsEvent
414                       version: 0.0.1
415                     value:
416                       key:
417                         name: CreateLinkFailureOutfieldsEvent
418                         version: 0.0.1
419                       UUID: 02be2b5d-45b7-3c54-ae54-97f2b5c30125
420                       description: Generated description for concept referred to by
421                         key "CreateLinkFailureOutfieldsEvent:0.0.1"
422                   - key:
423                       name: CreateLinkFailureOutfieldsTask
424                       version: 0.0.1
425                     value:
426                       key:
427                         name: CreateLinkFailureOutfieldsTask
428                         version: 0.0.1
429                       UUID: ac3d9842-80af-4a98-951c-bd79a431c613
430                       description: This task the output fields when link failure is
431                         detected.
432                   - key:
433                       name: LinkClearedTask
434                       version: 0.0.1
435                     value:
436                       key:
437                         name: LinkClearedTask
438                         version: 0.0.1
439                       UUID: eecfde90-896c-4343-8f9c-2603ced94e2d
440                       description: This task sends a message to the output when link
441                         failure is cleared.
442                   - key:
443                       name: LinkFailureInputEvent
444                       version: 0.0.1
445                     value:
446                       key:
447                         name: LinkFailureInputEvent
448                         version: 0.0.1
449                       UUID: c4500941-3f98-4080-a9cc-5b9753ed050b
450                       description: Generated description for concept referred to by
451                         key "LinkFailureInputEvent:0.0.1"
452                   - key:
453                       name: LinkFailureInputSchema
454                       version: 0.0.1
455                     value:
456                       key:
457                         name: LinkFailureInputSchema
458                         version: 0.0.1
459                       UUID: 3b3974fc-3012-3b02-9f33-c9d8eefe4dc1
460                       description: Generated description for concept referred to by
461                         key "LinkFailureInputSchema:0.0.1"
462                   - key:
463                       name: LinkFailureOutputEvent
464                       version: 0.0.1
465                     value:
466                       key:
467                         name: LinkFailureOutputEvent
468                         version: 0.0.1
469                       UUID: 4f04aa98-e917-4f4a-882a-c75ba5a99374
470                       description: Generated description for concept referred to by
471                         key "LinkFailureOutputEvent:0.0.1"
472                   - key:
473                       name: LinkFailureOutputSchema
474                       version: 0.0.1
475                     value:
476                       key:
477                         name: LinkFailureOutputSchema
478                         version: 0.0.1
479                       UUID: 2d1a7f6e-eb9a-3984-be1f-283d98111b84
480                       description: Generated description for concept referred to by
481                         key "LinkFailureOutputSchema:0.0.1"
482                   - key:
483                       name: LinkFailureTask
484                       version: 0.0.1
485                     value:
486                       key:
487                         name: LinkFailureTask
488                         version: 0.0.1
489                       UUID: 3351b0f4-cf06-4fa2-8823-edf67bd30223
490                       description: This task updates the config for O-RU when link
491                         failure is detected.
492                   - key:
493                       name: LinkMonitorModel
494                       version: 0.0.1
495                     value:
496                       key:
497                         name: LinkMonitorModel
498                         version: 0.0.1
499                       UUID: 540226fb-55ee-4f0e-a444-983a0494818e
500                       description: This is the Apex Policy Model for link monitoring.
501                   - key:
502                       name: LinkMonitorModel_Events
503                       version: 0.0.1
504                     value:
505                       key:
506                         name: LinkMonitorModel_Events
507                         version: 0.0.1
508                       UUID: 27ad3e7e-fe3b-3bd6-9081-718705c2bcea
509                       description: Generated description for concept referred to by
510                         key "LinkMonitorModel_Events:0.0.1"
511                   - key:
512                       name: LinkMonitorModel_KeyInfo
513                       version: 0.0.1
514                     value:
515                       key:
516                         name: LinkMonitorModel_KeyInfo
517                         version: 0.0.1
518                       UUID: ea0b5f58-eefd-358a-9660-840c640bf981
519                       description: Generated description for concept referred to by
520                         key "LinkMonitorModel_KeyInfo:0.0.1"
521                   - key:
522                       name: LinkMonitorModel_Policies
523                       version: 0.0.1
524                     value:
525                       key:
526                         name: LinkMonitorModel_Policies
527                         version: 0.0.1
528                       UUID: ee9e0b0f-2b7d-3ab7-9a98-c5ec05ed823d
529                       description: Generated description for concept referred to by
530                         key "LinkMonitorModel_Policies:0.0.1"
531                   - key:
532                       name: LinkMonitorModel_Schemas
533                       version: 0.0.1
534                     value:
535                       key:
536                         name: LinkMonitorModel_Schemas
537                         version: 0.0.1
538                       UUID: fa5f9b8f-796c-3c70-84e9-5140c958c4bb
539                       description: Generated description for concept referred to by
540                         key "LinkMonitorModel_Schemas:0.0.1"
541                   - key:
542                       name: LinkMonitorModel_Tasks
543                       version: 0.0.1
544                     value:
545                       key:
546                         name: LinkMonitorModel_Tasks
547                         version: 0.0.1
548                       UUID: eec592f7-69d5-39a9-981a-e552f787ed01
549                       description: Generated description for concept referred to by
550                         key "LinkMonitorModel_Tasks:0.0.1"
551                   - key:
552                       name: LinkMonitorPolicy
553                       version: 0.0.1
554                     value:
555                       key:
556                         name: LinkMonitorPolicy
557                         version: 0.0.1
558                       UUID: 6c5e410f-489a-46ff-964e-982ce6e8b6d0
559                       description: Generated description for concept referred to by
560                         key "LinkMonitorPolicy:0.0.1"
561                   - key:
562                       name: MessageSchema
563                       version: 0.0.1
564                     value:
565                       key:
566                         name: MessageSchema
567                         version: 0.0.1
568                       UUID: ac4b34ac-39d6-3393-a267-8d5b84854018
569                       description: A schema for messages from apex
570                   - key:
571                       name: NoPolicyDefinedTask
572                       version: 0.0.1
573                     value:
574                       key:
575                         name: NoPolicyDefinedTask
576                         version: 0.0.1
577                       UUID: d48b619e-d00d-4008-b884-02d76ea4350b
578                       description: This task sends a message to the output when an
579                         event is received for which no policy has been defined.
580                   - key:
581                       name: OduIdSchema
582                       version: 0.0.1
583                     value:
584                       key:
585                         name: OduIdSchema
586                         version: 0.0.1
587                       UUID: 50662174-a88b-3cbd-91bd-8e91b40b2660
588                       description: A schema for O-DU-ID
589                   - key:
590                       name: OruIdSchema
591                       version: 0.0.1
592                     value:
593                       key:
594                         name: OruIdSchema
595                         version: 0.0.1
596                       UUID: 54daf32b-015f-39cd-8530-a1175c5553e9
597                       description: A schema for O-RU-ID
598               policies:
599                 key:
600                   name: LinkMonitorModel_Policies
601                   version: 0.0.1
602                 policyMap:
603                   entry:
604                   - key:
605                       name: LinkMonitorPolicy
606                       version: 0.0.1
607                     value:
608                       policyKey:
609                         name: LinkMonitorPolicy
610                         version: 0.0.1
611                       template: Freestyle
612                       state:
613                         entry:
614                         - key: LinkClearedState
615                           value:
616                             stateKey:
617                               parentKeyName: LinkMonitorPolicy
618                               parentKeyVersion: 0.0.1
619                               parentLocalName: 'NULL'
620                               localName: LinkClearedState
621                             trigger:
622                               name: CreateLinkClearedOutfieldsEvent
623                               version: 0.0.1
624                             stateOutputs:
625                               entry:
626                               - key: LinkClearedLogic_Output_Direct
627                                 value:
628                                   key:
629                                     parentKeyName: LinkMonitorPolicy
630                                     parentKeyVersion: 0.0.1
631                                     parentLocalName: LinkClearedState
632                                     localName: LinkClearedLogic_Output_Direct
633                                   outgoingEvent:
634                                     name: ApexMessageOutputEvent
635                                     version: 0.0.1
636                                   nextState:
637                                     parentKeyName: 'NULL'
638                                     parentKeyVersion: 0.0.0
639                                     parentLocalName: 'NULL'
640                                     localName: 'NULL'
641                             contextAlbumReference: []
642                             taskSelectionLogic:
643                               key: 'NULL'
644                               logicFlavour: UNDEFINED
645                               logic: ''
646                             stateFinalizerLogicMap:
647                               entry: []
648                             defaultTask:
649                               name: LinkClearedTask
650                               version: 0.0.1
651                             taskReferences:
652                               entry:
653                               - key:
654                                   name: LinkClearedTask
655                                   version: 0.0.1
656                                 value:
657                                   key:
658                                     parentKeyName: LinkMonitorPolicy
659                                     parentKeyVersion: 0.0.1
660                                     parentLocalName: LinkClearedState
661                                     localName: LinkClearedTask
662                                   outputType: DIRECT
663                                   output:
664                                     parentKeyName: LinkMonitorPolicy
665                                     parentKeyVersion: 0.0.1
666                                     parentLocalName: LinkClearedState
667                                     localName: LinkClearedLogic_Output_Direct
668                         - key: LinkFailureOrClearedState
669                           value:
670                             stateKey:
671                               parentKeyName: LinkMonitorPolicy
672                               parentKeyVersion: 0.0.1
673                               parentLocalName: 'NULL'
674                               localName: LinkFailureOrClearedState
675                             trigger:
676                               name: LinkFailureInputEvent
677                               version: 0.0.1
678                             stateOutputs:
679                               entry:
680                               - key: CreateLinkClearedOutfieldsLogic_Output_Direct
681                                 value:
682                                   key:
683                                     parentKeyName: LinkMonitorPolicy
684                                     parentKeyVersion: 0.0.1
685                                     parentLocalName: LinkFailureOrClearedState
686                                     localName: CreateLinkClearedOutfieldsLogic_Output_Direct
687                                   outgoingEvent:
688                                     name: CreateLinkClearedOutfieldsEvent
689                                     version: 0.0.1
690                                   nextState:
691                                     parentKeyName: LinkMonitorPolicy
692                                     parentKeyVersion: 0.0.1
693                                     parentLocalName: 'NULL'
694                                     localName: LinkClearedState
695                               - key: CreateLinkFailureOutfieldsLogic_Output_Direct
696                                 value:
697                                   key:
698                                     parentKeyName: LinkMonitorPolicy
699                                     parentKeyVersion: 0.0.1
700                                     parentLocalName: LinkFailureOrClearedState
701                                     localName: CreateLinkFailureOutfieldsLogic_Output_Direct
702                                   outgoingEvent:
703                                     name: CreateLinkFailureOutfieldsEvent
704                                     version: 0.0.1
705                                   nextState:
706                                     parentKeyName: LinkMonitorPolicy
707                                     parentKeyVersion: 0.0.1
708                                     parentLocalName: 'NULL'
709                                     localName: LinkFailureState
710                               - key: NoPolicyDefinedLogic_Output_Direct
711                                 value:
712                                   key:
713                                     parentKeyName: LinkMonitorPolicy
714                                     parentKeyVersion: 0.0.1
715                                     parentLocalName: LinkFailureOrClearedState
716                                     localName: NoPolicyDefinedLogic_Output_Direct
717                                   outgoingEvent:
718                                     name: ApexMessageOutputEvent
719                                     version: 0.0.1
720                                   nextState:
721                                     parentKeyName: 'NULL'
722                                     parentKeyVersion: 0.0.0
723                                     parentLocalName: 'NULL'
724                                     localName: 'NULL'
725                             contextAlbumReference: []
726                             taskSelectionLogic:
727                               key: TaskSelectionLogic
728                               logicFlavour: JAVASCRIPT
729                               logic: |-
730                                 /*
731                                  * ============LICENSE_START=======================================================
732                                  * Copyright (C) 2021 Nordix Foundation.
733                                  * ================================================================================
734                                  * Licensed under the Apache License, Version 2.0 (the "License");
735                                  * you may not use this file except in compliance with the License.
736                                  * You may obtain a copy of the License at
737                                  *
738                                  *      http://www.apache.org/licenses/LICENSE-2.0
739                                  *
740                                  * Unless required by applicable law or agreed to in writing, software
741                                  * distributed under the License is distributed on an "AS IS" BASIS,
742                                  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
743                                  * See the License for the specific language governing permissions and
744                                  * limitations under the License.
745                                  *
746                                  * SPDX-License-Identifier: Apache-2.0
747                                  * ============LICENSE_END=========================================================
748                                  */
749
750                                 executor.logger.info("Task Selection Execution: '"+executor.subject.id+
751                                     "'. InputFields: '"+executor.inFields+"'");
752
753                                 var linkFailureInput = executor.inFields.get("LinkFailureInput");
754                                 var commonEventHeader = linkFailureInput.get("event").get("commonEventHeader");
755                                 var domain = commonEventHeader.get("domain");
756
757                                 taskFailure = executor.subject.getTaskKey("CreateLinkFailureOutfieldsTask");
758                                 taskCleared = executor.subject.getTaskKey("CreateLinkClearedOutfieldsTask");
759                                 taskDefault = executor.subject.getDefaultTaskKey();
760
761                                 if (domain == "fault") {
762                                     var faultFields = linkFailureInput.get("event").get("faultFields");
763                                     var alarmCondition = faultFields.get("alarmCondition");
764                                     var eventSeverity = faultFields.get("eventSeverity");
765                                     if (alarmCondition == "28" && eventSeverity != "NORMAL") {
766                                         taskFailure.copyTo(executor.selectedTask);
767                                     } else if (alarmCondition == "28" && eventSeverity == "NORMAL") {
768                                         taskCleared.copyTo(executor.selectedTask);
769                                     } else {
770                                         taskDefault.copyTo(executor.selectedTask);
771                                     }
772                                 } else {
773                                     taskDefault.copyTo(executor.selectedTask);
774                                 }
775
776                                 true;
777                             stateFinalizerLogicMap:
778                               entry: []
779                             defaultTask:
780                               name: NoPolicyDefinedTask
781                               version: 0.0.1
782                             taskReferences:
783                               entry:
784                               - key:
785                                   name: CreateLinkClearedOutfieldsTask
786                                   version: 0.0.1
787                                 value:
788                                   key:
789                                     parentKeyName: LinkMonitorPolicy
790                                     parentKeyVersion: 0.0.1
791                                     parentLocalName: LinkFailureOrClearedState
792                                     localName: CreateLinkClearedOutfieldsTask
793                                   outputType: DIRECT
794                                   output:
795                                     parentKeyName: LinkMonitorPolicy
796                                     parentKeyVersion: 0.0.1
797                                     parentLocalName: LinkFailureOrClearedState
798                                     localName: CreateLinkClearedOutfieldsLogic_Output_Direct
799                               - key:
800                                   name: CreateLinkFailureOutfieldsTask
801                                   version: 0.0.1
802                                 value:
803                                   key:
804                                     parentKeyName: LinkMonitorPolicy
805                                     parentKeyVersion: 0.0.1
806                                     parentLocalName: LinkFailureOrClearedState
807                                     localName: CreateLinkFailureOutfieldsTask
808                                   outputType: DIRECT
809                                   output:
810                                     parentKeyName: LinkMonitorPolicy
811                                     parentKeyVersion: 0.0.1
812                                     parentLocalName: LinkFailureOrClearedState
813                                     localName: CreateLinkFailureOutfieldsLogic_Output_Direct
814                               - key:
815                                   name: NoPolicyDefinedTask
816                                   version: 0.0.1
817                                 value:
818                                   key:
819                                     parentKeyName: LinkMonitorPolicy
820                                     parentKeyVersion: 0.0.1
821                                     parentLocalName: LinkFailureOrClearedState
822                                     localName: NoPolicyDefinedTask
823                                   outputType: DIRECT
824                                   output:
825                                     parentKeyName: LinkMonitorPolicy
826                                     parentKeyVersion: 0.0.1
827                                     parentLocalName: LinkFailureOrClearedState
828                                     localName: NoPolicyDefinedLogic_Output_Direct
829                         - key: LinkFailureState
830                           value:
831                             stateKey:
832                               parentKeyName: LinkMonitorPolicy
833                               parentKeyVersion: 0.0.1
834                               parentLocalName: 'NULL'
835                               localName: LinkFailureState
836                             trigger:
837                               name: CreateLinkFailureOutfieldsEvent
838                               version: 0.0.1
839                             stateOutputs:
840                               entry:
841                               - key: LinkFailureLogic_Output_Direct
842                                 value:
843                                   key:
844                                     parentKeyName: LinkMonitorPolicy
845                                     parentKeyVersion: 0.0.1
846                                     parentLocalName: LinkFailureState
847                                     localName: LinkFailureLogic_Output_Direct
848                                   outgoingEvent:
849                                     name: LinkFailureOutputEvent
850                                     version: 0.0.1
851                                   nextState:
852                                     parentKeyName: 'NULL'
853                                     parentKeyVersion: 0.0.0
854                                     parentLocalName: 'NULL'
855                                     localName: 'NULL'
856                             contextAlbumReference: []
857                             taskSelectionLogic:
858                               key: 'NULL'
859                               logicFlavour: UNDEFINED
860                               logic: ''
861                             stateFinalizerLogicMap:
862                               entry: []
863                             defaultTask:
864                               name: LinkFailureTask
865                               version: 0.0.1
866                             taskReferences:
867                               entry:
868                               - key:
869                                   name: LinkFailureTask
870                                   version: 0.0.1
871                                 value:
872                                   key:
873                                     parentKeyName: LinkMonitorPolicy
874                                     parentKeyVersion: 0.0.1
875                                     parentLocalName: LinkFailureState
876                                     localName: LinkFailureTask
877                                   outputType: DIRECT
878                                   output:
879                                     parentKeyName: LinkMonitorPolicy
880                                     parentKeyVersion: 0.0.1
881                                     parentLocalName: LinkFailureState
882                                     localName: LinkFailureLogic_Output_Direct
883                       firstState: LinkFailureOrClearedState
884               tasks:
885                 key:
886                   name: LinkMonitorModel_Tasks
887                   version: 0.0.1
888                 taskMap:
889                   entry:
890                   - key:
891                       name: CreateLinkClearedOutfieldsTask
892                       version: 0.0.1
893                     value:
894                       key:
895                         name: CreateLinkClearedOutfieldsTask
896                         version: 0.0.1
897                       inputFields:
898                         entry:
899                         - key: LinkFailureInput
900                           value:
901                             key: LinkFailureInput
902                             fieldSchemaKey:
903                               name: LinkFailureInputSchema
904                               version: 0.0.1
905                             optional: false
906                       outputFields:
907                         entry:
908                         - key: OruId
909                           value:
910                             key: OruId
911                             fieldSchemaKey:
912                               name: OruIdSchema
913                               version: 0.0.1
914                             optional: false
915                       taskParameters:
916                         entry: []
917                       contextAlbumReference: []
918                       taskLogic:
919                         key: TaskLogic
920                         logicFlavour: JAVASCRIPT
921                         logic: |-
922                           /*
923                            * ============LICENSE_START=======================================================
924                            * Copyright (C) 2021 Nordix Foundation.
925                            * ================================================================================
926                            * Licensed under the Apache License, Version 2.0 (the "License");
927                            * you may not use this file except in compliance with the License.
928                            * You may obtain a copy of the License at
929                            *
930                            *      http://www.apache.org/licenses/LICENSE-2.0
931                            *
932                            * Unless required by applicable law or agreed to in writing, software
933                            * distributed under the License is distributed on an "AS IS" BASIS,
934                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
935                            * See the License for the specific language governing permissions and
936                            * limitations under the License.
937                            *
938                            * SPDX-License-Identifier: Apache-2.0
939                            * ============LICENSE_END=========================================================
940                            */
941
942                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
943
944                           var linkFailureInput = executor.inFields.get("LinkFailureInput");
945                           var oruId = linkFailureInput.get("event").get("commonEventHeader").get("sourceName");
946
947                           executor.outFields.put("OruId", oruId);
948
949                           executor.logger.info(executor.outFields);
950
951                           true;
952                   - key:
953                       name: CreateLinkFailureOutfieldsTask
954                       version: 0.0.1
955                     value:
956                       key:
957                         name: CreateLinkFailureOutfieldsTask
958                         version: 0.0.1
959                       inputFields:
960                         entry:
961                         - key: LinkFailureInput
962                           value:
963                             key: LinkFailureInput
964                             fieldSchemaKey:
965                               name: LinkFailureInputSchema
966                               version: 0.0.1
967                             optional: false
968                       outputFields:
969                         entry:
970                         - key: OduId
971                           value:
972                             key: OduId
973                             fieldSchemaKey:
974                               name: OduIdSchema
975                               version: 0.0.1
976                             optional: false
977                         - key: OruId
978                           value:
979                             key: OruId
980                             fieldSchemaKey:
981                               name: OruIdSchema
982                               version: 0.0.1
983                             optional: false
984                       taskParameters:
985                         entry: []
986                       contextAlbumReference: []
987                       taskLogic:
988                         key: TaskLogic
989                         logicFlavour: JAVASCRIPT
990                         logic: |-
991                           /*
992                            * ============LICENSE_START=======================================================
993                            * Copyright (C) 2021 Nordix Foundation.
994                            * ================================================================================
995                            * Licensed under the Apache License, Version 2.0 (the "License");
996                            * you may not use this file except in compliance with the License.
997                            * You may obtain a copy of the License at
998                            *
999                            *      http://www.apache.org/licenses/LICENSE-2.0
1000                            *
1001                            * Unless required by applicable law or agreed to in writing, software
1002                            * distributed under the License is distributed on an "AS IS" BASIS,
1003                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1004                            * See the License for the specific language governing permissions and
1005                            * limitations under the License.
1006                            *
1007                            * SPDX-License-Identifier: Apache-2.0
1008                            * ============LICENSE_END=========================================================
1009                            */
1010
1011                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
1012
1013                           var returnValue = true;
1014                           var linkFailureInput = executor.inFields.get("LinkFailureInput");
1015                           var oruId = linkFailureInput.get("event").get("commonEventHeader").get("sourceName");
1016                           var oruOduMap = JSON.parse(executor.parameters.get("ORU-ODU-Map"));
1017
1018                           if (oruId in oruOduMap) {
1019                               var oduId = oruOduMap[oruId];
1020                               executor.outFields.put("OruId", oruId);
1021                               executor.outFields.put("OduId", oduId);
1022                               executor.logger.info(executor.outFields);
1023                           } else {
1024                               executor.message = "No O-RU found in the config with this ID: " + oruId;
1025                               returnValue = false;
1026                           }
1027
1028                           returnValue;
1029                   - key:
1030                       name: LinkClearedTask
1031                       version: 0.0.1
1032                     value:
1033                       key:
1034                         name: LinkClearedTask
1035                         version: 0.0.1
1036                       inputFields:
1037                         entry:
1038                         - key: OruId
1039                           value:
1040                             key: OruId
1041                             fieldSchemaKey:
1042                               name: OruIdSchema
1043                               version: 0.0.1
1044                             optional: false
1045                       outputFields:
1046                         entry:
1047                         - key: message
1048                           value:
1049                             key: message
1050                             fieldSchemaKey:
1051                               name: MessageSchema
1052                               version: 0.0.1
1053                             optional: false
1054                       taskParameters:
1055                         entry: []
1056                       contextAlbumReference: []
1057                       taskLogic:
1058                         key: TaskLogic
1059                         logicFlavour: JAVASCRIPT
1060                         logic: |-
1061                           /*
1062                            * ============LICENSE_START=======================================================
1063                            * Copyright (C) 2021 Nordix Foundation.
1064                            * ================================================================================
1065                            * Licensed under the Apache License, Version 2.0 (the "License");
1066                            * you may not use this file except in compliance with the License.
1067                            * You may obtain a copy of the License at
1068                            *
1069                            *      http://www.apache.org/licenses/LICENSE-2.0
1070                            *
1071                            * Unless required by applicable law or agreed to in writing, software
1072                            * distributed under the License is distributed on an "AS IS" BASIS,
1073                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1074                            * See the License for the specific language governing permissions and
1075                            * limitations under the License.
1076                            *
1077                            * SPDX-License-Identifier: Apache-2.0
1078                            * ============LICENSE_END=========================================================
1079                            */
1080
1081                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
1082
1083                           var oruId = executor.inFields.get("OruId");
1084
1085                           executor.outFields.put("message", "CLEARED link failure for O-RU: " + oruId);
1086
1087                           executor.logger.info(executor.outFields);
1088
1089                           true;
1090                   - key:
1091                       name: LinkFailureTask
1092                       version: 0.0.1
1093                     value:
1094                       key:
1095                         name: LinkFailureTask
1096                         version: 0.0.1
1097                       inputFields:
1098                         entry:
1099                         - key: OduId
1100                           value:
1101                             key: OduId
1102                             fieldSchemaKey:
1103                               name: OduIdSchema
1104                               version: 0.0.1
1105                             optional: false
1106                         - key: OruId
1107                           value:
1108                             key: OruId
1109                             fieldSchemaKey:
1110                               name: OruIdSchema
1111                               version: 0.0.1
1112                             optional: false
1113                       outputFields:
1114                         entry:
1115                         - key: LinkFailureOutput
1116                           value:
1117                             key: LinkFailureOutput
1118                             fieldSchemaKey:
1119                               name: LinkFailureOutputSchema
1120                               version: 0.0.1
1121                             optional: false
1122                       taskParameters:
1123                         entry: []
1124                       contextAlbumReference: []
1125                       taskLogic:
1126                         key: TaskLogic
1127                         logicFlavour: JAVASCRIPT
1128                         logic: |-
1129                           /*
1130                            * ============LICENSE_START=======================================================
1131                            * Copyright (C) 2021 Nordix Foundation.
1132                            * ================================================================================
1133                            * Licensed under the Apache License, Version 2.0 (the "License");
1134                            * you may not use this file except in compliance with the License.
1135                            * You may obtain a copy of the License at
1136                            *
1137                            *      http://www.apache.org/licenses/LICENSE-2.0
1138                            *
1139                            * Unless required by applicable law or agreed to in writing, software
1140                            * distributed under the License is distributed on an "AS IS" BASIS,
1141                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1142                            * See the License for the specific language governing permissions and
1143                            * limitations under the License.
1144                            *
1145                            * SPDX-License-Identifier: Apache-2.0
1146                            * ============LICENSE_END=========================================================
1147                            */
1148
1149                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
1150
1151                           var linkFailureOutput = executor.subject.getOutFieldSchemaHelper("LinkFailureOutput").createNewInstance();
1152
1153                           var oruId = executor.inFields.get("OruId");
1154                           var oduId = executor.inFields.get("OduId");
1155
1156                           var unlockMessageArray = new java.util.ArrayList();
1157                           for (var i = 0; i < 1; i++) {
1158                               unlockMessageArray.add({
1159                                   "name" : oruId,
1160                                   "administrative_DasH_state" : "UNLOCKED"
1161                               });
1162                           }
1163
1164                           linkFailureOutput.put("o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_du_DasH_to_DasH_ru_DasH_connection", unlockMessageArray);
1165                           executor.outFields.put("LinkFailureOutput", linkFailureOutput.toString());
1166
1167                           executor.getExecutionProperties().setProperty("OduId", oduId);
1168                           executor.getExecutionProperties().setProperty("OruId", oruId);
1169
1170                           executor.logger.info(executor.outFields);
1171
1172                           true;
1173                   - key:
1174                       name: NoPolicyDefinedTask
1175                       version: 0.0.1
1176                     value:
1177                       key:
1178                         name: NoPolicyDefinedTask
1179                         version: 0.0.1
1180                       inputFields:
1181                         entry:
1182                         - key: LinkFailureInput
1183                           value:
1184                             key: LinkFailureInput
1185                             fieldSchemaKey:
1186                               name: LinkFailureInputSchema
1187                               version: 0.0.1
1188                             optional: false
1189                       outputFields:
1190                         entry:
1191                         - key: message
1192                           value:
1193                             key: message
1194                             fieldSchemaKey:
1195                               name: MessageSchema
1196                               version: 0.0.1
1197                             optional: false
1198                       taskParameters:
1199                         entry: []
1200                       contextAlbumReference: []
1201                       taskLogic:
1202                         key: TaskLogic
1203                         logicFlavour: JAVASCRIPT
1204                         logic: |-
1205                           /*
1206                            * ============LICENSE_START=======================================================
1207                            * Copyright (C) 2021 Nordix Foundation.
1208                            * ================================================================================
1209                            * Licensed under the Apache License, Version 2.0 (the "License");
1210                            * you may not use this file except in compliance with the License.
1211                            * You may obtain a copy of the License at
1212                            *
1213                            *      http://www.apache.org/licenses/LICENSE-2.0
1214                            *
1215                            * Unless required by applicable law or agreed to in writing, software
1216                            * distributed under the License is distributed on an "AS IS" BASIS,
1217                            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1218                            * See the License for the specific language governing permissions and
1219                            * limitations under the License.
1220                            *
1221                            * SPDX-License-Identifier: Apache-2.0
1222                            * ============LICENSE_END=========================================================
1223                            */
1224
1225                           executor.logger.info("Task Execution: '"+executor.subject.id+"'. Input Fields: '"+executor.inFields+"'");
1226
1227                           executor.outFields.put("message", "No policy defined for this event");
1228
1229                           executor.logger.info(executor.outFields);
1230
1231                           true;
1232               events:
1233                 key:
1234                   name: LinkMonitorModel_Events
1235                   version: 0.0.1
1236                 eventMap:
1237                   entry:
1238                   - key:
1239                       name: ApexMessageOutputEvent
1240                       version: 0.0.1
1241                     value:
1242                       key:
1243                         name: ApexMessageOutputEvent
1244                         version: 0.0.1
1245                       nameSpace: org.onap.policy.apex.auth.clieditor
1246                       source: APEX
1247                       target: APEX
1248                       parameter:
1249                         entry:
1250                         - key: message
1251                           value:
1252                             key: message
1253                             fieldSchemaKey:
1254                               name: MessageSchema
1255                               version: 0.0.1
1256                             optional: false
1257                   - key:
1258                       name: CreateLinkClearedOutfieldsEvent
1259                       version: 0.0.1
1260                     value:
1261                       key:
1262                         name: CreateLinkClearedOutfieldsEvent
1263                         version: 0.0.1
1264                       nameSpace: org.onap.policy.apex.auth.clieditor
1265                       source: APEX
1266                       target: APEX
1267                       parameter:
1268                         entry:
1269                         - key: OruId
1270                           value:
1271                             key: OruId
1272                             fieldSchemaKey:
1273                               name: OruIdSchema
1274                               version: 0.0.1
1275                             optional: false
1276                   - key:
1277                       name: CreateLinkFailureOutfieldsEvent
1278                       version: 0.0.1
1279                     value:
1280                       key:
1281                         name: CreateLinkFailureOutfieldsEvent
1282                         version: 0.0.1
1283                       nameSpace: org.onap.policy.apex.auth.clieditor
1284                       source: APEX
1285                       target: APEX
1286                       parameter:
1287                         entry:
1288                         - key: OduId
1289                           value:
1290                             key: OduId
1291                             fieldSchemaKey:
1292                               name: OduIdSchema
1293                               version: 0.0.1
1294                             optional: false
1295                         - key: OruId
1296                           value:
1297                             key: OruId
1298                             fieldSchemaKey:
1299                               name: OruIdSchema
1300                               version: 0.0.1
1301                             optional: false
1302                   - key:
1303                       name: LinkFailureInputEvent
1304                       version: 0.0.1
1305                     value:
1306                       key:
1307                         name: LinkFailureInputEvent
1308                         version: 0.0.1
1309                       nameSpace: org.onap.policy.apex.auth.clieditor
1310                       source: DMAAP
1311                       target: APEX
1312                       parameter:
1313                         entry:
1314                         - key: LinkFailureInput
1315                           value:
1316                             key: LinkFailureInput
1317                             fieldSchemaKey:
1318                               name: LinkFailureInputSchema
1319                               version: 0.0.1
1320                             optional: false
1321                   - key:
1322                       name: LinkFailureOutputEvent
1323                       version: 0.0.1
1324                     value:
1325                       key:
1326                         name: LinkFailureOutputEvent
1327                         version: 0.0.1
1328                       nameSpace: org.onap.policy.apex.auth.clieditor
1329                       source: APEX
1330                       target: OAM
1331                       parameter:
1332                         entry:
1333                         - key: LinkFailureOutput
1334                           value:
1335                             key: LinkFailureOutput
1336                             fieldSchemaKey:
1337                               name: LinkFailureOutputSchema
1338                               version: 0.0.1
1339                             optional: false
1340               schemas:
1341                 key:
1342                   name: LinkMonitorModel_Schemas
1343                   version: 0.0.1
1344                 schemas:
1345                   entry:
1346                   - key:
1347                       name: LinkFailureInputSchema
1348                       version: 0.0.1
1349                     value:
1350                       key:
1351                         name: LinkFailureInputSchema
1352                         version: 0.0.1
1353                       schemaFlavour: Avro
1354                       schemaDefinition: |-
1355                         {
1356                             "type": "record",
1357                             "name": "Link_Failure_Input",
1358                             "fields": [
1359                                 {
1360                                     "name": "event",
1361                                     "type": {
1362                                         "type": "record",
1363                                         "name": "Event_Type",
1364                                         "fields": [
1365                                             {
1366                                                 "name": "commonEventHeader",
1367                                                 "type": {
1368                                                     "type": "record",
1369                                                     "name": "Common_Event_Header_Type",
1370                                                     "fields": [
1371                                                         {
1372                                                             "name": "domain",
1373                                                             "type": "string"
1374                                                         },
1375                                                         {
1376                                                             "name": "eventId",
1377                                                             "type": "string"
1378                                                         },
1379                                                         {
1380                                                             "name": "eventName",
1381                                                             "type": "string"
1382                                                         },
1383                                                         {
1384                                                             "name": "eventType",
1385                                                             "type": "string"
1386                                                         },
1387                                                         {
1388                                                             "name": "sequence",
1389                                                             "type": "int"
1390                                                         },
1391                                                         {
1392                                                             "name": "priority",
1393                                                             "type": "string"
1394                                                         },
1395                                                         {
1396                                                             "name": "reportingEntityId",
1397                                                             "type": "string"
1398                                                         },
1399                                                         {
1400                                                             "name": "reportingEntityName",
1401                                                             "type": "string"
1402                                                         },
1403                                                         {
1404                                                             "name": "sourceId",
1405                                                             "type": "string"
1406                                                         },
1407                                                         {
1408                                                             "name": "sourceName",
1409                                                             "type": "string"
1410                                                         },
1411                                                         {
1412                                                             "name": "startEpochMicrosec",
1413                                                             "type": "string"
1414                                                         },
1415                                                         {
1416                                                             "name": "lastEpochMicrosec",
1417                                                             "type": "string"
1418                                                         },
1419                                                         {
1420                                                             "name": "nfNamingCode",
1421                                                             "type": "string"
1422                                                         },
1423                                                         {
1424                                                             "name": "nfVendorName",
1425                                                             "type": "string"
1426                                                         },
1427                                                         {
1428                                                             "name": "timeZoneOffset",
1429                                                             "type": "string"
1430                                                         },
1431                                                         {
1432                                                             "name": "version",
1433                                                             "type": "string"
1434                                                         },
1435                                                         {
1436                                                             "name": "vesEventListenerVersion",
1437                                                             "type": "string"
1438                                                         }
1439                                                     ]
1440                                                 }
1441                                             },
1442                                             {
1443                                                 "name": "faultFields",
1444                                                 "type": {
1445                                                     "type": "record",
1446                                                     "name": "Fault_Fields_Type",
1447                                                     "fields": [
1448                                                         {
1449                                                             "name": "faultFieldsVersion",
1450                                                             "type": "string"
1451                                                         },
1452                                                         {
1453                                                             "name": "alarmCondition",
1454                                                             "type": "string"
1455                                                         },
1456                                                         {
1457                                                             "name": "alarmInterfaceA",
1458                                                             "type": "string"
1459                                                         },
1460                                                         {
1461                                                             "name": "eventSourceType",
1462                                                             "type": "string"
1463                                                         },
1464                                                         {
1465                                                             "name": "specificProblem",
1466                                                             "type": "string"
1467                                                         },
1468                                                         {
1469                                                             "name": "eventSeverity",
1470                                                             "type": "string"
1471                                                         },
1472                                                         {
1473                                                             "name": "vfStatus",
1474                                                             "type": "string"
1475                                                         },
1476                                                         {
1477                                                             "name": "alarmAdditionalInformation",
1478                                                             "type": {
1479                                                                 "type": "record",
1480                                                                 "name": "Alarm_Additional_Information_Type",
1481                                                                 "fields": [
1482                                                                     {
1483                                                                         "name": "eventTime",
1484                                                                         "type": "string"
1485                                                                     },
1486                                                                     {
1487                                                                         "name": "equipType",
1488                                                                         "type": "string"
1489                                                                     },
1490                                                                     {
1491                                                                         "name": "vendor",
1492                                                                         "type": "string"
1493                                                                     },
1494                                                                     {
1495                                                                         "name": "model",
1496                                                                         "type": "string"
1497                                                                     }
1498                                                                 ]
1499                                                             }
1500                                                         }
1501                                                     ]
1502                                                 }
1503                                             }
1504                                         ]
1505                                     }
1506                                 }
1507                             ]
1508                         }
1509                   - key:
1510                       name: LinkFailureOutputSchema
1511                       version: 0.0.1
1512                     value:
1513                       key:
1514                         name: LinkFailureOutputSchema
1515                         version: 0.0.1
1516                       schemaFlavour: Avro
1517                       schemaDefinition: "{\n    \"type\": \"record\",\n    \"name\":
1518                         \"Link_Failure_Output\",\n    \"fields\": [\n        {\n            \"name\":
1519                         \"o_DasH_ran_DasH_sc_DasH_du_DasH_hello_DasH_world_ColoN_du_DasH_to_DasH_ru_DasH_connection\",\n
1520                         \           \"type\": {\n        \t\"type\": \"array\",\n
1521                         \       \t\"items\": {\n\t\t    \"name\": \"Config_Change_Message\",\n
1522                         \                   \"type\": \"record\",\n                    \"fields\":
1523                         [\n                        {\n                            \"name\":
1524                         \"name\",\n                            \"type\": \"string\"\n
1525                         \                       },\n\t\t\t{\n                            \"name\":
1526                         \"administrative_DasH_state\",\n                            \"type\":
1527                         \"string\"\n                        }\n                    ]\n
1528                         \               }\n\t    }\n        }\n    ]\n}"
1529                   - key:
1530                       name: MessageSchema
1531                       version: 0.0.1
1532                     value:
1533                       key:
1534                         name: MessageSchema
1535                         version: 0.0.1
1536                       schemaFlavour: Java
1537                       schemaDefinition: java.lang.String
1538                   - key:
1539                       name: OduIdSchema
1540                       version: 0.0.1
1541                     value:
1542                       key:
1543                         name: OduIdSchema
1544                         version: 0.0.1
1545                       schemaFlavour: Java
1546                       schemaDefinition: java.lang.String
1547                   - key:
1548                       name: OruIdSchema
1549                       version: 0.0.1
1550                     value:
1551                       key:
1552                         name: OruIdSchema
1553                         version: 0.0.1
1554                       schemaFlavour: Java
1555                       schemaDefinition: java.lang.String
1556         eventOutputParameters:
1557           RestProducer:
1558             carrierTechnologyParameters:
1559               carrierTechnology: RESTCLIENT
1560               parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
1561               parameters:
1562                 url: http://sdnr-sim:9990/rests/data/network-topology:network-topology/topology=topology-netconf/node={OduId}/yang-ext:mount/o-ran-sc-du-hello-world:network-function/du-to-ru-connection={OruId}
1563                 httpMethod: PUT
1564                 httpHeaders:
1565                 - - Authorization
1566                   - Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==
1567             eventProtocolParameters:
1568               eventProtocol: JSON
1569               parameters:
1570                 pojoField: LinkFailureOutput
1571             eventNameFilter: LinkFailureOutputEvent
1572           StdOutProducer:
1573             carrierTechnologyParameters:
1574               carrierTechnology: FILE
1575               parameters:
1576                 standardIo: true
1577             eventProtocolParameters:
1578               eventProtocol: JSON
1579               parameters:
1580                 pojoField: message
1581             eventNameFilter: ApexMessageOutputEvent
1582         eventInputParameters:
1583           DMaaPConsumer:
1584             carrierTechnologyParameters:
1585               carrierTechnology: RESTCLIENT
1586               parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
1587               parameters:
1588                 url: http://onap-dmaap:3904/events/unauthenticated.SEC_FAULT_OUTPUT/users/link-monitor-nonrtric?timeout=15000&limit=100
1589             eventProtocolParameters:
1590               eventProtocol: JSON
1591               parameters:
1592                 versionAlias: version
1593                 pojoField: LinkFailureInput
1594             eventName: LinkFailureInputEvent