Helm-generator - seedcode delivery for helm chart generation tool from component...
[dcaegen2/platform.git] / mod2 / helm-generator / helmchartgenerator-cli / src / test / input / specs / vescollector-componentspec-v3-helm.json
1 {
2   "self": {
3     "version": "1.8.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     "publishes": [
11       {
12         "format": "VES_specification",
13         "version": "5.28.4",
14         "type": "message router",
15         "config_key": "ves-fault"
16       },
17       {
18         "format": "VES_specification",
19         "version": "5.28.4",
20         "type": "message router",
21         "config_key": "ves-measurement"
22       },
23       {
24         "format": "VES_specification",
25         "version": "5.28.4",
26         "type": "message router",
27         "config_key": "ves-syslog"
28       },
29       {
30         "format": "VES_specification",
31         "version": "5.28.4",
32         "type": "message router",
33         "config_key": "ves-heartbeat"
34       },
35       {
36         "format": "VES_specification",
37         "version": "7.30.2",
38         "type": "message router",
39         "config_key": "ves-other"
40       },
41       {
42         "format": "VES_specification",
43         "version": "5.28.4",
44         "type": "message router",
45         "config_key": "ves-mobileflow"
46       },
47       {
48         "format": "VES_specification",
49         "version": "5.28.4",
50         "type": "message router",
51         "config_key": "ves-statechange"
52       },
53       {
54         "format": "VES_specification",
55         "version": "5.28.4",
56         "type": "message router",
57         "config_key": "ves-thresholdCrossingAlert"
58       },
59       {
60         "format": "VES_specification",
61         "version": "5.28.4",
62         "type": "message router",
63         "config_key": "ves-voicequality"
64       },
65       {
66         "format": "VES_specification",
67         "version": "5.28.4",
68         "type": "message router",
69         "config_key": "ves-sipsignaling"
70       },
71       {
72         "format": "VES_specification",
73         "version": "7.30.2",
74         "type": "message router",
75         "config_key": "ves-pnfRegistration"
76       },
77       {
78         "format": "VES_specification",
79         "version": "7.30.2",
80         "type": "message router",
81         "config_key": "ves-notification"
82       },
83       {
84         "format": "VES_specification",
85         "version": "7.30.2",
86         "type": "message router",
87         "config_key": "ves-perf3gpp"
88       },
89       {
90         "format": "VES_specification",
91         "version": "7.30.2",
92         "type": "message router",
93         "config_key": "ves-3gpp-fault-supervision"
94       },
95       {
96         "format": "VES_specification",
97         "version": "7.30.2",
98         "type": "message router",
99         "config_key": "ves-3gpp-provisioning"
100       },
101       {
102         "format": "VES_specification",
103         "version": "7.30.2",
104         "type": "message router",
105         "config_key": "ves-3gpp-heartbeat"
106       },
107       {
108         "format": "VES_specification",
109         "version": "7.30.2",
110         "type": "message router",
111         "config_key": "ves-3gpp-performance-assurance"
112       }
113     ]
114   },
115   "services": {
116     "calls": [],
117     "provides": [
118       {
119         "route": "/eventListener/v1",
120         "verb": "POST",
121         "request": {
122           "format": "VES_specification",
123           "version": "4.27.2"
124         },
125         "response": {
126           "format": "ves.coll.response",
127           "version": "1.0.0"
128         }
129       },
130       {
131         "route": "/eventListener/v2",
132         "verb": "POST",
133         "request": {
134           "format": "VES_specification",
135           "version": "4.27.2"
136         },
137         "response": {
138           "format": "ves.coll.response",
139           "version": "1.0.0"
140         }
141       },
142       {
143         "route": "/eventListener/v3",
144         "verb": "POST",
145         "request": {
146           "format": "VES_specification",
147           "version": "4.27.2"
148         },
149         "response": {
150           "format": "ves.coll.response",
151           "version": "1.0.0"
152         }
153       },
154       {
155         "route": "/eventListener/v4",
156         "verb": "POST",
157         "request": {
158           "format": "VES_specification",
159           "version": "4.27.2"
160         },
161         "response": {
162           "format": "ves.coll.response",
163           "version": "1.0.0"
164         }
165       },
166       {
167         "route": "/eventListener/v5",
168         "verb": "POST",
169         "request": {
170           "format": "VES_specification",
171           "version": "5.28.4"
172         },
173         "response": {
174           "format": "ves.coll.response",
175           "version": "1.0.0"
176         }
177       },
178       {
179         "route": "/eventListener/v7",
180         "verb": "POST",
181         "request": {
182           "format": "VES_specification",
183           "version": "7.30.2"
184         },
185         "response": {
186           "format": "ves.coll.response",
187           "version": "1.0.0"
188         }
189       }
190     ]
191   },
192   "parameters": [
193     {
194       "name": "streams_publishes",
195       "value": {
196         "ves-fault": {
197           "dmaap_info": {
198             "topic_url": "http://message-router:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
199           },
200           "type": "message_router"
201         },
202                 "ves-measurement": {
203           "dmaap_info": {
204             "topic_url": "http://message-router:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT"
205           },
206           "type": "message_router"
207         },
208                 "ves-notification": {
209           "dmaap_info": {
210             "topic_url": "http://message-router:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
211           },
212           "type": "message_router"
213         },
214                 "ves-pnfRegistration": {
215           "dmaap_info": {
216             "topic_url": "http://message-router:3904/events/unauthenticated.VES_PNFREG_OUTPUT"
217           },
218           "type": "message_router"
219         },
220                 "ves-heartbeat": {
221           "dmaap_info": {
222             "topic_url": "http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
223           },
224           "type": "message_router"
225         },
226                 "ves-other": {
227           "dmaap_info": {
228             "topic_url": "http://message-router:3904/events/unauthenticated.SEC_OTHER_OUTPUT"
229           },
230           "type": "message_router"
231         },
232                 "ves-3gpp-fault-supervision": {
233           "dmaap_info": {
234             "topic_url": "http://message-router:3904/events/unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT"
235           },
236           "type": "message_router"
237         },
238                 "ves-3gpp-provisioning": {
239           "dmaap_info": {
240             "topic_url": "http://message-router:3904/events/unauthenticated.SEC_3GPP_PROVISIONING_OUTPUT"
241           },
242           "type": "message_router"
243         },
244                 "ves-3gpp-heartbeat": {
245           "dmaap_info": {
246             "topic_url": "http://message-router:3904/events/unauthenticated.SEC_3GPP_HEARTBEAT_OUTPUT"
247           },
248           "type": "message_router"
249         },
250                 "ves-3gpp-performance-assurance": {
251           "dmaap_info": {
252             "topic_url": "http://message-router:3904/events/unauthenticated.SEC_3GPP_PERFORMANCEASSURANCE_OUTPUT"
253           },
254           "type": "message_router"
255         }
256       },
257       "description": "standard http port collector will open for listening;",
258       "sourced_at_deployment": false,
259       "policy_editable": false,
260       "designer_editable": false
261     },
262     {
263       "name": "collector.service.port",
264       "value": 8080,
265       "description": "standard http port collector will open for listening;",
266       "sourced_at_deployment": false,
267       "policy_editable": false,
268       "designer_editable": false
269     },
270     {
271       "name": "collector.service.secure.port",
272       "value": 8443,
273       "description": "secure http port collector will open for listening ",
274       "sourced_at_deployment": false,
275       "policy_editable": false,
276       "designer_editable": true
277     },
278     {
279       "name": "collector.keystore.file.location",
280       "value": "/opt/app/dcae-certificate/cert.jks",
281       "description": "fs location of keystore file in vm",
282       "sourced_at_deployment": false,
283       "policy_editable": false,
284       "designer_editable": false
285     },
286     {
287       "name": "collector.keystore.passwordfile",
288       "value": "/opt/app/dcae-certificate/jks.pass",
289       "description": "location of keystore password file in vm",
290       "sourced_at_deployment": false,
291       "policy_editable": false,
292       "designer_editable": false
293     },
294     {
295       "name": "collector.truststore.file.location",
296       "value": "/opt/app/dcae-certificate/trust.jks",
297       "description": "fs location of truststore file in vm",
298       "sourced_at_deployment": false,
299       "policy_editable": false,
300       "designer_editable": false
301     },
302     {
303       "name": "collector.truststore.passwordfile",
304       "value": "/opt/app/dcae-certificate/trust.pass",
305       "description": "location of truststore password file in vm",
306       "sourced_at_deployment": false,
307       "policy_editable": false,
308       "designer_editable": false
309     },
310     {
311       "name": "collector.dmaap.streamid",
312       "value": "fault=ves-fault|syslog=ves-syslog|heartbeat=ves-heartbeat|measurementsForVfScaling=ves-measurement|mobileFlow=ves-mobileflow|other=ves-other|stateChange=ves-statechange|thresholdCrossingAlert=ves-thresholdCrossingAlert|voiceQuality=ves-voicequality|sipSignaling=ves-sipsignaling|notification=ves-notification|pnfRegistration=ves-pnfRegistration|3GPP-FaultSupervision=ves-3gpp-fault-supervision|3GPP-Heartbeat=ves-3gpp-heartbeat|3GPP-Provisioning=ves-3gpp-provisioning|3GPP-PerformanceAssurance=ves-3gpp-performance-assurance",
313       "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",
314       "sourced_at_deployment": true,
315       "policy_editable": false,
316       "designer_editable": false
317     },
318     {
319       "name": "auth.method",
320       "value": "noAuth",
321       "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),",
322       "sourced_at_deployment": false,
323       "policy_editable": false,
324       "designer_editable": false
325     },
326     {
327       "name": "header.authlist",
328       "value": "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy",
329       "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",
330       "policy_editable": false,
331       "sourced_at_deployment": true,
332       "designer_editable": true
333     },
334     {
335       "name": "collector.schema.checkflag",
336       "value": 1,
337       "description": "Schema check validation flag. When enabled, collector will validate input VES events against VES Schema defined on collector.schema.file ",
338       "sourced_at_deployment": false,
339       "policy_editable": false,
340       "designer_editable": false
341     },
342     {
343       "name": "collector.schema.file",
344       "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.2.1_ONAP.json\"}",
345       "description": "VES schema file name per version used for validation",
346       "designer_editable": true,
347       "sourced_at_deployment": false,
348       "policy_editable": false
349     },
350     {
351       "name": "event.transform.flag",
352       "value": 1,
353       "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",
354       "sourced_at_deployment": false,
355       "policy_editable": false,
356       "designer_editable": false
357     },
358     {
359       "name": "tomcat.maxthreads",
360       "value": "200",
361       "description": "Tomcat control for concurrent request",
362       "sourced_at_deployment": false,
363       "policy_editable": false,
364       "designer_editable": false
365     },
366     {
367       "name": "collector.externalSchema.checkflag",
368       "value": 1,
369       "description": "Schema stndDefined validation flag. When enabled, collector will validate stndDefined fields in stndDefined domain events against mapped local schemas listed in file from property collector.externalSchema.mappingFileLocation.",
370       "sourced_at_deployment": false,
371       "policy_editable": false,
372       "designer_editable": true
373     },
374     {
375       "name": "collector.externalSchema.schemasLocation",
376       "value": "./etc/externalRepo/",
377       "description": "External schemas repository. Path to schemas storage directory.",
378       "sourced_at_deployment": false,
379       "policy_editable": false,
380       "designer_editable": false
381     },
382     {
383       "name": "collector.externalSchema.mappingFileLocation",
384       "value": "./etc/externalRepo/schema-map.json",
385       "description": "Path to JSON file containing mapping of externally located stndDefined schemas to local schema files.",
386       "sourced_at_deployment": false,
387       "policy_editable": false,
388       "designer_editable": false
389     },
390     {
391       "name": "event.externalSchema.schemaRefPath",
392       "value": "$.event.stndDefinedFields.schemaReference",
393       "description": "An internal path from validated JSON. Defines which field is taken as public schema reference, which is later mapped.",
394       "sourced_at_deployment": false,
395       "policy_editable": false,
396       "designer_editable": false
397     },
398     {
399       "name": "event.externalSchema.stndDefinedDataPath",
400       "value": "$.event.stndDefinedFields.data",
401       "description": "An internal path from validated JSON. Defines which field of event will be validated during stndDefined validation.",
402       "sourced_at_deployment": false,
403       "policy_editable": false,
404       "designer_editable": false
405     },
406     {
407       "name": "collector.description.api.version.location",
408       "value": "etc/api_version_description.json",
409       "description": "Path to the file containing description of api versions",
410       "sourced_at_deployment": false,
411       "policy_editable": false,
412       "designer_editable": false
413     }
414   ],
415   "auxilary": {
416         "helm": {
417       "service": {
418         "type": "NodePort",
419         "name": "dcae-ves-collector",
420         "has_internal_only_ports": true,
421         "ports": [
422           {
423             "name": "http",
424             "port": 8443,
425             "plain_port": 8080,
426             "port_protocol": "http",
427             "nodePort": 17,
428             "useNodePortExt": true
429           }
430         ]
431       }
432     },
433     "healthcheck": {
434       "type": "HTTP",
435       "interval": "15s",
436       "timeout": "1s",
437           "port": 8080,
438       "endpoint": "/healthcheck"
439     },
440     "volumes": [{
441       "config_volume": {
442         "name": "dcae-external-repo-configmap-schema-map"
443       },
444       "container": {
445         "bind": "/opt/app/VESCollector/etc/externalRepo/"
446       }
447     }, {
448       "config_volume": {
449         "name": "dcae-external-repo-configmap-sa88-rel16"
450       },
451       "container": {
452         "bind": "/opt/app/VESCollector/etc/externalRepo/3gpp/rep/sa5/MnS/blob/SA88-Rel16/OpenAPI/"
453       }
454     }],
455     "ports": [
456       "8080:0",
457       "8443:0"
458     ],
459     "log_info": {
460         "log_directory": "/opt/app/VESCollector/logs/"
461      },
462     "tls_info":{
463         "cert_directory":"/opt/app/dcae-certificate/",
464         "use_tls":true,
465         "use_external_tls": false
466      }
467   },
468   "artifacts": [
469     {
470       "type": "docker image",
471       "uri": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
472     }
473   ]
474 }
475