dockerzhang commented on code in PR #10398:
URL: https://github.com/apache/inlong/pull/10398#discussion_r1639158358


##########
inlong-audit/audit-sdk/README.md:
##########
@@ -12,15 +12,54 @@ which can ensure that each module is reconciled in 
accordance with the unified a
 
 ## Usage
 ### Configure Audit Proxy Addresses
-The Audit SDK will summarize the results according to the cycle  
+- The Audit SDK will summarize the results according to the cycle  
 and send them to the ip:port list set by the interface.
+- There are two ways to set the address of the Audit Proxy, namely fixed 
ip:port and setting the manager address. Please choose one of the methods.
+#### Configure Audit Proxy Addresses by fixed ip:port
 If the ip:port of the AuditProxy is fixed, then this interface needs to be 
called once. 
 If the AuditProxy changes in real time, then the business program needs to 
call this interface periodically to update
 ```java
-    HashSet<String> ipPortList=new HashSet<>();
+    HashSet<String> ipPortList = new HashSet<>();
     ipPortList.add("0.0.0.0:54041");
     AuditOperator.getInstance().setAuditProxy(ipPortList);
 ```
+#### Configure Audit Proxy Addresses by InLong Manager
+By configuring the InLong Manager's address, module information, and manager 
certification information, 
+The Audit SDK will automatically fetch the Manager to obtain the address of 
the Audit Proxy.
+```java
+        String host = "127.0.0.1:8083"; // Host of manager

Review Comment:
   ```suggestion
           String host = "127.0.0.1:8083"; // The manager address
   ```



##########
inlong-audit/audit-sdk/README.md:
##########
@@ -12,15 +12,54 @@ which can ensure that each module is reconciled in 
accordance with the unified a
 
 ## Usage
 ### Configure Audit Proxy Addresses
-The Audit SDK will summarize the results according to the cycle  
+- The Audit SDK will summarize the results according to the cycle  
 and send them to the ip:port list set by the interface.
+- There are two ways to set the address of the Audit Proxy, namely fixed 
ip:port and setting the manager address. Please choose one of the methods.
+#### Configure Audit Proxy Addresses by fixed ip:port
 If the ip:port of the AuditProxy is fixed, then this interface needs to be 
called once. 
 If the AuditProxy changes in real time, then the business program needs to 
call this interface periodically to update
 ```java
-    HashSet<String> ipPortList=new HashSet<>();
+    HashSet<String> ipPortList = new HashSet<>();
     ipPortList.add("0.0.0.0:54041");
     AuditOperator.getInstance().setAuditProxy(ipPortList);
 ```

Review Comment:
   ```suggestion
   ```
   
   ```



##########
inlong-audit/audit-sdk/README.md:
##########
@@ -12,15 +12,54 @@ which can ensure that each module is reconciled in 
accordance with the unified a
 
 ## Usage
 ### Configure Audit Proxy Addresses
-The Audit SDK will summarize the results according to the cycle  
+- The Audit SDK will summarize the results according to the cycle  
 and send them to the ip:port list set by the interface.
+- There are two ways to set the address of the Audit Proxy, namely fixed 
ip:port and setting the manager address. Please choose one of the methods.

Review Comment:
   ```suggestion
   - There are two ways to set the address of the Audit Proxy, configure the 
address directly or get the address from the manager. Please choose one of the 
methods.
   
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to