Policy Model Distribution POC Issue-ID: DCAEGEN2-1868
[dcaegen2/platform.git] / mod2 / catalog-service / src / test / resources / http / requests / pmdist_sample.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         {
15           "config_key": "DCAE-HELLO-WORLD-PUB-DR",
16           "format": "dataformat_Hello_World_PM",
17           "type": "data_router",
18           "version": "1.0.0"
19         },
20         {
21           "config_key": "DCAE-HELLO-WORLD-PUB-MR",
22           "format": "dataformat_Hello_World_PM",
23           "type": "message_router",
24           "version": "1.0.0"
25         }
26       ],
27       "subscribes": [
28         {
29           "config_key": "DCAE-HELLO-WORLD-SUB-MR",
30           "format": "dataformat_Hello_World_PM",
31           "route": "/DCAE_HELLO_WORLD_SUB_MR",
32           "type": "message_router",
33           "version": "1.0.0"
34         },
35         {
36           "config_key": "DCAE-HELLO-WORLD-SUB-DR",
37           "format": "dataformat_Hello_World_PM",
38           "route": "/DCAE-HELLO-WORLD-SUB-DR",
39           "type": "data_router",
40           "version": "1.0.0"
41         }
42       ]
43     },
44     "parameters": [
45       {
46         "name": "vcc_hello_name",
47         "value": "120",
48         "type": "integer",
49         "description": "the name entered for specific person",
50         "sourced_at_deployment": false,
51         "designer_editable": false,
52         "policy_editable": false
53       },
54       {
55         "name": "useDtiConfig",
56         "value": false,
57         "type": "boolean",
58         "description": "component depends on configuration from dti.",
59         "sourced_at_deployment": false,
60         "designer_editable": true,
61         "policy_editable": false,
62         "required": true
63       },
64       {
65         "name": "isSelfServeComponent",
66         "value": false,
67         "type": "boolean",
68         "description": "Is this used as self serve component.",
69         "sourced_at_deployment": false,
70         "designer_editable": true,
71         "policy_editable": false,
72         "required": true
73       }
74     ],
75     "auxilary": {
76       "healthcheck": {
77         "interval": "60s",
78         "initialDelaySeconds": "120s",
79         "timeout": "20s",
80         "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh",
81         "type": "docker"
82       },
83       "livehealthcheck": {
84         "interval": "60s",
85         "initialDelaySeconds": "120s",
86         "timeout": "20s",
87         "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh",
88         "type": "docker"
89       },
90       "reconfigs": {
91         "app_reconfig": "abc"
92       },
93       "volumes": [
94         {
95           "container": {
96             "bind": "/opt/app/dcae-certificate"
97           },
98           "host": {
99             "path": "/opt/app/dcae-certificate"
100           }
101         },
102         {
103           "container": {
104             "bind": "/opt/logs/DCAE/dmd/AGENT"
105           },
106           "host": {
107             "path": "/opt/logs/DCAE/helloworldpm/dmd/AGENT"
108           }
109         },
110         {
111           "container": {
112             "bind": "/opt/logs/DCAE/dmd/WATCHER"
113           },
114           "host": {
115             "path": "/opt/logs/DCAE/helloworldpm/dmd/WATCHER"
116           }
117         },
118         {
119           "container": {
120             "bind": "/opt/app/vcc/logs/DCAE"
121           },
122           "host": {
123             "path": "/opt/logs/DCAE/helloworldpm/vcc-logs"
124           }
125         },
126         {
127           "container": {
128             "bind": "/opt/app/vcc/archive/data"
129           },
130           "host": {
131             "path": "/opt/data/DCAE/helloworldpm/vcc-archive"
132           }
133         }
134       ]
135     },
136     "artifacts": [
137       {
138         "type": "docker image",
139         "uri": "dockercentral.it.att.com:5100/com.att.sample/dcae-controller-vcc-helloworld-pm:18.02-001"
140       }
141     ]
142   }