- Get logs data from Elasticsearch logs index based on generated query and aggregation to time interval of 1 second
- Process data into cleaner format using
Bucket
object - Bulk post data into Elasticsearch storage index for every api and policy type
python -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
pip install <package>
python3 -m pip freeze > requirements.txt
- Change
.env.example
to.env
and includeELASTIC_URL
andAPI_KEY
- Once in
.venv
virtual environment, run program usingpython3 main.py
- Go to
open-data-hub-api-rps
- Run tests
python -m unittest