DCAE-D be initial commit
[sdc/dcae-d/dt-be-main.git] / dcaedt_tools / src / ReadMe.txt
1 How to run:
2 mvn exec:java -Dexec.mainClass=Main -Dexec.args="'environment.json' 'config.json'"
3
4 environment.json example:
5
6 {
7     "dcaeBeHost": "http://135.91.225.81",
8     "dcaeBePort": "8080",
9     "apiPath": "/dcae"
10     "userEditor": "admin"
11 }
12
13 config.json example:
14    {
15         "templateInfo": [{
16                 "name": "SNMP Fault",
17                 "description": "SNMP FM with Map-Supplement-Enrich",
18                 "category": "Template / Base Monitoring Template",
19                 "subCategory":"some subCategory",
20                 "updateIfExist": "true",
21                 "composition": [{
22                         "type": "Map",
23                         "alias": "mapper"
24                 }, {
25                         "type": "Supplement",
26                         "alias": "sup"
27                 }, {
28                         "type": "Enrich",
29                         "alias": "enrich"
30                 }]
31         },
32                 {
33                         "name": "FOI",
34                         "description": "FOI SFTP with FOI-Collector and Docker-Map",
35                         "category": "Template / Base Monitoring Template",
36                         "subCategory":"some subCategory",
37                         "updateIfExist": "true",
38                         "composition": [{
39                                 "type": "FOI Collector",
40                                 "alias": "collector"
41                         }, {
42                                 "type": "DockerMap",
43                                 "alias": "map"
44                         }],
45                         "relation": [{
46                                 "fromComponent": "collector.FOISftp",
47                                 "fromRequirement": "stream_publish_0",
48                                 "toComponent": "map.topic1",
49                                 "toCapability": "topic"
50                         }]
51                 },
52                 {
53                         "name": "Syslog non-VES Collector",
54                         "description": "Syslog flow with Syslog Collector",
55                         "category": "Template / Base Monitoring Template",
56                         "subCategory":"some subCategory",
57                         "updateIfExist": "true",
58                         "composition": [{
59                                 "type": "Syslog",
60                                 "alias": "collector"
61                         }]
62                 }
63         ]
64    }