Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

To allow for automation of adding/removing data from graphserver-{production,staging}

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 static
Octocat-spinner-32 templates
Octocat-spinner-32 test
Octocat-spinner-32 README
Octocat-spinner-32 config.py
Octocat-spinner-32 graphsadmin.wsgi
Octocat-spinner-32 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.