view=JenkinsCheckUpdateView.as_view( ), name='update-jenkins-check'), url(r'^jenkins_check/duplicate/(?P<pk>\d+)/', view=duplicate_jenkins_check, name='duplicate-jenkins-check'), url(r'^result/(?P<pk>\d+)/', view=StatusCheckResultDetailView.as_view( ), name='result'), url(r'^shifts/', view=ShiftListView.as_view(), name='shifts'), url(r'^graphite/', view=graphite_api_data, name='graphite-data'), url(r'^user/(?P<pk>\d+)/profile/$', view=UserProfileUpdateView.as_view(), name='user-profile'), url(r'^user/(?P<pk>\d+)/profile/(?P<alerttype>.+)', view=UserProfileUpdateAlert.as_view( ), name='update-alert-user-data'), url(r'^admin/', include(admin.site.urls)), # Comment below line to disable browsable rest api url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^api/', include(rest_urls.router.urls)), ) def append_plugin_urls(): """ Appends plugin specific URLs to the urlpatterns variable.
url(r'^jenkins_check/create/', view=JenkinsCheckCreateView.as_view(), name='create-jenkins-check'), url(r'^jenkins_check/update/(?P<pk>\d+)/', view=JenkinsCheckUpdateView.as_view(), name='update-jenkins-check'), url(r'^jenkins_check/duplicate/(?P<pk>\d+)/', view=duplicate_jenkins_check, name='duplicate-jenkins-check'), url(r'^result/(?P<pk>\d+)/', view=StatusCheckResultDetailView.as_view(), name='result'), url(r'^shifts/', view=ShiftListView.as_view(), name='shifts'), url(r'^graphite/', view=graphite_api_data, name='graphite-data'), url(r'^user/(?P<pk>\d+)/profile/$', view=UserProfileUpdateView.as_view(), name='user-profile'), url(r'^alert-test/$', view=AlertTestView.as_view(), name='alert-test'), url(r'^alert-test-plugin/$', view=AlertTestPluginView.as_view(), name='alert-test-plugin'), url(r'^plugin-settings/$', view=RedirectView.as_view(url='global/', permanent=False), name='plugin-settings-global'), url(r'^plugin-settings/(?P<plugin_name>.+)/$', view=PluginSettingsView.as_view(), name='plugin-settings'), url(r'^user/(?P<pk>\d+)/profile/(?P<alerttype>.+)/', view=UserProfileUpdateAlert.as_view(), name='update-alert-user-data'), url(r'^admin/', include(admin.site.urls)),
url(r'^jenkins_check/create/', view=JenkinsCheckCreateView.as_view(), name='create-jenkins-check'), url(r'^jenkins_check/update/(?P<pk>\d+)/', view=JenkinsCheckUpdateView.as_view(), name='update-jenkins-check'), url(r'^jenkins_check/duplicate/(?P<pk>\d+)/', view=duplicate_jenkins_check, name='duplicate-jenkins-check'), url(r'^result/(?P<pk>\d+)/', view=StatusCheckResultDetailView.as_view(), name='result'), url(r'^shifts/', view=ShiftListView.as_view(), name='shifts'), url(r'^graphite/', view=graphite_api_data, name='graphite-data'), url(r'^user/(?P<pk>\d+)/profile/$', view=UserProfileUpdateView.as_view(), name='user-profile'), url(r'^alert-test/$', view=AlertTestView.as_view(), name='alert-test'), url(r'^alert-test-plugin/$', view=AlertTestPluginView.as_view(), name='alert-test-plugin'), url(r'^plugin-settings/$', view=RedirectView.as_view(url='global/', permanent=False), name='plugin-settings-global'), url(r'^plugin-settings/(?P<plugin_name>.+)/$', view=PluginSettingsView.as_view(), name='plugin-settings'), url(r'^user/(?P<pk>\d+)/profile/(?P<alerttype>.+)/', view=UserProfileUpdateAlert.as_view(), name='update-alert-user-data'), url(r'^admin/', include(admin.site.urls)), # Comment below line to disable browsable rest api url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^api/', include(rest_urls.router.urls)), url(r'^docs/', include_docs_urls(title="Cabot API", description="An API to create and view Cabot checks and services."))
url(r"^icmpcheck/create/", view=ICMPCheckCreateView.as_view(), name="create-icmp-check"), url(r"^icmpcheck/update/(?P<pk>\d+)/", view=ICMPCheckUpdateView.as_view(), name="update-icmp-check"), url(r"^icmpcheck/duplicate/(?P<pk>\d+)/", view=duplicate_icmp_check, name="duplicate-icmp-check"), url(r"^graphitecheck/create/", view=GraphiteCheckCreateView.as_view(), name="create-graphite-check"), url(r"^graphitecheck/update/(?P<pk>\d+)/", view=GraphiteCheckUpdateView.as_view(), name="update-graphite-check"), url(r"^graphitecheck/duplicate/(?P<pk>\d+)/", view=duplicate_graphite_check, name="duplicate-graphite-check"), url(r"^httpcheck/create/", view=HttpCheckCreateView.as_view(), name="create-http-check"), url(r"^httpcheck/update/(?P<pk>\d+)/", view=HttpCheckUpdateView.as_view(), name="update-http-check"), url(r"^httpcheck/duplicate/(?P<pk>\d+)/", view=duplicate_http_check, name="duplicate-http-check"), url(r"^jenkins_check/create/", view=JenkinsCheckCreateView.as_view(), name="create-jenkins-check"), url(r"^jenkins_check/update/(?P<pk>\d+)/", view=JenkinsCheckUpdateView.as_view(), name="update-jenkins-check"), url(r"^jenkins_check/duplicate/(?P<pk>\d+)/", view=duplicate_jenkins_check, name="duplicate-jenkins-check"), url(r"^result/(?P<pk>\d+)/", view=StatusCheckResultDetailView.as_view(), name="result"), url(r"^shifts/", view=ShiftListView.as_view(), name="shifts"), url(r"^graphite/", view=graphite_api_data, name="graphite-data"), url(r"^user/(?P<pk>\d+)/profile/$", view=UserProfileUpdateView.as_view(), name="user-profile"), url( r"^user/(?P<pk>\d+)/profile/(?P<alerttype>.+)", view=UserProfileUpdateAlert.as_view(), name="update-alert-user-data", ), url(r"^admin/", include(admin.site.urls)), # for serving static assets using django url(r"^static/(?P<path>.*)$", "django.views.static.serve", {"document_root": settings.STATIC_ROOT}), # Comment below line to disable browsable rest api url(r"^api-auth/", include("rest_framework.urls", namespace="rest_framework")), url(r"^api/", include(rest_urls.router.urls)), ) def append_plugin_urls():