BpGen refactor Code Quality Issue-ID: DCAEGEN2-2502
[dcaegen2/platform.git] / mod / bpgenerator / onap / src / test / resources / componentspecs / ves.json
1 {
2   "self": {
3     "version": "1.5.0",
4     "name": "dcae-ves-collector",
5     "description": "Collector for receiving VES events through restful interface",
6     "component_type": "docker"
7   },
8   "streams": {
9     "subscribes": [
10       {
11         "format": "dataformat_Hello_World_PM",
12         "version": "1.0.0",
13         "route": "/TEST_HELLO_WORLD_SUB_MR",
14         "type": "message_router",
15         "config_key": "TEST-SUB-MR"
16       },
17       {
18         "format": "dataformat_Hello_World_PM DR",
19         "version": "1.0.0",
20         "route": "/TEST_HELLO_WORLD_SUB_DR",
21         "type": "data_router",
22         "config_key": "TEST-SUB-DR"
23       }
24     ],
25     "publishes": [
26       {
27         "format": "VES_specification",
28         "version": "5.28.4",
29         "type": "message router",
30         "config_key": "ves-fault"
31       },
32       {
33         "format": "VES_specification",
34         "version": "5.28.4",
35         "type": "message router",
36         "config_key": "ves-measurement"
37       },
38       {
39         "format": "VES_specification",
40         "version": "5.28.4",
41         "type": "message router",
42         "config_key": "ves-other"
43       },
44       {
45         "format": "VES_specification",
46         "version": "5.28.4",
47         "type": "message router",
48         "config_key": "ves-heartbeat-secondary"
49       },
50       {
51         "format": "VES_specification",
52         "version": "7.30.0",
53         "type": "message router",
54         "config_key": "ves-pnfRegistration"
55       },
56       {
57         "format": "VES_specification",
58         "version": "7.30.0",
59         "type": "message router",
60         "config_key": "ves-notification"
61       }
62     ]
63   },
64   "services": {
65     "calls": [],
66     "provides": [
67       {
68         "route": "/eventListener/v1",
69         "verb": "POST",
70         "request": {
71           "format": "VES_specification",
72           "version": "4.27.2"
73         },
74         "response": {
75           "format": "ves.coll.response",
76           "version": "1.0.0"
77         }
78       },
79       {
80         "route": "/eventListener/v2",
81         "verb": "POST",
82         "request": {
83           "format": "VES_specification",
84           "version": "4.27.2"
85         },
86         "response": {
87           "format": "ves.coll.response",
88           "version": "1.0.0"
89         }
90       },
91       {
92         "route": "/eventListener/v3",
93         "verb": "POST",
94         "request": {
95           "format": "VES_specification",
96           "version": "4.27.2"
97         },
98         "response": {
99           "format": "ves.coll.response",
100           "version": "1.0.0"
101         }
102       },
103       {
104         "route": "/eventListener/v4",
105         "verb": "POST",
106         "request": {
107           "format": "VES_specification",
108           "version": "4.27.2"
109         },
110         "response": {
111           "format": "ves.coll.response",
112           "version": "1.0.0"
113         }
114       },
115       {
116         "route": "/eventListener/v5",
117         "verb": "POST",
118         "request": {
119           "format": "VES_specification",
120           "version": "5.28.4"
121         },
122         "response": {
123           "format": "ves.coll.response",
124           "version": "1.0.0"
125         }
126       },
127       {
128         "route": "/eventListener/v7",
129         "verb": "POST",
130         "request": {
131           "format": "VES_specification",
132           "version": "7.30.0"
133         },
134         "response": {
135           "format": "ves.coll.response",
136           "version": "1.0.0"
137         }
138       }
139     ]
140   },
141   "parameters": [
142     {
143       "name": "collector.service.port",
144       "value": 8080,
145       "description": "standard http port collector will open for listening;",
146       "sourced_at_deployment": false,
147       "policy_editable": false,
148       "designer_editable": false
149     },
150     {
151       "name": "collector.service.secure.port",
152       "value": 8443,
153       "description": "secure http port collector will open for listening ",
154       "sourced_at_deployment": false,
155       "policy_editable": false,
156       "designer_editable": true
157     },
158     {
159       "name": "collector.keystore.file.location",
160       "value": "/opt/app/dcae-certificate/keystore.jks",
161       "description": "fs location of keystore file in vm",
162       "sourced_at_deployment": false,
163       "policy_editable": false,
164       "designer_editable": false
165     },
166     {
167       "name": "collector.keystore.passwordfile",
168       "value": "/opt/app/dcae-certificate/.password",
169       "description": "location of keystore password file in vm",
170       "sourced_at_deployment": false,
171       "policy_editable": false,
172       "designer_editable": false
173     },
174     {
175       "name": "collector.truststore.file.location",
176       "value": "/opt/app/dcae-certificate/truststore.jks",
177       "description": "fs location of truststore file in vm",
178       "sourced_at_deployment": false,
179       "policy_editable": false,
180       "designer_editable": false
181     },
182     {
183       "name": "collector.truststore.passwordfile",
184       "value": "/opt/app/dcae-certificate/.trustpassword",
185       "description": "location of truststore password file in vm",
186       "sourced_at_deployment": false,
187       "policy_editable": false,
188       "designer_editable": false
189     },
190     {
191       "name": "collector.dmaap.streamid",
192       "value": "fault=ves-fault,ves-fault-secondary|syslog=ves-syslog,ves-syslog-secondary|heartbeat=ves-heartbeat,ves-heartbeat-secondary|measurementsForVfScaling=ves-measurement,ves-measurement-secondary|mobileFlow=ves-mobileflow,ves-mobileflow-secondary|other=ves-other,ves-other-secondary|stateChange=ves-statechange,ves-statechange-secondary|thresholdCrossingAlert=ves-thresholdCrossingAlert,ves-thresholdCrossingAlert-secondary|voiceQuality=ves-voicequality,ves-voicequality-secondary|sipSignaling=ves-sipsignaling,ves-sipsignaling-secondary|notification=ves-notification,ves-notification-secondary|pnfRegistration=ves-pnfRegistration,ves-pnfRegistration-secondary",
193       "description": "domain-to-streamid mapping used by VESCollector to distributes events based on domain. Both primary and secondary config_key are included for resilency (multiple streamid can be included commma separated). The streamids MUST match to topic config_keys. For single site without resiliency deployment - configkeys with -secondary suffix can be removed",
194       "sourced_at_deployment": true,
195       "policy_editable": false,
196       "designer_editable": false
197     },
198     {
199       "name": "auth.method",
200       "value": "noAuth",
201       "description": "Property to manage application mode, possible configurations: noAuth - default option - no security (http) , certOnly - auth by certificate (https), basicAuth - auth by basic auth username and password (https),certBasicAuth - auth by certificate and basic auth username / password (https),",
202       "sourced_at_deployment": false,
203       "policy_editable": false,
204       "designer_editable": false
205     },
206     {
207       "name": "header.authlist",
208       "value": "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy",
209       "description": "List of id and base 64 encoded password.For each onboarding VNF - unique userid and password should be assigned and communicated to VNF owner. Password value should be base64 encoded in config here",
210       "policy_editable": false,
211       "sourced_at_deployment": true,
212       "designer_editable": true
213     },
214     {
215       "name": "collector.schema.checkflag",
216       "value": 1,
217       "description": "Schema check validation flag. When enabled, collector will validate input VES events against VES Schema defined on collector.schema.file ",
218       "sourced_at_deployment": false,
219       "policy_editable": false,
220       "designer_editable": false
221     },
222     {
223       "name": "collector.schema.file",
224       "value": "{\"v1\":\"./etc/CommonEventFormat_27.2.json\",\"v2\":\"./etc/CommonEventFormat_27.2.json\",\"v3\":\"./etc/CommonEventFormat_27.2.json\",\"v4\":\"./etc/CommonEventFormat_27.2.json\",\"v5\":\"./etc/CommonEventFormat_28.4.1.json\",\"v7\":\"./etc/CommonEventFormat_30.json\"}",
225       "description": "VES schema file name per version used for validation",
226       "designer_editable": true,
227       "sourced_at_deployment": false,
228       "policy_editable": false
229     },
230     {
231       "name": "event.transform.flag",
232       "value": 1,
233       "description": "flag to enable tranformation rules defined under eventTransform.json; this is applicable when event tranformation rules preset should be activated for transforming <VES5.4 events to 5.4",
234       "sourced_at_deployment": false,
235       "policy_editable": false,
236       "designer_editable": false
237     },
238     {
239       "name": "testParam1",
240       "value": "test-param-1",
241       "description": "testParam1",
242       "sourced_at_deployment": true,
243       "policy_editable": true,
244       "policy_group": "Test_Parameters",
245       "required": true,
246       "designer_editable": true,
247       "policy_schema": [
248         {
249           "name": "PolicySchemaTest",
250           "description": "List of objects for vnf type monitorng",
251           "type": "String",
252           "entry_schema": [
253             {
254               "name": "TestEntrySchema",
255               "description": "entry",
256               "type": "string",
257               "value": "None"
258             }
259           ]
260         }
261       ]
262     },
263     {
264       "name": "tomcat.maxthreads",
265       "value": "200",
266       "description": "Tomcat control for concurrent request",
267       "sourced_at_deployment": false,
268       "policy_editable": false,
269       "designer_editable": false
270     }
271   ],
272   "auxilary": {
273     "healthcheck": {
274       "type": "http",
275       "interval": "15s",
276       "timeout": "1s",
277       "endpoint": "/healthcheck"
278     },
279     "livehealthcheck": {
280       "type": "http",
281       "interval": "15s",
282       "timeout": "1s",
283       "endpoint": "/livehealthcheck"
284     },
285     "databases": {
286       "dti": "postgres"
287     },
288     "reconfigs": {
289       "app_reconfig": "abc"
290     },
291     "policy": {
292       "trigger_type": "docker",
293       "script_path": "/opt/app/manager/bin/reconfigure.sh"
294     },
295     "volumes": [
296       {
297         "container": {
298           "bind": "/opt/app/dcae-certificate"
299         },
300         "host": {
301           "path": "/opt/app/dcae-certificate"
302         }
303       },
304       {
305         "container": {
306           "bind": "/opt/app/VESCollector/logs"
307         },
308         "host": {
309           "path": "/opt/logs/DCAE/VESCollector/logs"
310         }
311       },
312       {
313         "container": {
314           "bind": "/opt/app/VESCollector/etc"
315         },
316         "host": {
317           "path": "/opt/logs/DCAE/VESCollector/etc"
318         }
319       }
320     ],
321     "ports": [
322       "8080:8080",
323       "8443:8443"
324     ],
325     "tls_info": {
326       "cert_directory": "/opt/app/dcae-certificate/",
327       "use_tls": true,
328       "use_external_tls": true
329     }
330   },
331   "artifacts": [
332     {
333       "type": "docker image",
334       "uri": "nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
335     }
336   ]
337 }