In this repository you will find two things :
- A Python program 'contentgen.py' which can be used to generate dummy data on a server to test the client
- The Dart client for the API Spark Server.
You will not find the configuration file 'settings.yaml' in this repository you will have to create it by yourself.
It should be something like :
settings.yaml
rootUrl: <yourApiUrl>
login: <yourApiLogin>
password: <yourApiPassword>
You may now want to know a little bit more about the monitoring application architecture.
--------
| |
| V |----\
|server| \
| | \ |---------| 2. JSON |---------|
-------- \ | API | ------------> | DART |
|-----------> | SPARK | | APP |
-------- / Coordinates | | <------------ | |
| | / |---------| 1. Request |---------|
| V | / data
|server|----/ REST API that Client
| | aggregates data
-------- from the distributed
servers
Vivaldi
Servers
(contentgen.py simulates these servers for development purpuses)
With that type of architecture, you can get an overview of what's happening in your distributed system without having to put a big infrastructure in place.
Moreover, Dart can be compiled into Javascript so that the app can be executed in a simple browser ! It's a way of making the app really dynamic and device friendly.
Here is how are made the objects in API SPARK
- Network
- _id
- name
- Node
- _id
- path
- network
- InitTime
- _id
- timestamp
- node
- Coordinate
- _id
- timestamp
- x
- y
- node
Will come soon
Tests are not implemented yet.