Exemplo n.º 1
0
                                                     ), 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)),

                                             # Comment below line to disable browsable rest api
                                             url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
Exemplo n.º 2
0
        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'^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'),
Exemplo n.º 3
0
 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'^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>.+)/',
Exemplo n.º 4
0
     name='create-jenkins-check'),
 url(r'^jenkins_check/update/(?P<pk>\d+)/',
     view=JenkinsCheckUpdateView.as_view(),
     name='update-jenkins-check'),
 url(r'^tcpcheck/create/',
     view=TCPCheckCreateView.as_view(),
     name='create-tcp-check'),
 url(r'^tcpcheck/update/(?P<pk>\d+)/',
     view=TCPCheckUpdateView.as_view(),
     name='update-tcp-check'),
 url(r'^result/(?P<pk>\d+)/',
     view=StatusCheckResultDetailView.as_view(),
     name='result'),
 url(r'^shifts/$', view=ScheduleListView.as_view(), name='shifts'),
 url(r'^shifts/(?P<pk>\d+)/',
     view=ShiftListView.as_view(),
     name='shifts-detail'),
 url(r'^acks/$', view=AckListView.as_view(), name='acks'),
 url(r'^acks/create$', view=AckCreateView.as_view(), name='create-ack'),
 url(r'^acks/close/(?P<pk>\d+)$',
     view=AckCloseView.as_view(),
     name='close-ack'),
 url(r'^acks/reopen/(?P<pk>\d+)$',
     view=AckReopenView.as_view(),
     name='reopen-ack'),
 url(r'^acks/update/(?P<pk>\d+)$',
     view=AckUpdateView.as_view(),
     name='update-ack'),
 url(r'^user/(?P<pk>\d+)/profile/$',
     view=UserProfileUpdateView.as_view(),
     name='user-profile'),
Exemplo n.º 5
0
    url(r"^check/(?P<pk>\d+)/", view=StatusCheckDetailView.as_view(), name="check"),
    url(r"^checks/report/$", view=StatusCheckReportView.as_view(), name="checks-report"),
    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)),
)
Exemplo n.º 6
0
Arquivo: urls.py Projeto: Affirm/cabot
        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)),

    # 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'^complete/(?P<backend>[^/]+)/$', AuthComplete.as_view()),
    url(r'^login-error/$', LoginError.as_view()),
    url(r'', include('social.apps.django_app.urls', namespace='social')),
)