Skip to content
To allow for automation of adding/removing data from graphserver-{production,staging}
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
static
templates
test
README
config.py
graphsadmin.wsgi
graphserver.py

README

For bug https://bugzilla.mozilla.org/show_bug.cgi?id=505803

A webapp for adding/updating entries to our graphserver databases (staging, production)

It can be accessed at the root of the hosting url :5000 or also with API calls:

GET

/branches -- redirects to / and includes table view of branches in the db (adding ?format=json will provide all branches in json)
/machines -- redirects to / and includes table view of machines in the db (adding ?format=json will provide all machines in json)

POST

/branches
    * accepts both 'branch_id' and 'branch_name' to update that branch_id in db if exists 
    * accepts a unique 'branch_name' and adds that branch to the db
/machines
    * accepts 'machine_id' and any of the fields for a machine and updates that machine with the field values 
    * accepts the following to add a machine to the db:
        ** unique 'machine_name' (string)
        ** 'os_id', 'is_throttling', 'cpu_speed', 'is_active' (numeric)
Something went wrong with that request. Please try again.