from django.conf.urls import patterns, url

urlpatterns = patterns('',
                       url(r'^$', 'pydash.views.index', name='index'),
                       url(r'login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'},
                           name='login'),
                       url(r'logout/$', 'django.contrib.auth.views.logout', {'template_name': 'logout.html'},
                           name='logout'),
                       url(r'info/uptime/$', 'pydash.views.uptime', name='uptime'),
                       url(r'info/memory/$', 'pydash.views.memusage', name='memusage'),
                       url(r'info/cpuusage/$', 'pydash.views.cpuusage', name='cpuusage'),
                       url(r'info/getdisk/$', 'pydash.views.getdisk', name='getdisk'),
                       url(r'info/getusers/$', 'pydash.views.getusers', name='getusers'),
                       url(r'info/getips/$', 'pydash.views.getips', name='getips'),
                       url(r'info/gettraffic/$', 'pydash.views.gettraffic', name='gettraffic'),
                       url(r'info/proc/$', 'pydash.views.getproc', name='getproc'),
                       url(r'info/getdiskio/$', 'pydash.views.getdiskio', name='getdiskio'),
                       url(r'info/loadaverage/$', 'pydash.views.loadaverage', name='loadaverage'),
                       url(r'info/platform/([\w\-\.]+)/$', 'pydash.views.platform', name='platform'),
                       url(r'info/getcpus/([\w\-\.]+)/$', 'pydash.views.getcpus', name='getcpus'),
                       url(r'info/getnetstat/$', 'pydash.views.getnetstat', name='getnetstat'))
