Add distributor api project
[dcaegen2/platform.git] / mod / distributorapi / tests / components.json
1 [
2 {
3   "spec": {
4     "self": {
5       "version": "1.5.0",
6       "name": "dcae-ves-collector",
7       "description": "Collector for receiving VES events through restful interface",
8       "component_type": "docker"
9     },
10     "streams": {
11       "subscribes": [],
12       "publishes": [
13         {
14           "format": "VES_specification",
15           "version": "7.30.1",
16           "type": "message router",
17           "config_key": "ves-pnfRegistration"
18         },
19         {
20           "format": "VES_specification",
21           "version": "7.30.1",
22           "type": "message router",
23           "config_key": "ves-pnfRegistration-secondary"
24         },
25         {
26           "format": "VES_specification",
27           "version": "7.30.1",
28           "type": "message router",
29           "config_key": "ves-notification"
30         },
31         {
32           "format": "VES_specification",
33           "version": "7.30.1",
34           "type": "message router",
35           "config_key": "ves-notification-secondary"
36         }
37       ]
38     },
39     "services": {
40       "calls": [],
41       "provides": []
42     },
43     "parameters": [
44       {
45         "name": "collector.service.port",
46         "value": 8080,
47         "description": "standard http port collector will open for listening;",
48         "sourced_at_deployment": false,
49         "policy_editable": false,
50         "designer_editable": false
51       },
52       {
53         "name": "collector.service.secure.port",
54         "value": 8443,
55         "description": "secure http port collector will open for listening ",
56         "sourced_at_deployment": false,
57         "policy_editable": false,
58         "designer_editable": true
59       },
60       {
61         "name": "collector.keystore.file.location",
62         "value": "/opt/app/dcae-certificate/keystore.jks",
63         "description": "fs location of keystore file in vm",
64         "sourced_at_deployment": false,
65         "policy_editable": false,
66         "designer_editable": false
67       },
68       {
69         "name": "collector.keystore.passwordfile",
70         "value": "/opt/app/dcae-certificate/.password",
71         "description": "location of keystore password file in vm",
72         "sourced_at_deployment": false,
73         "policy_editable": false,
74         "designer_editable": false
75       },
76       {
77         "name": "collector.truststore.file.location",
78         "value": "/opt/app/dcae-certificate/truststore.jks",
79         "description": "fs location of truststore file in vm",
80         "sourced_at_deployment": false,
81         "policy_editable": false,
82         "designer_editable": false
83       },
84       {
85         "name": "collector.truststore.passwordfile",
86         "value": "/opt/app/dcae-certificate/.trustpassword",
87         "description": "location of truststore password file in vm",
88         "sourced_at_deployment": false,
89         "policy_editable": false,
90         "designer_editable": false
91       },
92       {
93         "name": "collector.dmaap.streamid",
94         "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",
95         "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",
96         "sourced_at_deployment": true,
97         "policy_editable": false,
98         "designer_editable": false
99       },
100       {
101         "name": "auth.method",
102         "value": "noAuth",
103         "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),",
104         "sourced_at_deployment": false,
105         "policy_editable": false,
106         "designer_editable": false
107       },
108       {
109         "name": "header.authlist",
110         "value": "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy",
111         "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",
112         "policy_editable": false,
113         "sourced_at_deployment": true,
114         "designer_editable": true
115       },
116       {
117         "name": "collector.schema.checkflag",
118         "value": 1,
119         "description": "Schema check validation flag. When enabled, collector will validate input VES events against VES Schema defined on collector.schema.file ",
120         "sourced_at_deployment": false,
121         "policy_editable": false,
122         "designer_editable": false
123       },
124       {
125         "name": "collector.schema.file",
126         "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\"}",
127         "description": "VES schema file name per version used for validation",
128         "designer_editable": true,
129         "sourced_at_deployment": false,
130         "policy_editable": false
131       },
132       {
133         "name": "event.transform.flag",
134         "value": 1,
135         "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",
136         "sourced_at_deployment": false,
137         "policy_editable": false,
138         "designer_editable": false
139       },
140       {
141         "name": "tomcat.maxthreads",
142         "value": "200",
143         "description": "Tomcat control for concurrent request",
144         "sourced_at_deployment": false,
145         "policy_editable": false,
146         "designer_editable": false
147       }
148     ],
149     "auxilary": {
150       "healthcheck": {
151         "type": "https",
152         "interval": "15s",
153         "timeout": "1s",
154         "endpoint": "/healthcheck"
155       },
156       "volumes": [
157         {
158           "container": {
159             "bind": "/opt/app/dcae-certificate"
160           },
161           "host": {
162             "path": "/opt/app/dcae-certificate"
163           }
164         },
165         {
166           "container": {
167             "bind": "/opt/app/VESCollector/logs"
168           },
169           "host": {
170             "path": "/opt/logs/DCAE/VESCollector/logs"
171           }
172         },
173         {
174           "container": {
175             "bind": "/opt/app/VESCollector/etc"
176           },
177           "host": {
178             "path": "/opt/logs/DCAE/VESCollector/etc"
179           }
180         }
181       ],
182       "ports": [
183         "8080:8080",
184         "8443:8443"
185       ]
186     },
187     "artifacts": [
188       {
189         "type": "docker image",
190         "uri": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
191       }
192     ]
193   },
194   "id": "75c9a179-b36b-4985-9445-d44c8768d6eb",
195   "name": "dcae-ves-collector",
196   "version": "1.5.0",
197   "owner": "spike",
198   "whenAdded": "2019-10-04T15:16:01.717861",
199   "modified": "2019-10-04T15:16:37.234517",
200   "status": "published",
201   "description": "Collector for receiving VES events through restful interface",
202   "componentType": "docker",
203   "componentUrl": "http://t3-2/onboarding/components/75c9a179-b36b-4985-9445-d44c8768d6eb"
204 },
205 {
206   "spec": {
207     "parameters": [],
208     "artifacts": [
209       {
210         "type": "docker image",
211         "uri": "anomaly-detector:3"
212       }
213     ],
214     "self": {
215       "version": "1.0.0",
216       "name": "anomaly-detector",
217       "component_type": "docker",
218       "description": "Automatically generated from Acumos model"
219     },
220     "streams": {
221       "publishes": [
222         {
223           "type": "message_router",
224           "version": "1.0.0",
225           "config_key": "predict_publisher",
226           "format": "OutputFormat"
227         }
228       ],
229       "subscribes": [
230         {
231           "type": "message_router",
232           "version": "1.0.0",
233           "config_key": "predict_subscriber",
234           "format": "PredictIn"
235         }
236       ]
237     },
238     "auxilary": {
239       "healthcheck": {
240         "endpoint": "/healthcheck",
241         "type": "http"
242       }
243     },
244     "services": {
245       "provides": [],
246       "calls": []
247     }
248   },
249   "id": "3fadb641-2079-4ca9-bb07-0df5952967fc",
250   "name": "anomaly-detector",
251   "version": "1.0.0",
252   "owner": "spike",
253   "whenAdded": "2019-10-04T18:00:56.433976",
254   "modified": "2019-10-04T18:00:56.433971",
255   "status": "unpublished",
256   "description": "Automatically generated from Acumos model",
257   "componentType": "docker",
258   "componentUrl": "http://t3-2/onboarding/components/3fadb641-2079-4ca9-bb07-0df5952967fc"
259 }
260 ]