diff options
author | David Reyna <David.Reyna@windriver.com> | 2017-07-28 17:14:13 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-30 16:22:43 +0100 |
commit | d8e79661c69671dd424dca5cc3f7f2f855b0afed (patch) | |
tree | 7fe2c51125a522f13091c2d94a26b1bd2194eacf /lib/toaster/toastermain | |
parent | 5753fe81194f75fbcf4ccdc733cc585d02794cb1 (diff) | |
download | bitbake-d8e79661c69671dd424dca5cc3f7f2f855b0afed.tar.gz |
toaster: enable remote HTTP API for status aggregation
Add support for Toaster aggregators with a set of api links that
return JSON data for (a) builds in progress, (b) builds completed,
(c) specific build data, and (d) an is-alive health ping link.
[YOCTO #11794]
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastermain')
-rw-r--r-- | lib/toaster/toastermain/urls.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/toaster/toastermain/urls.py b/lib/toaster/toastermain/urls.py index bb325596b..6750bdf3a 100644 --- a/lib/toaster/toastermain/urls.py +++ b/lib/toaster/toastermain/urls.py @@ -20,9 +20,8 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. from django.conf.urls import patterns, include, url -from django.views.generic import RedirectView +from django.views.generic import RedirectView, TemplateView from django.views.decorators.cache import never_cache - import bldcollector.views import logging @@ -46,6 +45,8 @@ urlpatterns = [ # in the future. url(r'^orm/eventfile$', bldcollector.views.eventfile), + url(r'^health$', TemplateView.as_view(template_name="health.html"), name='Toaster Health'), + # if no application is selected, we have the magic toastergui app here url(r'^$', never_cache(RedirectView.as_view(url='/toastergui/', permanent=True))), ] |