Esempio n. 1
0
def get_series_graph_png(series, start_timestamp, end_timestamp, operation,
                         metric):
    host = socket.gethostname()
    graphURL = "http://" + host + ":8000" + construct_series_graph_url(
        series, start_timestamp, end_timestamp, operation, metric)
    return Response(response=screenshot.get_graph_png(graphURL,
                                                      x_crop=846,
                                                      y_crop=523),
                    status=200,
                    mimetype='application/png')
Esempio n. 2
0
 def loader():
     return screenshot.get_graph_png(graphURL, x_crop=846, y_crop=523)
Esempio n. 3
0
def get_series_graph_png( series, start_timestamp, end_timestamp, operation, metric):
    host = socket.gethostname()
    graphURL = "http://" + host + construct_series_graph_url( series, start_timestamp, end_timestamp, operation, metric )
    return Response(response=screenshot.get_graph_png(graphURL, x_crop=900, y_crop=750),
                    status=200,
                    mimetype='application/png')
Esempio n. 4
0
 def loader():
     return screenshot.get_graph_png(graphURL, x_crop=900, y_crop=750)
Esempio n. 5
0
 def loader():
     return screenshot.get_graph_png(graphURL, x_crop=846, y_crop=523)