bp-gen code clone from cli repo
[dcaegen2/platform.git] / mod / bpgenerator / TestCases / hello.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         "services": {
9                 "calls": [],
10                 "provides": []
11         },
12         "streams": {
13                 "publishes": [{
14                                 "config_key": "DCAE-HELLO-WORLD-PUB-DR",
15                                 "format": "dataformat_Hello_World_PM",
16                                 "type": "data_router",
17                                 "version": "1.0.0"
18                         },
19                         {
20                                 "config_key": "DCAE-HELLO-WORLD-PUB-MR",
21                                 "format": "dataformat_Hello_World_PM",
22                                 "type": "message_router",
23                                 "version": "1.0.0"
24                         }
25                 ],
26                 "subscribes": [{
27                                 "config_key": "DCAE-HELLO-WORLD-SUB-MR",
28                                 "format": "dataformat_Hello_World_PM",
29                                 "route": "/DCAE_HELLO_WORLD_SUB_MR",
30                                 "type": "message_router",
31                                 "version": "1.0.0"
32                         },
33                         {
34                                 "config_key": "DCAE-HELLO-WORLD-SUB-DR",
35                                 "format": "dataformat_Hello_World_PM",
36                                 "route": "/DCAE-HELLO-WORLD-SUB-DR",
37                                 "type": "data_router",
38                                 "version": "1.0.0"
39                         }               
40                 ]
41         },
42     "parameters": 
43     [
44         {
45             "name": "vcc_hello_name",
46             "value": "fsdfa",
47             "description": "the name entered for specific person",
48                         "sourced_at_deployment": true,
49                         "designer_editable": true,
50                         "policy_editable": false,
51                         "type": "string"         
52         },
53         
54         {
55                         "name": "useDtiConfig",
56                         "value": false,
57                         "description": "component depends on configuration from dti.",
58                         "sourced_at_deployment": false,
59                         "designer_editable": false,
60                         "policy_editable": false,
61                          "required" : true
62                 },
63
64                 {
65                         "name": "isSelfServeComponent",
66                         "value": false,
67                         "description": "Is this used as self serve component.",
68                         "sourced_at_deployment": false,
69                         "designer_editable": false,
70                         "policy_editable": false,
71                         "required" : true,
72                         "type": "string"
73                 }
74     ],
75         "auxilary": {
76                 "healthcheck": {
77                         "interval": "60s",
78                         "timeout": "20s",
79                         "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh",
80                         "type": "docker"
81                 },
82                 "volumes": [
83                 {
84                         "container": {
85                         "bind": "/opt/app/dcae-certificate"
86                         },
87                         "host": {
88                                 "path": "/opt/app/dcae-certificate"
89                         }
90                 },
91                 {
92                         "container": {
93                         "bind": "/opt/logs/DCAE/dmd/AGENT"
94                         },
95                         "host": {
96                                 "path": "/opt/logs/DCAE/helloworldpm/dmd/AGENT"
97                         }
98                 },
99                 {
100                         "container": {
101                         "bind": "/opt/logs/DCAE/dmd/WATCHER"
102                         },
103                         "host": {
104                                 "path": "/opt/logs/DCAE/helloworldpm/dmd/WATCHER"
105                         }
106                 },
107                 {
108                         "container": {
109                         "bind": "/opt/app/vcc/logs/DCAE"
110                         },
111                         "host": {
112                                 "path": "/opt/logs/DCAE/helloworldpm/vcc-logs"
113                         }
114                 },
115                 {
116                         "container": {
117                         "bind": "/opt/app/vcc/archive/data"
118                         },
119                         "host": {
120                                 "path": "/opt/data/DCAE/helloworldpm/vcc-archive"
121                         }
122                 }
123         ]        
124     },
125     "artifacts": [{
126                 "type": "docker image",
127                 "uri": "dockercentral.it.att.com:5100/com.att.dcae.controller/dcae-controller-vcc-helloworld-pm:18.02-001"
128         }]      
129 }