Exemple #1
0
                                             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.
    """
    global urlpatterns
    for plugin in settings.CABOT_PLUGINS_ENABLED_PARSED:
Exemple #2
0
    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'^api/oncall', view=OnCallView.as_view(), name='oncall'),
    url(
        r'^docs/',
        include_docs_urls(
            title="Cabot API",
            description="An API to create and view Cabot checks and services.")
    )
]
Exemple #3
0
     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."))
]

def append_plugin_urls():
    """
    Appends plugin specific URLs to the urlpatterns variable.
    """
    global urlpatterns
    for plugin in settings.CABOT_PLUGINS_ENABLED_PARSED:
        try:
            _module = import_module('%s.urls' % plugin)
Exemple #4
0
    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():
    """
    Appends plugin specific URLs to the urlpatterns variable.
    """