-
Notifications
You must be signed in to change notification settings - Fork 123
Remote data retreival
Florian Neagu edited this page Feb 21, 2014
·
4 revisions
pyDash will allow you to retrieve data remotely if needed. This can be useful if you want to store any of the data in a database or another application.
Data is being returned in JSON format and can be easy retrieved and stored as long as a session is being created to pyDash for login. For session and how-to use sessions please see https://docs.djangoproject.com/en/1.6/topics/http/sessions/ .
pyDash has a list of short URLs which you can use to retrieve the specific JSON datasets/lists. The URLs are as follows:
/info/uptime/ - Uptime
/info/platform/hostname/ - Hostname
/info/platform/osname/ - OS Name
/info/platform/kernel/ - Kernel
/info/getcpus/cpucount/ - Number of CPU cores
/info/getcpus/cputype/ - Type/Name of CPU
/info/memory/ - Memory Usage
/info/cpuusage/ - CPU Usage in percentage(%), free and used
/info/getdisk/ - Disk Usage
/info/getusers/ - Online Users
/info/getips/ - IP Addresses
/info/gettraffic/ - Internet Traffic
/info/getdiskio/ - Disk Reads/Writes
/info/proc/ - Running Processes
/info/loadaverage/ - Load Average
/info/getnetstat/ - Netstat
To see the format of the JSON returned datasets or data you can access any of the URLs from your browser as http://youpydaship/url
, ex. http://demo.pydash.net/info/uptime/
.