Beispiel #1
0
    def __init__(self):
        self.urls = list()  # The only thing that caller (view) needs

        self.eventlet_pool = GreenPool()  # for seriesly requests
        self.mp_pool = Pool(cpu_count())  # for plotting

        self.seriesly = SerieslyHandler()
Beispiel #2
0
def seriesly_proxy(request):
    sh = SerieslyHandler()
    db_name = sh.build_dbname(
        cluster=request.GET["cluster"],
        server=request.GET.get("server"),
        bucket=request.GET.get("bucket"),
        index=request.GET.get("index"),
        collector=request.GET.get("collector"),
    )
    data = sh.query_raw_data(db_name, name=request.GET["name"])

    content = json.dumps(data)
    return HttpResponse(content)
Beispiel #3
0
 def __init__(self):
     self.seriesly = SerieslyHandler()