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-31 15:13:53 +0100 |
commit | 3bc3d26b465b5af3cebc1d4c0d1fa382965c32cf (patch) | |
tree | 6723a54029a4a3c5eaa75d19eae07aec792c792d /bitbake/lib/toaster/toastermain | |
parent | 3f71378fdeed0d5f18eb7c58776fd313a0ab8fe3 (diff) | |
download | poky-3bc3d26b465b5af3cebc1d4c0d1fa382965c32cf.tar.gz |
bitbake: 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]
(Bitbake rev: d8e79661c69671dd424dca5cc3f7f2f855b0afed)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastermain')
-rw-r--r-- | bitbake/lib/toaster/toastermain/urls.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastermain/urls.py b/bitbake/lib/toaster/toastermain/urls.py index bb325596bb..6750bdf3aa 100644 --- a/bitbake/lib/toaster/toastermain/urls.py +++ b/bitbake/lib/toaster/toastermain/urls.py | |||
@@ -20,9 +20,8 @@ | |||
20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
21 | 21 | ||
22 | from django.conf.urls import patterns, include, url | 22 | from django.conf.urls import patterns, include, url |
23 | from django.views.generic import RedirectView | 23 | from django.views.generic import RedirectView, TemplateView |
24 | from django.views.decorators.cache import never_cache | 24 | from django.views.decorators.cache import never_cache |
25 | |||
26 | import bldcollector.views | 25 | import bldcollector.views |
27 | 26 | ||
28 | import logging | 27 | import logging |
@@ -46,6 +45,8 @@ urlpatterns = [ | |||
46 | # in the future. | 45 | # in the future. |
47 | url(r'^orm/eventfile$', bldcollector.views.eventfile), | 46 | url(r'^orm/eventfile$', bldcollector.views.eventfile), |
48 | 47 | ||
48 | url(r'^health$', TemplateView.as_view(template_name="health.html"), name='Toaster Health'), | ||
49 | |||
49 | # if no application is selected, we have the magic toastergui app here | 50 | # if no application is selected, we have the magic toastergui app here |
50 | url(r'^$', never_cache(RedirectView.as_view(url='/toastergui/', permanent=True))), | 51 | url(r'^$', never_cache(RedirectView.as_view(url='/toastergui/', permanent=True))), |
51 | ] | 52 | ] |