A Django app to receive and save cpu usage.
Project description
ROI BURO sample project
Name
ROI BURO sample test project
Description
This is Django-based sample test project which collect information about CPU usage and shows this stats at HTML page. There are client - linux daemon written on Python, which measures CPU utilization periodically and server - django application, which receives measures via REST API.
Installation
-
Add "roiburo" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'roiburo', ]
-
Include the sample project URLconf in your project urls.py like this:
path('roi-buro/', include('roiburo.urls')),
-
Run
python manage.py migrate
to create project models. -
Start the development server and send POST request to http://127.0.0.1:8000/api/v1/core/system-states to create a cpu usage record.
-
Start daemon from
client
folder by runningpython main.py
. -
Visit http://127.0.0.1:8000/api/v1/core/system-state-details to view statistics.
-
API docs is available at http://127.0.0.1:8000/api/schema/swagger-ui#/
Project status
Completed
Features
- Django 3.2
- Python 3.9
- 12-Factor based settings via django-environ
- Optimized settings
- OpenAPI based docs via drf-spectacular
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-roi-buro-sample-project-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b008cd922e7350de39ff0b440d6d3f653aa90a8cc217a894f3b8a39c68b9a199 |
|
MD5 | 0db42a8e306fcc2e728fc345cfef44a4 |
|
BLAKE2b-256 | 090f884c6054e54eb9588c2a1895365e43e7648f1bd22a88f50a3e9a9cdddad3 |