Skip to content

Commit

Permalink
Add support for multijson example
Browse files Browse the repository at this point in the history
  • Loading branch information
eranra committed Nov 29, 2019
1 parent bf8f1cd commit 4c372ae
Show file tree
Hide file tree
Showing 14 changed files with 521 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ skydivetopology.json
.DS_Store
.env
.idea/
out/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Expand Down
3 changes: 2 additions & 1 deletion tools/csvstoskyui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
1. data/example_datacenter
1. data/example_submariner
1. data/example_scale
1. data/example_multijson

### Note: this project is using [Skydive UI](https://github.com/skydive-project/skydive-ui)

### Installation
* Clone this repository
* Execute `./do.sh`
* Execute `./do.sh -d example_datacenter`
* Browse to <http://localhost:8080/?data=/assets/dump.json>
16 changes: 16 additions & 0 deletions tools/csvstoskyui/data/example_multijson/DataCenter1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"data_center": {"filename": "data/example_multijson/data_centers.csv",
"valuesfilter": {"Name": "DataCenter1"},
"show": True},
"host": {"filename": "data/example_multijson/hosts.csv",
"show": True,
"valuesfilter": {"DataCenter": "DataCenter1"},
"edges": [{"from": ["DataCenter"], "to": {"data_center": ["Name"]}, "RelationType": "ownership"}]},
"vm": {"filename": "data/example_multijson/vms.csv",
"show": True,
"valuesfilter": {"Host": "Host1|Host2"},
"edges": [{"from": ["Host"], "to": {"host": ["Name"]}, "RelationType": "ownership"},
{"from": ["Application"], "to": {"application": ["Name"]}, "RelationType": "application"}]},
"application": {"filename": "data/example_multijson/applications.csv",
"show": True}
}
16 changes: 16 additions & 0 deletions tools/csvstoskyui/data/example_multijson/DataCenter2.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"data_center": {"filename": "data/example_multijson/data_centers.csv",
"valuesfilter": {"Name": "DataCenter2"},
"show": True},
"host": {"filename": "data/example_multijson/hosts.csv",
"show": True,
"valuesfilter": {"DataCenter": "DataCenter2"},
"edges": [{"from": ["DataCenter"], "to": {"data_center": ["Name"]}, "RelationType": "ownership"}]},
"vm": {"filename": "data/example_multijson/vms.csv",
"show": True,
"valuesfilter": {"Host": "Host3|Host4"},
"edges": [{"from": ["Host"], "to": {"host": ["Name"]}, "RelationType": "ownership"},
{"from": ["Application"], "to": {"application": ["Name"]}, "RelationType": "application"}]},
"application": {"filename": "data/example_multijson/applications.csv",
"show": True}
}
3 changes: 3 additions & 0 deletions tools/csvstoskyui/data/example_multijson/applications.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Name
Database
Web
Loading

0 comments on commit 4c372ae

Please sign in to comment.