def delete_threshold(threshold=None): """ Delete given threshold """ code, resp = ThresholdController.destroy(threshold) return code, resp
def update_threshold(threshold=None): """ Update given threshold """ body = request.get_json() code, resp = ThresholdController.update(threshold, body) return code, resp
def get_threshold(threshold=None): """ Get given threshold """ code, resp = ThresholdController.show(threshold) return code, resp
def create_threshold(): """ Post a new threshold """ body = request.get_json() code, resp = ThresholdController.create(body) return code, resp
def get_all_threshold(): """ Get all report's threshold """ code, resp = ThresholdController.get_all() return code, resp