{"id":25000586,"url":"https://github.com/gluster/fstat","last_synced_at":"2025-04-12T08:52:31.638Z","repository":{"id":47580239,"uuid":"66638602","full_name":"gluster/fstat","owner":"gluster","description":"Failure Stats for Gluster Tests","archived":false,"fork":false,"pushed_at":"2023-05-05T08:42:49.000Z","size":107,"stargazers_count":0,"open_issues_count":6,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T08:52:31.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gluster.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-08-26T10:15:01.000Z","updated_at":"2021-08-23T13:20:02.000Z","dependencies_parsed_at":"2022-08-30T04:31:42.245Z","dependency_job_id":"8a0544d1-8757-47b4-abda-2c433d4278a7","html_url":"https://github.com/gluster/fstat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluster%2Ffstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluster%2Ffstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluster%2Ffstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluster%2Ffstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gluster","download_url":"https://codeload.github.com/gluster/fstat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543883,"owners_count":21121838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-04T19:36:02.445Z","updated_at":"2025-04-12T08:52:31.619Z","avatar_url":"https://github.com/gluster.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fstat [![Build Status](https://travis-ci.org/gluster/fstat.svg?branch=master)](https://travis-ci.org/gluster/fstat)\nFstat tracks the failures from build.gluster.org.\n\n## Installation\n- Before you start installation make sure you have a working installation of python2\n- Create virtualenv ``` virtualenv venv ```\n- Activate virtualenv ``` source venv/bin/activate ```\n- In your virtualenv run ``` pip install -r requirements.txt ```\n- Hurray the installation is done\n\n## Using fstat\n- Run migrations and setup database ``` python manage.py db upgrade ```\n- To serve the fstat app on localhost run ``` python manage.py runserver ```\n- Create application.cfg and add ``` DEBUG=True ``` to it to enable debug mode for your flask app.\n- To fetch failures from build.gluster.org run ``` python manage.py proccess_jobs -n \u003cnumber_of_days\u003e -j \u003cjob_name\u003e ```\n- By default fstat reads and writes the data into sqlite but it can be overriden in your application.cfg.\n\n## Consuming fstat data via rest apis\n\n###  ``` /api/failures ```\nThis endpoint is used to get list of failures with the number of failure instances. The available filters for this endpoint are as follows:\n\n**Name**|**Description**\n:-----:|:-----:\nstart\\_date| The date from which you want to get the failures (format yyyy-mm-dd)\nend\\_date| The date till which you want to get the failures (format yyyy-mm-dd)\nbranch| filter for specific branch\n\nFor Eg:\n\n```\nGET /api/failures?start_date=2017-05-01\u0026end_date=2017-08-01\u0026branch=master\n```\n\n### ``` /api/failures/\u003cfid\u003e ```\nThis 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:\n\n**Name**|**Description**\n:-----:|:-----:\nstart\\_date| The date from which you want to get the failures (format yyyy-mm-dd)\nend\\_date| The date till which you want to get the failures (format yyyy-mm-dd)\nbranch| filter for specific branch\n\nFor Eg:\n\n```\nGET /api/failures/1?start_date=2017-05-01\u0026end_date=2017-08-01\u0026branch=master\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgluster%2Ffstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgluster%2Ffstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgluster%2Ffstat/lists"}