# Path: tsuru_autoscale/alarm/views.py
# def new(request):
# def list(request):
# def remove(request, name):
# def get(request, name):
# 
# Path: tsuru_autoscale/event/views.py
# def list(request, alarm_name):
#     token = request.GET.get("TSURU_TOKEN")
#     events = client.list(alarm_name, token).json()
#     context = {
#         "list": events,
#     }
#     return render(request, "event/list.html", context)


from django.conf.urls import url
from tsuru_autoscale.alarm import views
from tsuru_autoscale.event.views import list as event_list


urlpatterns = [
    url(r'^$', views.list, name='alarm-list'),
    url(r'^new/$', views.new, name='alarm-new'),

# Path: tsuru_autoscale/alarm/views.py
# def new(request):
# def list(request):
# def remove(request, name):
# def get(request, name):
# 
# Path: tsuru_autoscale/event/views.py
# def list(request, alarm_name):
#     token = request.GET.get("TSURU_TOKEN")
#     events = client.list(alarm_name, token).json()
#     context = {
#         "list": events,
#     }
#     return render(request, "event/list.html", context)


# Path: tsuru_autoscale/alarm/urls.py
from django.conf.urls import url
from tsuru_autoscale.alarm import views
from tsuru_autoscale.event.views import list as event_list



urlpatterns = [
    url(r'^$', views.list, name='alarm-list'),
    url(r'^new/$', views.new, name='alarm-new'),

    url(r'^(?P<name>[\w\s-]+)/remove/$', views.remove, name='alarm-remove'),