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