blob: 8795b1321853879bd37bbdf321b2bab0202fc391 [file] [log] [blame]
a.sreekumar7d80c382019-05-07 13:36:39 +00001{
2 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
3 "policy_types": [
4 {
5 "onap.policies.controlloop.operational.Apex": {
6 "version": "1.0.0",
7 "description": "Operational Policy for Control Loops using the APEX PDP",
8 "properties": {
9 "engine_service": {
10 "type": "onap.datatypes.policies.controlloop.operational.apex.EngineService",
11 "description": "APEX Engine Service Parameters"
12 },
13 "inputs": {
14 "type": "map",
15 "description": "Inputs for handling events coming into the APEX engine",
16 "entry_schema": {
17 "type": "onap.datatypes.policies.controlloop.operational.apex.EventHandler"
18 }
19 },
20 "outputs": {
21 "type": "map",
22 "description": "Outputs for handling events going out of the APEX engine",
23 "entry_schema": {
24 "type": "onap.datatypes.policies.controlloop.operational.apex.EventHandler"
25 }
26 },
27 "environment": {
28 "type": "list",
29 "description": "Envioronmental parameters for the APEX engine",
30 "entry_schema": {
31 "type": "onap.datatypes.policies.controlloop.operational.apex.Environment"
32 }
33 }
34 }
35 }
36 }
37 ],
38 "data_types": [
39 {
40 "onap.datatypes.policies.controlloop.operational.apex.EngineService": {
41 "derived_from": "tosca.datatypes.Root",
42 "properties": {
43 "name": {
44 "type": "string",
45 "description": "Specifies the engine name",
46 "required": false,
47 "default": "ApexEngineService"
48 },
49 "version": {
50 "type": "string",
51 "description": "Specifies the engine version in double dotted format",
52 "required": false,
53 "default": "1.0.0"
54 },
55 "id": {
56 "type": "int",
57 "description": "Specifies the engine id",
58 "required": true
59 },
60 "instance_count": {
61 "type": "int",
62 "description": "Specifies the number of engine threads that should be run",
63 "required": true
64 },
65 "deployment_port": {
66 "type": "int",
67 "description": "Specifies the port to connect to for engine administration",
68 "required": false,
69 "default": 1
70 },
71 "policy_model_file_name": {
72 "type": "string",
73 "description": "The name of the file from which to read the APEX policy model",
74 "required": false,
75 "default": ""
76 },
77 "policy_type_impl": {
78 "type": "string",
79 "description": "The policy type implementation from which to read the APEX policy model",
80 "required": false,
81 "default": ""
82 },
83 "periodic_event_period": {
84 "type": "string",
85 "description": "The time interval in milliseconds for the periodic scanning event, 0 means \"don't scan\"",
86 "required": false,
87 "default": 0
88 },
89 "engine": {
90 "type": "onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine",
91 "description": "The parameters for all engines in the APEX engine service",
92 "required": true
93 }
94 }
95 }
96 },
97 {
98 "onap.datatypes.policies.controlloop.operational.apex.EventHandler": {
99 "derived_from": "tosca.datatypes.Root",
100 "properties": {
101 "name": {
102 "type": "string",
103 "description": "Specifies the event handler name, if not specified this is set to the key name",
104 "required": false
105 },
106 "carrier_technology": {
107 "type": "onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology",
108 "description": "Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)",
109 "required": true
110 },
111 "event_protocol": {
112 "type": "onap.datatypes.policies.controlloop.operational.apex.EventProtocol",
113 "description": "Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)",
114 "required": true
115 },
116 "event_name": {
117 "type": "string",
118 "description": "Specifies the event name for events on this event handler, if not specified, the event name is read from or written to the event being received or sent",
119 "required": false
120 },
121 "event_name_filter": {
122 "type": "string",
123 "description": "Specifies a filter as a regular expression, events that do not match the filter are dropped, the default is to let all events through",
124 "required": false
125 },
126 "synchronous_mode": {
127 "type": "bool",
128 "description": "Specifies the event handler is syncronous (receive event and send response)",
129 "required": false,
130 "default": false
131 },
132 "synchronous_peer": {
133 "type": "string",
134 "description": "The peer event handler (output for input or input for output) of this event handler in synchronous mode, this parameter is mandatory if the event handler is in synchronous mode",
135 "required": false,
136 "default": ""
137 },
138 "synchronous_timeout": {
139 "type": "int",
140 "description": "The timeout in milliseconds for responses to be issued by APEX torequests, this parameter is mandatory if the event handler is in synchronous mode",
141 "required": false,
142 "default": ""
143 },
144 "requestor_mode": {
145 "type": "bool",
146 "description": "Specifies the event handler is in requestor mode (send event and wait for response mode)",
147 "required": false,
148 "default": false
149 },
150 "requestor_peer": {
151 "type": "string",
152 "description": "The peer event handler (output for input or input for output) of this event handler in requestor mode, this parameter is mandatory if the event handler is in requestor mode",
153 "required": false,
154 "default": ""
155 },
156 "requestor_timeout": {
157 "type": "int",
158 "description": "The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode",
159 "required": false,
160 "default": ""
161 }
162 }
163 }
164 },
165 {
166 "onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology": {
167 "derived_from": "tosca.datatypes.Root",
168 "properties": {
169 "label": {
170 "type": "string",
171 "description": "The label (name) of the carrier technology (such as REST, Kafka, WebSocket)",
172 "required": true
173 },
174 "plugin_parameter_class_name": {
175 "type": "string",
176 "description": "The class name of the class that overrides default handling of event input or output for this carrier technology, defaults to the supplied input or output class",
177 "required": false
178 }
179 }
180 }
181 },
182 {
183 "onap.datatypes.policies.controlloop.operational.apex.EventProtocol": {
184 "derived_from": "tosca.datatypes.Root",
185 "properties": {
186 "label": {
187 "type": "string",
188 "description": "The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)",
189 "required": true
190 },
191 "event_protocol_plugin_class": {
192 "type": "string",
193 "description": "The class name of the class that overrides default handling of the event protocol for this carrier technology, defaults to the supplied event protocol class",
194 "required": false
195 }
196 }
197 }
198 },
199 {
200 "onap.datatypes.policies.controlloop.operational.apex.Environmental": {
201 "derived_from": "tosca.datatypes.Root",
202 "properties": {
203 "name": {
204 "type": "string",
205 "description": "The name of the environment variable",
206 "required": true
207 },
208 "value": {
209 "type": "string",
210 "description": "The value of the environment variable",
211 "required": true
212 }
213 }
214 }
215 },
216 {
217 "onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine": {
218 "derived_from": "tosca.datatypes.Root",
219 "properties": {
220 "context": {
221 "type": "onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context",
222 "description": "The properties for handling context in APEX engines, defaults to using Java maps for context",
223 "required": false
224 },
225 "executors": {
226 "type": "map",
227 "description": "The plugins for policy executors used in engines such as javascript, MVEL, Jython",
228 "required": true,
229 "entry_schema": {
230 "description": "The plugin class path for this policy executor",
231 "type": "string"
232 }
233 }
234 }
235 }
236 },
237 {
238 "onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context": {
239 "derived_from": "tosca.datatypes.Root",
240 "properties": {
241 "distributor": {
242 "type": "onap.datatypes.policies.controlloop.operational.apex.Plugin",
243 "description": "The plugin to be used for distributing context between APEX PDPs at runtime",
244 "required": false
245 },
246 "schemas": {
247 "type": "map",
248 "description": "The plugins for context schemas available in APEX PDPs such as Java and Avro",
249 "required": false,
250 "entry_schema": {
251 "type": "onap.datatypes.policies.controlloop.operational.apex.Plugin"
252 }
253 },
254 "locking": {
255 "type": "onap.datatypes.policies.controlloop.operational.apex.plugin",
256 "description": "The plugin to be used for locking context in and between APEX PDPs at runtime",
257 "required": false
258 },
259 "persistence": {
260 "type": "onap.datatypes.policies.controlloop.operational.apex.Plugin",
261 "description": "The plugin to be used for persisting context for APEX PDPs at runtime",
262 "required": false
263 }
264 }
265 }
266 },
267 {
268 "onap.datatypes.policies.controlloop.operational.apex.Plugin": {
269 "derived_from": "tosca.datatypes.Root",
270 "properties": {
271 "name": {
272 "type": "string",
273 "description": "The name of the executor such as Javascript, Jython or MVEL",
274 "required": true
275 },
276 "plugin_class_name": {
277 "type": "string",
278 "description": "The class path of the plugin class for this executor"
279 }
280 }
281 }
282 }
283 ]
284}