# Individual Project description ## Idea Get statistics on my shared web notes. Each courses live under an URL and serves 3 languages. Accessing each courses trigger a request on my home server. So the idea is to track the access on each courses, usage of the different languages, use of the pdf version (track downloads). ```txt +--------[Process]--------+-----------[Event]-----------+ +-------------------------+-----------------------------+ | URL access tracker | Get trigger each time | | | the URL is accessed | | | and create a new .msg | | | with TIMESTAMP and lang | +-------------------------+-----------------------------+ | Download tracking | Get trigger each time | | | the file is sent to | | | the user and create a | | | new .msg | +-------------------------+-----------------------------+ | Statistics | - Fetches the new files | | | of URLtrack and DLtrack | | | - Publish new .json for | | | the badges | | | - If more than X new | | | files in S seconds, | | | -> trigger Alert | +-------------------------+-----------------------------+ | Badges | - Receive the new data | | | - https://shields.io get | | | them and regenerate | | | the new badge | +-------------------------+-----------------------------+ | Notification System | - Look if new Alert is | | | created, if yes send | | | email. | +-------------------------+-----------------------------+ [shields.io]--->[.img] § [URL tracker]-~-+ § | § {logs/.msg}--->[Stats]--->{.msg}--->[Convertor]--->{bagdes/.json}---+ | | [DL tracker]--~-+ +--------->{.msg}-------->[Alarms (send mail via TCP)] ```