예제 #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')
예제 #2
0
 def loader():
     return screenshot.get_graph_png(graphURL, x_crop=846, y_crop=523)
예제 #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')
예제 #4
0
 def loader():
     return screenshot.get_graph_png(graphURL, x_crop=900, y_crop=750)
예제 #5
0
 def loader():
     return screenshot.get_graph_png(graphURL, x_crop=846, y_crop=523)