blob: c257cdd3c1f36e74594722c24f5a9d81fb14d541 [file] [log] [blame]
rameshiyer2745b653f2022-02-07 17:07:38 +00001---
2# Representation of apex decision maker policy that will be passed on to the apex-pdp from PAP.
3# The metadataSet definition for the metadata reference is added under the metadata field of the policy by PAP.
4
5tosca_definitions_version: tosca_simple_yaml_1_1_0
6topology_template:
7 policies:
8 - operational.apex.decisionMaker:
9 type: onap.policies.controlloop.operational.common.apex.decisionMaker
10 type_version: 1.0.0
11 derived_from: tosca.policies.Root
12 name: operational.apex.decisionMaker
13 version: 1.0.0
14 metadata:
15 policyModel:
16 key:
17 name: DecisionMakerPolicyModel
18 version: 0.0.1
19 keyInformation:
20 key:
21 name: DecisionMakerPolicyModel_KeyInfo
22 version: 0.0.1
23 keyInfoMap:
24 entry:
25 - key:
26 name: AnswerAlbum
27 version: 0.0.1
28 value:
29 key:
30 name: AnswerAlbum
31 version: 0.0.1
32 UUID: 4ea21a2c-5dc7-337f-ba13-f427a4ae79a1
33 description: Generated description for concept referred to by key "AnswerAlbum:0.0.1"
34 - key:
35 name: AnswerEvent
36 version: 0.0.1
37 value:
38 key:
39 name: AnswerEvent
40 version: 0.0.1
41 UUID: ce2233b8-bb89-3c5e-a18f-1d13089d2bb6
42 description: Generated description for concept referred to by key "AnswerEvent:0.0.1"
43 - key:
44 name: AnswerInitPolicy
45 version: 0.0.1
46 value:
47 key:
48 name: AnswerInitPolicy
49 version: 0.0.1
50 UUID: c8254064-b171-3ccb-85c0-29b5719ee8fc
51 description: Generated description for concept referred to by key "AnswerInitPolicy:0.0.1"
52 - key:
53 name: AnswerInitTask
54 version: 0.0.1
55 value:
56 key:
57 name: AnswerInitTask
58 version: 0.0.1
59 UUID: 28fb33d2-a4e0-3046-8302-7baf9a2056d1
60 description: Generated description for concept referred to by key "AnswerInitTask:0.0.1"
61 - key:
62 name: DecisionEvent
63 version: 0.0.1
64 value:
65 key:
66 name: DecisionEvent
67 version: 0.0.1
68 UUID: 487acc75-b5a1-3285-90cf-98ecd6fb3500
69 description: Generated description for concept referred to by key "DecisionEvent:0.0.1"
70 - key:
71 name: DecisionMakerPolicy
72 version: 0.0.1
73 value:
74 key:
75 name: DecisionMakerPolicy
76 version: 0.0.1
77 UUID: 9e8dda9a-6f85-311d-842b-00b5b5578edd
78 description: Generated description for concept referred to by key "DecisionMakerPolicy:0.0.1"
79 - key:
80 name: DecisionMakerPolicyModel
81 version: 0.0.1
82 value:
83 key:
84 name: DecisionMakerPolicyModel
85 version: 0.0.1
86 UUID: d7789464-e4d1-382e-8481-fba53fa7b9a9
87 description: Generated description for concept referred to by key "DecisionMakerPolicyModel:0.0.1"
88 - key:
89 name: DecisionMakerPolicyModel_Albums
90 version: 0.0.1
91 value:
92 key:
93 name: DecisionMakerPolicyModel_Albums
94 version: 0.0.1
95 UUID: e5dfbadd-5229-3ad9-996c-eda030ef5dc1
96 description: Generated description for concept referred to by key "DecisionMakerPolicyModel_Albums:0.0.1"
97 - key:
98 name: DecisionMakerPolicyModel_Events
99 version: 0.0.1
100 value:
101 key:
102 name: DecisionMakerPolicyModel_Events
103 version: 0.0.1
104 UUID: b4248202-ff8e-3d45-8b3d-0ed0fd2eaed4
105 description: Generated description for concept referred to by key "DecisionMakerPolicyModel_Events:0.0.1"
106 - key:
107 name: DecisionMakerPolicyModel_KeyInfo
108 version: 0.0.1
109 value:
110 key:
111 name: DecisionMakerPolicyModel_KeyInfo
112 version: 0.0.1
113 UUID: 693b1b29-c4c6-34ba-98e1-bc1a7576f0f8
114 description: Generated description for concept referred to by key "DecisionMakerPolicyModel_KeyInfo:0.0.1"
115 - key:
116 name: DecisionMakerPolicyModel_Policies
117 version: 0.0.1
118 value:
119 key:
120 name: DecisionMakerPolicyModel_Policies
121 version: 0.0.1
122 UUID: 2dee1e42-9caa-32b1-9298-784dcdcb9cae
123 description: Generated description for concept referred to by key "DecisionMakerPolicyModel_Policies:0.0.1"
124 - key:
125 name: DecisionMakerPolicyModel_Schemas
126 version: 0.0.1
127 value:
128 key:
129 name: DecisionMakerPolicyModel_Schemas
130 version: 0.0.1
131 UUID: c256f102-2681-3f35-bbbd-1f4948587e15
132 description: Generated description for concept referred to by key "DecisionMakerPolicyModel_Schemas:0.0.1"
133 - key:
134 name: DecisionMakerPolicyModel_Tasks
135 version: 0.0.1
136 value:
137 key:
138 name: DecisionMakerPolicyModel_Tasks
139 version: 0.0.1
140 UUID: 660cbdba-687d-3a05-ba26-69daf93a8158
141 description: Generated description for concept referred to by key "DecisionMakerPolicyModel_Tasks:0.0.1"
142 - key:
143 name: DitheringAnswerTask
144 version: 0.0.1
145 value:
146 key:
147 name: DitheringAnswerTask
148 version: 0.0.1
149 UUID: da31cee8-2e84-39d2-9337-9ee3bf347c98
150 description: Generated description for concept referred to by key "DitheringAnswerTask:0.0.1"
151 - key:
152 name: LastAnswerAlbum
153 version: 0.0.1
154 value:
155 key:
156 name: LastAnswerAlbum
157 version: 0.0.1
158 UUID: 21399145-3fbe-39a5-b863-8a59a8add4a8
159 description: Generated description for concept referred to by key "LastAnswerAlbum:0.0.1"
160 - key:
161 name: MakeDecisionEvent
162 version: 0.0.1
163 value:
164 key:
165 name: MakeDecisionEvent
166 version: 0.0.1
167 UUID: 02ec632a-aeae-31fe-8f6d-656e1875749f
168 description: Generated description for concept referred to by key "MakeDecisionEvent:0.0.1"
169 - key:
170 name: OptimisticAnswerTask
171 version: 0.0.1
172 value:
173 key:
174 name: OptimisticAnswerTask
175 version: 0.0.1
176 UUID: 818e6b9e-0109-31f5-a95c-17f6fb016027
177 description: Generated description for concept referred to by key "OptimisticAnswerTask:0.0.1"
178 - key:
179 name: PessimisticAnswerTask
180 version: 0.0.1
181 value:
182 key:
183 name: PessimisticAnswerTask
184 version: 0.0.1
185 UUID: 8f4a707e-0d8b-3e09-b921-332f6f81f302
186 description: Generated description for concept referred to by key "PessimisticAnswerTask:0.0.1"
187 - key:
188 name: RandomAnswerTask
189 version: 0.0.1
190 value:
191 key:
192 name: RandomAnswerTask
193 version: 0.0.1
194 UUID: bfb0af88-b454-3b08-911f-7ff2475350bf
195 description: Generated description for concept referred to by key "RandomAnswerTask:0.0.1"
196 - key:
197 name: RoundRobinAnswerTask
198 version: 0.0.1
199 value:
200 key:
201 name: RoundRobinAnswerTask
202 version: 0.0.1
203 UUID: eac6fb59-8aca-3011-b7ba-69875f1db4b6
204 description: Generated description for concept referred to by key "RoundRobinAnswerTask:0.0.1"
205 - key:
206 name: SimpleIntegerType
207 version: 0.0.1
208 value:
209 key:
210 name: SimpleIntegerType
211 version: 0.0.1
212 UUID: ab00a5b8-7edd-340f-8140-4d14f571edfb
213 description: Generated description for concept referred to by key "SimpleIntegerType:0.0.1"
214 - key:
215 name: SimpleStringType
216 version: 0.0.1
217 value:
218 key:
219 name: SimpleStringType
220 version: 0.0.1
221 UUID: 8a4957cf-9493-3a76-8c22-a208e23259af
222 description: Generated description for concept referred to by key "SimpleStringType:0.0.1"
223 properties:
224 engineServiceParameters:
225 name: MyApexEngine
226 version: 0.0.1
227 id: 45
228 instanceCount: 4
229 deploymentPort: 12561
230 engineParameters:
231 executorParameters:
232 JAVASCRIPT:
233 parameterClassName: org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters
234 contextParameters:
235 parameterClassName: org.onap.policy.apex.context.parameters.ContextParameters
236 schemaParameters:
237 Avro:
238 parameterClassName: org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters
239 Java:
240 parameterClassName: org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters
241 jsonAdapters:
242 Instant:
243 adaptedClass: java.time.Instant
244 adaptorClass: org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter
245 taskParameters:
246 - key: ParameterKey1
247 value: ParameterValue1
248 - taskId: AAILookupTask:0.0.1
249 key: SomeKeyForThisTask
250 value: Value
251 eventInputParameters:
252 GuardRequestorConsumer:
253 carrierTechnologyParameters:
254 carrierTechnology: RESTREQUESTOR
255 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
256 parameters:
257 url: http://111.222.333.444:5555/pdp/api/getDecision
258 httpMethod: POST
259 restRequestTimeout: 2000
260 httpHeader: Authorization:aaaaaaaaa== ClientAuth:bbbbbbbbb=
261 eventProtocolParameters:
262 eventProtocol: JSON
263 eventName: GuardResponseEvent
264 eventNameFilter: GuardResponseEvent
265 requestorMode: true
266 requestorPeer: GuardRequestorProducer
267 requestorTimeout: 500
268 DCAEConsumer:
269 carrierTechnologyParameters:
270 carrierTechnology: RESTCLIENT
271 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
272 parameters:
273 url: http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/APEX/1?timeout=60000
274 eventProtocolParameters:
275 eventProtocol: JSON
276 parameters:
277 nameAlias: closedLoopControlName
278 versionAlias: version
279 sourceAlias: from
280 pojoField: VirtualControlLoopEvent
281 eventName: ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
282 APPCConsumer:
283 carrierTechnologyParameters:
284 carrierTechnology: RESTCLIENT
285 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
286 parameters:
287 url: http://message-router:3904/events/APPC-LCM-WRITE/APEX/1?timeout=60000
288 eventProtocolParameters:
289 eventProtocol: JSON
290 parameters:
291 versionAlias: version
292 pojoField: APPCLCMResponseEvent
293 eventName: APPCRestartVNFResponseEvent
294 eventNameFilter: APPCRestartVNFResponseEvent
295 eventOutputParameters:
296 logProducer:
297 carrierTechnologyParameters:
298 carrierTechnology: FILE
299 parameters:
300 fileName: "/tmp/VCPEEventsOut.json"
301 eventProtocolParameters:
302 eventProtocol: JSON
303 GuardRequestorProducer:
304 carrierTechnologyParameters:
305 carrierTechnology: RESTREQUESTOR
306 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters
307 eventProtocolParameters:
308 eventProtocol: JSON
309 eventNameFilter: GuardRequestEvent
310 requestorMode: true
311 requestorPeer: GuardRequestorConsumer
312 requestorTimeout: 500
313 APPCProducer:
314 carrierTechnologyParameters:
315 carrierTechnology: RESTCLIENT
316 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
317 parameters:
318 url: http://message-router:3904/events/APPC-LCM-READ
319 eventProtocolParameters:
320 eventProtocol: JSON
321 parameters:
322 versionAlias: version
323 sourceAlias: from
324 pojoField: APPCLCMRequestEvent
325 eventNameFilter: APPCRestartVNFRequestEvent
326 PolicyLogProducer:
327 carrierTechnologyParameters:
328 carrierTechnology: RESTCLIENT
329 parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters
330 parameters:
331 url: http://message-router:3904/events/POLICY-CL-MGT
332 eventProtocolParameters:
333 eventProtocol: JSON
334 parameters:
335 versionAlias: version
336 sourceAlias: from
337 pojoField: VirtualControlLoopNotification
338 eventNameFilter: ControlLoopLogEvent