def collectDiagnostics(connection, sessionUrl, zipFilePath, clientOnly=False): ''' This method will perform a POST request to collect log files and packages them into a ZIP file. Args: - connection is the connection object that manages the HTTP data transfers between the client and the REST API - sessionUrl is the address of the session to collect diagnostics for - zipFilePath is the local zip path on the machine that holds the IxLoad instance ''' collectDiagnosticsUrl = "%s/ixload/test/activeTest/operations/collectDiagnostics" % (sessionUrl) data = {"zipFileLocation": zipFilePath, "clientOnly": clientOnly} performGenericOperation(connection, collectDiagnosticsUrl, data)