Example #1
0
def bootstrap_hello():
    """ show a super simple example of a bootstrapped page """
    poolsize = [1, 2, 3, 4, 5, 6, 7, 8]
    kafka_throughput =   [ dbwrapper.query_latest_throughput(  "kafka_%dprod" % i) for i in poolsize ]
    kinesis_throughput = [ dbwrapper.query_latest_throughput("kinesis_%dprod" % i) for i in poolsize ]

    return render_template('Bootstrap_hello.html', 
                           kafka_throughput=kafka_throughput,
                           kinesis_throughput=kinesis_throughput)
Example #2
0
def get42():
    kafka = dbwrapper.query_latest_throughput("kafka_1prod")
    kinesis = dbwrapper.query_latest_throughput("kinesis_1prod")
    return jsonify(kafka=kafka, kinesis=kinesis) #datetime.datetime.now().strftime("%S00"), '30'