https://github.com/gluster/fstat
Failure Stats for Gluster Tests
https://github.com/gluster/fstat
Last synced: about 1 year ago
JSON representation
Failure Stats for Gluster Tests
- Host: GitHub
- URL: https://github.com/gluster/fstat
- Owner: gluster
- License: mit
- Created: 2016-08-26T10:15:01.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T08:42:49.000Z (about 3 years ago)
- Last Synced: 2025-04-12T08:52:31.398Z (about 1 year ago)
- Language: Python
- Size: 104 KB
- Stars: 0
- Watchers: 4
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Fstat [](https://travis-ci.org/gluster/fstat)
Fstat tracks the failures from build.gluster.org.
## Installation
- Before you start installation make sure you have a working installation of python2
- Create virtualenv ``` virtualenv venv ```
- Activate virtualenv ``` source venv/bin/activate ```
- In your virtualenv run ``` pip install -r requirements.txt ```
- Hurray the installation is done
## Using fstat
- Run migrations and setup database ``` python manage.py db upgrade ```
- To serve the fstat app on localhost run ``` python manage.py runserver ```
- Create application.cfg and add ``` DEBUG=True ``` to it to enable debug mode for your flask app.
- To fetch failures from build.gluster.org run ``` python manage.py proccess_jobs -n -j ```
- By default fstat reads and writes the data into sqlite but it can be overriden in your application.cfg.
## Consuming fstat data via rest apis
### ``` /api/failures ```
This endpoint is used to get list of failures with the number of failure instances. The available filters for this endpoint are as follows:
**Name**|**Description**
:-----:|:-----:
start\_date| The date from which you want to get the failures (format yyyy-mm-dd)
end\_date| The date till which you want to get the failures (format yyyy-mm-dd)
branch| filter for specific branch
For Eg:
```
GET /api/failures?start_date=2017-05-01&end_date=2017-08-01&branch=master
```
### ``` /api/failures/ ```
This endpoint will return the list of failure instances for a particular failureID, this failure id is specific to fstat. The available filters for this endpoint are as follows:
**Name**|**Description**
:-----:|:-----:
start\_date| The date from which you want to get the failures (format yyyy-mm-dd)
end\_date| The date till which you want to get the failures (format yyyy-mm-dd)
branch| filter for specific branch
For Eg:
```
GET /api/failures/1?start_date=2017-05-01&end_date=2017-08-01&branch=master
```