def ping()

in 4_Kinesis/model/predictor.py [0:0]


def ping():
    """
    Determine if the container is working and healthy.
    In this sample container, we declare it healthy if we can load the model
    successfully.
    """
    # Health check -- You can insert a health check here
    health = True
    status = 200 if health else 404
    return flask.Response(
        response='{"status":"ok"}',
        status=status,
        mimetype='application/json')