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')
def loader(): return screenshot.get_graph_png(graphURL, x_crop=846, y_crop=523)
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')
def loader(): return screenshot.get_graph_png(graphURL, x_crop=900, y_crop=750)