Skip to content

Commit

Permalink
Adding health and ping endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jul 27, 2015
1 parent c379430 commit 0d92bcc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from flask import request, redirect, flash, Response
from flask.ext.appbuilder.models.sqla.interface import SQLAInterface
from flask.ext.appbuilder import ModelView, CompactCRUDMixin, BaseView, expose
from app import appbuilder, db, models, viz, utils
from app import appbuilder, db, models, viz, utils, app
from flask.ext.appbuilder.security.decorators import has_access, permission_name
import config
from pydruid.client import doublesum
Expand Down Expand Up @@ -54,6 +54,16 @@ class DatasourceModelView(ModelView):
category_icon='fa-envelope')


@app.route('/health')
def health():
return "OK"


@app.route('/ping')
def ping():
return "OK"


class Panoramix(BaseView):
@has_access
@permission_name('datasources')
Expand Down

0 comments on commit 0d92bcc

Please sign in to comment.