mirror of https://github.com/apache/superset.git
Adding health and ping endpoints
This commit is contained in:
parent
c379430a41
commit
0d92bccbb0
12
app/views.py
12
app/views.py
|
@ -5,7 +5,7 @@ import json
|
|||
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
|
||||
|
@ -54,6 +54,16 @@ appbuilder.add_view(
|
|||
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')
|
||||
|
|
Loading…
Reference in New Issue