Top up onboarding-api version (2.12.4) - for component spec schema update.
[dcaegen2/platform.git] / mod / runtimeapi / runtime-web / src / test / data / compspecs / componentSpec_hello_world.json
1 {
2         "self": {
3                 "component_type": "docker",
4                 "description": "Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR",
5                 "name": "dcae-collectors-vcc-helloworld-pm",
6                 "version": "1.0.1"
7         },
8         
9         "services": {
10                 "calls": [],
11                 "provides": []
12         },
13         
14         "streams": {
15                 "publishes": [{
16                                 "config_key": "DCAE-HELLO-WORLD-PUB-DR",
17                                 "format": "dataformat_Hello_World_PM",
18                                 "type": "data_router",
19                                 "version": "1.0.0"
20                         },
21                         {
22                                 "config_key": "DCAE-HELLO-WORLD-PUB-MR",
23                                 "format": "dataformat_Hello_World_PM",
24                                 "type": "message_router",
25                                 "version": "1.0.0"
26                         }
27                 ],
28
29                 "subscribes": [{
30                                 "config_key": "DCAE-HELLO-WORLD-SUB-MR",
31                                 "format": "dataformat_Hello_World_PM",
32                                 "route": "/DCAE_HELLO_WORLD_SUB_MR",
33                                 "type": "message_router",
34                                 "version": "1.0.0"
35                         },
36                         {
37                                 "config_key": "DCAE-HELLO-WORLD-SUB-DR",
38                                 "format": "dataformat_Hello_World_PM",
39                                 "route": "/DCAE-HELLO-WORLD-SUB-DR",
40                                 "type": "data_router",
41                                 "version": "1.0.0"
42                         }               
43                 ]
44         },
45         
46     "parameters": 
47     [
48         {
49             "name": "vcc_hello_name",
50             "value": "",
51             "type": "string",
52             "description": "the name entered for specific person",
53                         "sourced_at_deployment": true,
54                         "designer_editable": false,
55                         "policy_editable": false            
56         },
57         
58         {
59                         "name": "useDtiConfig",
60                         "value": false,
61                         "type": "boolean",
62                         "description": "component depends on configuration from dti.",
63                         "sourced_at_deployment": false,
64                         "designer_editable": true,
65                         "policy_editable": false,
66                          "required" : true
67                 },
68
69                 {
70                         "name": "isSelfServeComponent",
71                         "value": false,
72                         "type": "boolean",
73                         "description": "Is this used as self serve component.",
74                         "sourced_at_deployment": false,
75                         "designer_editable": true,
76                         "policy_editable": false,
77                         "required" : true
78                 }
79     ],
80
81         "auxilary": {
82                 "healthcheck": {
83                         "interval": "60s",
84                         "timeout": "20s",
85                         "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh",
86                         "type": "docker"
87                 },
88                 
89                 "volumes": [
90                 {
91                         "container": {
92                         "bind": "/opt/app/dcae-certificate"
93                         },
94                         "host": {
95                                 "path": "/opt/app/dcae-certificate"
96                         }
97                 },
98                 {
99                         "container": {
100                         "bind": "/opt/logs/DCAE/dmd/AGENT"
101                         },
102                         "host": {
103                                 "path": "/opt/logs/DCAE/helloworldpm/dmd/AGENT"
104                         }
105                 },
106                 {
107                         "container": {
108                         "bind": "/opt/logs/DCAE/dmd/WATCHER"
109                         },
110                         "host": {
111                                 "path": "/opt/logs/DCAE/helloworldpm/dmd/WATCHER"
112                         }
113                 },
114                 {
115                         "container": {
116                         "bind": "/opt/app/vcc/logs/DCAE"
117                         },
118                         "host": {
119                                 "path": "/opt/logs/DCAE/helloworldpm/vcc-logs"
120                         }
121                 },
122                 {
123                         "container": {
124                         "bind": "/opt/app/vcc/archive/data"
125                         },
126                         "host": {
127                                 "path": "/opt/data/DCAE/helloworldpm/vcc-archive"
128                         }
129                 }
130                 
131         ]        
132     },
133     
134     "artifacts": [{
135                 "type": "docker image",
136                 "uri": "dcae-controller-vcc-helloworld-pm:18.02-001"
137         }]      
138 }